Places
Suggest airports and cities by name, code or position
Authorization
apiKey AuthorizationBearer <token>
A BeMyPlan API key: Authorization: Bearer bmp_live_… in production, bmp_test_… in sandbox.
In: header
Query Parameters
query?string
Text search over airport and city names and codes. Mutually exclusive with lat and lng.
Length
2 <= length <= 64lat?number
Latitude of the position to search around. Give lat and lng together; mutually exclusive with query.
Range
-90 <= value <= 90lng?number
Longitude of the position to search around. Give lat and lng together.
Range
-180 <= value <= 180rad?number
Radius in km, 1 to 500; 100 when omitted in position mode.
Range
1 <= value <= 500limit?integer
Range
1 <= value <= 50Default
20Header Parameters
If-None-Match?string
A previously returned ETag. When it still matches, the answer is 304 with no body (and no charge for a free call).
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/data/v1/places/suggestions"{ "data": [ { "type": "airport", "id": "arp_iwqeawwufxb4h5qa", "name": "Amsterdam Airport Schiphol", "iataCode": "AMS", "iataCountryCode": "NL", "cityId": "cit_letxal4ojx3tujmz", "cityName": "Amsterdam", "latitude": 52.3086, "longitude": 4.7639, "timeZone": "Europe/Amsterdam", "distanceKm": null } ], "meta": { "requestId": "0b6f3c1e-8f0a-4a39-9a55-2d4d7f3e1c11" }}