Lookup Locations
API Docs > product:Car Hire > endpoint:locations
GET: /carHire/locations
Request
The following GET parameters are mandatory:
"key": 1,
"Query": "London"
Query searches against name and/or country_name.
Example request:
https://api.holidayextras.co.uk/v1/sandbox/carHire/locations.js?key=1&Query=London
Response
Car Hire returns a list of locations, including a location code, name and country. The location code can be used as part of an Availability request when searching for Pickup or Dropoff locations.
{
"API_Reply": {
"Locations": [
{
"code": "FL965",
"name": "Amsterdam (Schipol) Airport",
"country_name": "Netherlands"
},
{...},
{...}
]
}
}