Car Hire
Endpoint
POST https://partners.api.skyscanner.net/apiservices/v3/autosuggest/carhire
Request
Requests to autosuggest/carhire
contain the following:
Field name | Description |
---|---|
query | Object containing parameters for car hire autosuggest search. |
The query
object contains the following fields:
Field name | Description |
---|---|
market | Market where search is coming from. e.g. UK . |
locale | Language to be used for the search (ISO locale) e.g. en-GB . |
searchTerm | The string to get autosuggest results for. If left blank, the most popular car hires will be returned. e.g. Pari |
Response
The /carhire
endpoint returns a places
list containing objects with the following fields:
Field name | Description |
---|---|
hierarchy | Shows hierarchy of places related to this entity. E.g. City of Edinburgh. |
location | Coordinates of the entity. Expressed as a comma seperated latitude/longitude pair e.g. 55.9497, -3.3635. |
name | Name of the place e.g. London. |
highlight | Indicates emphasis on characters which match the searchTerm. |
entityId | A unique ID for the place. It's an internal ID and it doesn't have any meaning outside of our APIs. |
type | Type of place. e.g. PLACE_TYPE_AIRPORT, PLACE_TYPE_CITY, PLACE_TYPE_DISTRICT etc |
Entity Types
Here are the full list of possible values for type
in the response:
Type |
---|
PLACE_TYPE_TRAIN_STATION |
PLACE_TYPE_DISTRICT |
PLACE_TYPE_AIRPORT |
PLACE_TYPE_CITY |
Autosuggest API reference
See the Autosuggest API reference for more details.