Harshad Bhola
Harshad Bhola

Reputation: 632

add custom map points/venue/location and display direction in bing map for windows phone application

Any one know how to add custom map point/location (not pushpin) in Bing map and display route between custom point/location for windows phone application?

Thanks in advance.

Upvotes: 0

Views: 6079

Answers (4)

For the record: Maybe this can work with custom pins:

http://www.bingmapsportal.com/ISDK/AjaxV7#Pushpins5

Upvotes: 1

Harshad Bhola
Harshad Bhola

Reputation: 632

I have found BING Map DataSource API to insert data and display route for same.

i have also refer below link

http://www.bingmapsportal.com/ISDK/AjaxV7#VenueMapsModule3

Upvotes: 1

Alastair Aitchison
Alastair Aitchison

Reputation: 3532

You can't add a "location" to Bing Maps - a location simply identifies a position on the earth's surface using latitude/longitude coordinates (http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.location.aspx) - therefore Bing Maps already recognises every possible "location" on the earth.

If you want to calculate a route between two locations (e.g. between the lat/lng coordinates (37.78,-122.42) and (32.716,-117.1617)) you can make a request to the Bing Maps Routes API as follows:

http://dev.virtualearth.net/REST/V1/Routes?wp.0=37.78,-122.42&wp.1=32.716,-117.1617&key=BingMapsKey

You need to substitute "BingMapsKey" with a valid key obtained from http://www.bingmapsportal.com. More information on usage of the Routes API at http://msdn.microsoft.com/en-us/library/ff701717.aspx. Once you've got the route returned, loop through the waypoints and create a MapPolyLine to add to the map.

Upvotes: 2

Bryan Watts
Bryan Watts

Reputation: 1425

You can use MapPolyLine to display routes between locations.

If you want a more detailed answer, then you will have to ask a more detailed question. (Give me more details to what you are looking to do, and I will update my answer)

Upvotes: 1

Related Questions