Get Landing Areas

Base URL

The REST API is accessible from the following URL:

Base URL
http://uav.airnavigation.aero

Since the API uses GeoJSON, it would be helpful to learn more about the GeoJSON specification.


To use the test service from the Air Navigation Pro application, you need to change its configuration. For that, please check the version of the App you are using. You can obtain that information from the information tab. Then. from the device without Air Navigation Pro running, download the appropriate file from below and it will open the App. If the content of the file is legitimate, there should not be any error. Your authentication will be made against the test server of service, so make sure you have an account there.

If you are using the version 6.2 of Air Navigation Pro, please download this file:

If you are using the version 6.3 of Air Navigation Pro, please download this file:

To reset the App to use the production servers, please download this file:

Authentication and Authorization

In order to use the service, you'll need to register for an account. Once registered, you are given an Authorization Token.

This Authorization Token will be used to identify yourself when sending requests to the REST API server.

To authenticate, the token should be included in the Authorization HTTP header. This token should be prefixed by the string Token, with whitespace separating the two strings like in the following example:

Authorization: Token 5ab0129ac330f5d8f477ab4db5ed1ebaf2b688b0

You can get your vendor token by following these simple steps:

  • Go to the vendor login page.
  • Login using your vendor credentials.
  • View your dashboard.
  • Under the "Account Details" panel you will see your "API Authorization Token".

Details

This API call will fetch landing areas that are inside the area defined by two given points.

Demo

API Endpoint
/api/waypoints/
HTTP Method
POST
Request Body

					
  • c1 - upper-left coordinates in decimal form
  • c2 - lower-right coordinates in decimal form

c1 and c2 will define the area from where airspaces will be searched

CURL equivalent
Response Body

	            
Success

If the API call is a success, the JSON output will contain a top-level object called data.

The general structure of the JSON output is as follows:


					

results are serialized as an array of GeoJSON Feature objects. Each object will have the following keys/properties:

id
ICAO ID for the waypoint
type
GeoJSON data type (waypoints are GeoJSON Feature objects)
properties
various properties of the waypoint
geometry
contains the coordinates that defines the waypoint's geometry
Error

If the API call results into an error, the JSON output will contain a top-level object called error. It will contain the following properties:

code
HTTP error code
message
HTTP error message
reason
Reason for the error

Possible errors: