AutosuggestOptions Object

Bing
 

The following Autosuggest option properties can be used to customize how suggestions are retrieved.

NameTypeDescription
addressSuggestionsbooleanSpecifies if street address suggestions should be returned. Default: true
autoDetectLocationbooleanSpecifies if the user’s location should be auto detected using their IP address, if no location information is provided in the userLocation property. Default: true
boundsLocationRectA bounding box that is used to help influence the results such that locations that are in or near this bounding box are given more weight than they would normally.
mapMapA reference to a map instance. If the useMapView property is set to true, the bounding box of the map view will be used to influence the weight of suggestions.
maxResultsnumberThe maximum number of results to return. Can be any value between 1 and 10. Default: 5
placeSuggestionsbooleanSpecifies if place suggestions (city, landmark, etc.) should be returned. Default: true
useMapViewbooleanIndicates if the maps bounding box should be used to influence the suggested results. Ignored if the bounds property is set. Default: true
userLocationLocationA coordinate indicating where the user is located. This will influence the results to be more relevant to the user.
Show: