locality boundary

pheonix shephered 1 Reputation point
2022-04-07T04:30:43.657+00:00

how to get the locality of a boundary visible in MX? in some cases if we zoom out, we can see the locality name and if we click on it we can get the city boundary. but in some cases its hard to get to the correct zoom level inorder to see the locality name to get the boundary. if we search for that locality we only get it as a pointer and not as a boundary. can anyone please help me and let me know how I can get the boundaries for such cases?

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
832 questions
Windows for home Windows 11 Apps
{count} votes

2 answers

Sort by: Most helpful
  1. IoTGirl 3,621 Reputation points Microsoft Employee Moderator
    2022-04-09T05:46:30.263+00:00

    Hi @pheonix shephered ,

    Can you either provide developer repro steps for your issue or give feedback at Bing.com/maps? I am really not sure what boundaries you seek and in what context.

    Sincere thanks,
    IoTGirl


  2. IoTGirl 3,621 Reputation points Microsoft Employee Moderator
    2022-04-14T22:45:49.143+00:00

    Hi @pheonix shephered ,

    This is expected behavior for the consumer map. It is all about what you provide and the closest details level that can be returned. Your first boundary does not include a postal code but rather Bing likely sees it as a populated place so returns the best guess it has. Your second sample has more detail including a postal code and country which it can get closer to an exact location so it returns a more precise answer.

    If you are looking to build your own representation, you can try being a developer as it is fairly easy to create your own key and build a maps experience. Start at https://www.microsoft.com/en-us/maps and do the developer login steps to create and account and get a key. You can then use the interactive SDK to see the code https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk. For example a populated place boundary sample shows Toronto Canada. https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/sdsloadsingleboundary

    Sincerely,
    IoTGirl

    0 comments No comments

Your answer

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