What is it?
Geo Autocomplete uses full words or substrings to search across all locations that match with a geographic search query. By default, it returns an on-the-fly list of up to five of the most relevant location predictions to aid travelers in selecting their desired location. A location can be an airport, city, or rail station.
Optional search preferences are available to sort and filter results, including the ability to specify a category (such as AIR
for airports, CITY
for city name, and RAIL
for rail stations) and a limit on the number of search results to return per category.
Why use it?
Integrate this API into your application to provide autocomplete functionality for text-based airport name search. Using this data, travelers can then select from a list of location that most closely match the search query. For example, if Dall
is typed, then Dallas/Fort Worth International
and Dallas Love Field
airport information will be returned.
How it works
Geographic data response
Responses are sorted by relevance and contain geographic details about each search result (place), including:
- Name
- Category
- Location information, like postal address, city, state, country
- ID (such as an airport) code
- Rank
- Confidence factor
Confidence Factors
A confidence factor indicates the degree of accuracy in the latitude and longitude (as provided by the geocoding entity). A rank (from 1-900) indicates the population density or traffic volume of the place. A city is ranked by population (900 indicates a large population). An airport is ranked by the number of nonstop flights served from the airport (900 indicates high traffic) and a duplicate rank can also be assigned in the descending order. Only 5 results are returned in the response as the default limit is set to 5. If more results have to be returned in the response, then the limit can be set to desired value.
Note: Geographic information, including latitude and longitude, is provided by a third party geocoding entity. Sabre makes no representation or warranty regarding the accuracy of the geographic information provided by the geocoding entity.
How to use
To make a call to this API, enter the following information:
query
- The word to be autocompleted. This value must contain a minimum of three (3) characters before the API can retrieve location information.category
- Tells the API which type of location information to retrieve. Can beAIR
,CITY
,RAIL
.limit
- The number of search results to display. If no value is entered, the default is5
.
Refer to the Reference Documentation tab for full request and response documentation.