Last Updated on January 28, 2020 by Mathew Diekhake
Introducing the Bing Maps Autosuggest API, the newest addition to the Bing Maps REST services. The Autosuggest API is used to return a ranked list of suggested entities based on a user’s partial query. The service can return three possible entity types: Addresses (including roads), points of interest, and businesses (currently available in the US only with new markets coming soon).
A maximum of ten (10) autosuggested entities can be returned per request, and the returned entities can be delimited by country and culture. The response can be specified for either JSON or XML format.
The Autosuggest API is designed to help developers populate online query forms such as delivery addresses as well as map search bars. Check out this e-commerce online ordering form to see an example of how the Autosuggest API can be used in JavaScript to populate a list of suggested addresses. Another great example of an Autosuggest API usecase is LinkedIn’s “Your Commute” feature. Moreover, autosuggested entities can easily be displayed using the Bing Maps V8 SDK. For an example using JavaScript, the Bing Maps V8 SDK, and Bootstrap, see the Autosuggest API Browser.
Check out Bing Maps Autosuggest API and let us know what you think. You can connect with the team at the Bing Maps Forums to share feedback and let us know what you would like to see next.
– Bing Maps Team