Calculated Dive
Calculate the DD for a Dive Code and Height
Calculate the DD for a given Code and Height
GET https://ddtable.nl/api/dive/calculate/{code}/{height}
This endpoint parses the given dive code and attempts to calculate the degree of difficulty for that dive. In addition to the DD it also returns general information of how it interpreted the dive code. (this can be helpful in troubleshooting why you're getting a different DD than expected)
Path Parameters
Name
Type
Description
code*
String
The dive code of the dive you're trying to find
height*
Integer
The height in meters
(12, 15, 20, or 27)
{
"dive_code": "51101B",
"height": 27,
"is_twisting": true,
"half_twists": 1,
"half_summersaults": 10,
"is_flying": false,
"blind_entry": false,
"direction": "Forward",
"position_short": "B",
"position_long": "Pike",
"dive_group": 51,
"degree_of_difficulty": 5.1
}{
"dive_code": string,
"height": int,
"is_twisting": bool,
"half_twists": int,
"half_summersaults": int,
"is_flying": bool,
"blind_entry": bool,
"direction": string,
"position_short": string,
"position_long": string,
"dive_group": int,
"degree_of_difficulty": float
}This returns validation the validation errors found while parsing your dive code. Please process them or show them to your end-user.
{
"message": "The dive code is not in the valid format. (For example: 5181B) (and 1 more error)",
"errors": {
"code": [
"The dive code is not in the valid format. (For example: 5181B)",
"The DD calculator cannot calculate the DD for head-first dives."
]
}
}The dive code appears to be valid, but something went wrong on our side, Sorry!
{
"error": "Something went wrong"
}Last updated