Places
A place is a city or airport that can serve as an origin or destination.
Schema
The metropolitan area where the airport is located. Only present for airports which are registered with IATA as belonging to a metropolitan area.
The 3-letter IATA code for the city where the place is located. Only present for airports which are registered with IATA as belonging to a metropolitan area.
"LON"
The latitude position of the airport represented in Decimal degrees with 6 decimal points with a range between -90° and 90°
64.068865
The longitude position of the airport represented in Decimal degrees with 6 decimal points with a range between -180° and 180°
-141.951519
The time zone of the airport, specified by name from the tz database
"Europe/London"
List Place suggestions
Retrieves a list of Places whose airport/city/country name or IATA code match the provided query or are within a radius of a location
GET https://api.duffel.com/places/suggestions
curl -X GET --compressed "https://api.duffel.com/places/suggestions?query=heathr&rad=10&lat=40.735&lng=-73.973717" \-H "Accept-Encoding: gzip" \-H "Accept: application/json" \-H "Duffel-Version: v2" \-H "Authorization: Bearer <YOUR_ACCESS_TOKEN>"
{"warnings": [{"type": "deprecation","title": "`name` field has been deprecated","message": "Use the `query` field instead","code": "deprecated_parameter"}],"data": [{"type": "airport","time_zone": "Europe/London","name": "Heathrow","longitude": -141.951519,"latitude": 64.068865,"id": "arp_lhr_gb","icao_code": "EGLL","iata_country_code": "GB","iata_code": "LHR","iata_city_code": "LON","city_name": "London","city": {"name": "London","id": "cit_lon_gb","iata_country_code": "GB","iata_code": "LON","airports": [{"time_zone": "Europe/London","name": "Heathrow","longitude": -141.951519,"latitude": 64.068865,"id": "arp_lhr_gb","icao_code": "EGLL","iata_country_code": "GB","iata_code": "LHR"}]},"airports": [{"time_zone": "Europe/London","name": "Heathrow","longitude": -141.951519,"latitude": 64.068865,"id": "arp_lhr_gb","icao_code": "EGLL","iata_country_code": "GB","iata_code": "LHR","iata_city_code": "LON","city_name": "London","city": {"name": "London","id": "cit_lon_gb","iata_country_code": "GB","iata_code": "LON","airports": [{"time_zone": "Europe/London","name": "Heathrow","longitude": -141.951519,"latitude": 64.068865,"id": "arp_lhr_gb","icao_code": "EGLL","iata_country_code": "GB","iata_code": "LHR"}]}}]}]}