Bearing & Distance
Calculate the bearing and distance between any two geographic points.
POST
/api/v1/navlog/bearing-and-distanceCommercial PilotCalculate Bearing And Distance
Request BodyBearingAndDistanceRequestDto
startLatitudenumberStarting point latitude in decimal degrees.
startLongitudenumberStarting point longitude in decimal degrees.
endLatitudenumberEnding point latitude in decimal degrees.
endLongitudenumberEnding point longitude in decimal degrees.
Responses
200Returns the bearing and distance calculationBearingAndDistanceResponseDto
trueCoursenumberTrue course in degrees.
magneticCoursenumberMagnetic course in degrees (adjusted for magnetic variation).
distancenumberGreat-circle distance in nautical miles.
400If the request data is invalidApiErrorResponse
codestringMachine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").
messagestringHuman-readable error message suitable for display.
detailsstringnullableAdditional error details (only included in development environment).
validationErrorsRecord<string, string[]>nullableField-level validation errors (only for validation failures).
timestampstringUTC timestamp when the error occurred.
traceIdstringnullableCorrelation ID for tracing the request.
pathstringnullableRequest path that generated the error.
503ApiErrorResponse
codestringMachine-readable error code (e.g., "AIRCRAFT_NOT_FOUND").
messagestringHuman-readable error message suitable for display.
detailsstringnullableAdditional error details (only included in development environment).
validationErrorsRecord<string, string[]>nullableField-level validation errors (only for validation failures).
timestampstringUTC timestamp when the error occurred.
traceIdstringnullableCorrelation ID for tracing the request.
pathstringnullableRequest path that generated the error.
Code Examples
curl \
-X POST \
-H "Ocp-Apim-Subscription-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"startLatitude": 35.214,
"startLongitude": -80.9431,
"endLatitude": 36.1245,
"endLongitude": -86.6782
}' \
"https://preflightapi-apim-service.azure-api.net/api/v1/navlog/bearing-and-distance"