How to draw a route on a map using web services?
-
Friday, March 02, 2012 7:50 PM
I have an ASP.Net web page where I pass in a several addresses from my database to the routeservice web service. It returns me directions for each leg in the route. I did this using C# and no javascript. Now I want to also create a map, display each leg as a pushpin, and draw the street lines connecting each leg in the route. But I have not been able to figure this out. I'd prefer a solution without javascript since I'm not too strong in it.
Thanks!
- Moved by Richard_BrundrittMicrosoft Employee, Owner Friday, March 16, 2012 6:53 PM (From:Bing Maps: Map Control and Web services Development)
All Replies
-
Tuesday, March 06, 2012 6:48 AM
You can use Bing Maps SOAP directions service, if you want to code in c#
Sample at http://msdn.microsoft.com/en-us/library/cc981072.aspx
MSFT
Hemant Goyal -
Tuesday, March 06, 2012 1:33 PMYou did not understand what I am asking. I already had the directions part working. Now I want to display the route on a Bing map with street lines connecting each leg in the route and a pushpin at each location.
-
Tuesday, March 06, 2012 4:19 PMModerator
You said you want to display the route on a Bing map on a webpage, but you don't want to use javascript.... so, do you want to use the Silverlight map control? (in which case follow the tutorial at http://www.microsoft.com/maps/isdk/silverlight/#MapControlInteractiveSdk.Tutorials.Services.Route)
Or, do you just want to create a static map? (if so, try http://rbrundritt.wordpress.com/2009/02/22/drawing-routes-with-the-ve-web-service/ )
twitter: @alastaira blog: http://alastaira.wordpress.com/
- Marked As Answer by Richard_BrundrittMicrosoft Employee, Owner Saturday, March 10, 2012 1:50 PM

