Get Distance Targeting Geometry

Why Get Distance Targeting Geometry?

Sometimes, you may find it necessary to retrieve a distance targeting geometry object associated with a flight to see if you would like to make changes to the object. The Kevel API enables you to retrieve this information using the Get Distance Targeting Geometry endpoint and passing the FlightID, distance, and GeometryID parameters as part of the GET request. When you make the request, all of the information about that geometry object for the flight will be displayed.

API Syntax

When using the Get Distance Targeting Geometry API endpoint, it is important to understand the syntax required to make the request. Because the Kevel API is a RESTful API, there is a specific request format that must be followed to ensure the endpoint can process the request. The format is:

GET https://api.kevel.co/v1/flight/{FlightID}/distance/{GeometryID}

Where:

FlightID

GeometryID

accept

200 Response

{
  "Distance": 42,
  "StreetAddress": "1 Kevel Boulevard, Keveltown NC 27701",
  "FlightId": 12345,
  "Latitude": 35.9950488,
  "Longitude": -78.9081815,
  "Id": 123
}

400 Response


Example Curl Command

curl -H "X-Adzerk-ApiKey:$ADZERK_API_KEY" https://api.kevel.co/v1/flight/12345/distance/1234

Updated 10 months ago