Query Locations
Find locations matching a query string.
Request
Query parameters
| Name | Type | Description |
|---|---|---|
| q required | string | Query string to match by. |
Example: q=Ams | ||
Responses
-
Successful response with list of, max 10, matching locations ordered from best to worst.
Body
Property path Type Description [].country optional stringUK English name of the country the location is in
Example: "The United Kingdom"[].iataCode optional stringOptional IATA city code
Example: "LON"[].id optional stringGeohash of the location
Example: "gcpvj0u6yj"[].name optional stringCommon name of the location in English
Example: "London"Example
[ { "country": "Netherlands", "iataCode": "AMS", "id": "u173zq2sf4", "name": "Amsterdam" }, { "country": "United States of America", "iataCode": null, "id": "drehrb9zcz", "name": "Amsterdam" }, { "country": "Austria", "iataCode": null, "id": "u2d9f2t80n", "name": "Amstetten" }, { "country": "Germany", "iataCode": null, "id": "u0xh2emzy1", "name": "Amstetten" }, { "country": "Netherlands", "iataCode": null, "id": "u173w9jf2v", "name": "Amstelveen" }, { "country": "Netherlands", "iataCode": null, "id": "u1h1yc1qnj", "name": "Amstenrade" }, { "country": "Netherlands", "iataCode": null, "id": "u17994k9m0", "name": "Amsterdam-Zuidoost" } ] -
Bad request due to invalid query parameters
Body
Property path Type Description error objecterror.description optional stringOptional longer explanation describing the error.
error.message stringConcise error message.
error.reason optional stringOptional underlying reason that caused the error to happen.