How to get Azure Maps to prioritize the address number in the returned autosuggest

Anonymous
2025-05-13T17:18:39.89+00:00

Hello,

I would like for the Azure maps to mimic the functionality of Bing where it returns suggestions based on the address number when I search by address number. Currently, Azure maps seems to prioritize the zip code. We have tried both the "Address" and "Fuzzy" searches.

For Example:

  • Searching in Bing Maps by "11978" returns options such as "11978 Ridge Vista Ave, San Jose, California, 95127 "
  • Searching in Azure maps by the same returns options such as "Westhampton Beach, NY 11978"
Azure Maps
Azure Maps

An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.


Answer accepted by question author
Anonymous
2025-05-15T10:53:23.76+00:00

Hello Richelle Frazier,

As a workaround, could you please add an extra keyword as mentioned in the screenshot in the given link. Please use 11978 Ridge or 11978 <anyother keyword> get address with address number in above API. Link: Address Collection with Azure Maps Search | Microsoft Community Hub

You can find the source code of this auto suggest API and others here. Azure Maps SamplesMaps

Hope this helps. Thank you!

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. rbrundritt 20,451 Reputation points Volunteer Moderator
    2025-05-14T15:14:14.68+00:00

    In addition to setting typeahead to true and possibly adjusting the fuzzy levels, if you look at your Bing Maps query you will see that you also specified a local circular view which gives the autosuggest context. Using the address search service, there is lat, lon and radius parameters you can specify to do the same thing (also a btmRight and topLeft parameters to specify a bounding box as an alternative). Using your query of 11978 with the latitude of 39.57339859008789 and longitude of -104.87100219726562 and a radius of 10000 I'm getting multiple street address results for Englewood, CO

    https://atlas.microsoft.com/search/address/json?api-version=1.0&query=11978&typeahead=true&lat=39.57339859008789&lon=-104.87100219726562&radius=10000&subscription-key=<Your Azure Maps Key>

    Removing the view context information and just using the query and typeahead parameter I also see zip code results and to be honest, for this type of query this is what I would generally expect, and was actually a common piece of feedback/request we had with the Bing Maps autosuggest API.That said, several of the Bing Maps API's have been brought over to Azure Maps, such as the forward and reverse geocoder, routing, and boundary services. I suspect autosuggest might also be brought over, but I don't have a timeline.

    Was this answer helpful?


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.