Code to search location on Bing Map

BingMapTask launcher is used to search a location and mark it on the Bing map. It is defined as below,


Search term need to be set as string. If geo coordinate of center is not provided then BingMapTask will search a location on basis of user’s current location.

Hospitals can be located and marked on the Bing map from user’s current location as below,

BingMapsTask bingMapsTask = new BingMapsTask();
bingMapsTask.SearchTerm = "hospital";
bingMapsTask.ZoomLevel = 2;

You can set the zoom level of the map as well. In this way you can search a location and mark that on Bing map.

I hope this post is useful. Thanks for reading.

2 responses to “Code to search location on Bing Map”

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s