KongAir Route API

KongAir Route API

1.0.0OAS 3.0

API for querying the shortest flight route from origin to destination.

API Base URL
  • Server 1:https://api.kongair.com/v1

    Production server

Get the shortest flight route

Retrieve the shortest flight path from the origin airport to the destination airport.

get
https://api.kongair.com/v1/routes

Query Parameters

originstringrequired

IATA code of the departure airport.

Example:JFK

destinationstringrequired

IATA code of the arrival airport.

Example:LAX

Response

200 application/json

Shortest flight route retrieved successfully.

Route

originstring

Example:JFK

destinationstring

Example:LAX

total_distancenumber(float)

Total distance of the route in kilometers.

Example:3972

total_durationstring

Total estimated duration of the route in HH:MM:SS format.

Example:06:15:00

flightsarray[object]

List of flights in the shortest route.

Show Child Parameters
get/routes
 
200 application/json

Route

object
originstring

Example:JFK

destinationstring

Example:LAX

total_distancenumber(float)

Total distance of the route in kilometers.

Example:3972

total_durationstring

Total estimated duration of the route in HH:MM:SS format.

Example:06:15:00

flightsarray[object]

List of flights in the shortest route.

Show Child Parameters
Example