Use Suggest and the ability to filter for a region or country
The Suggest API enables completing queries for places or categories of results. The results are sorted for most likely to less likely matches. Additionally, you can further filter results to specific regions or countries.
Potential use cases
-
Filter the results: When performing a search, you can filter by country or only the region in which your business operates.
Examples
Adding a filter by country ensures you only receive the most relevent results. Use Filter.IncludeCountries for this.
Adding a filter-by-region option for a search limits results to only those which fit within the provided region. This is used to limit the scope of the search to the region that concerns your business. The following example shows a misspelled search for Marriott hotels near the Boston area being completed with some hotel results and a follow-up query.
Developer tips
Display search results using the Title
response field to provide
users with concise, recognizable entries. For results that might look similar, use
the Place.Address.Label
field to show additional address details that
help users distinguish between them. For more information, see How to help users disambiguate between
similar results.