Flight distance
get_flight_distanceCalculates the great-circle distance between two places in kilometres, miles and nautical miles, with the initial and final compass bearings. Each end is one of the website's 20 cities or a latitude and longitude.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "get_flight_distance"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Arrival city, one of Anchorage, Auckland, Buenos Aires, Cape Town, Dubai, Johannesburg, Lima, London, Los Angeles, Mexico City, Moscow, Mumbai, Nairobi, New York, Perth, Santiago, São Paulo, Singapore, Sydney or Tokyo. Not needed when toLatitude and toLongitude are given. | |
| from | No | Departure city, one of Anchorage, Auckland, Buenos Aires, Cape Town, Dubai, Johannesburg, Lima, London, Los Angeles, Mexico City, Moscow, Mumbai, Nairobi, New York, Perth, Santiago, São Paulo, Singapore, Sydney or Tokyo. Not needed when fromLatitude and fromLongitude are given. | |
| toLatitude | No | Arrival latitude in degrees, north positive: -90 to 90. | |
| toLongitude | No | Arrival longitude in degrees, east positive: -180 to 180. | |
| fromLatitude | No | Departure latitude in degrees, north positive: -90 to 90. | |
| fromLongitude | No | Departure longitude in degrees, east positive: -180 to 180. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| item | Yes | ||
| view | Yes | ||
| request | Yes |