Draw polyline with suggested driving directions given multiple points
-
Tuesday, July 03, 2012 5:12 PM
Hi
Info on what I'm trying to do:
A driver goes out to complete a list of jobs(Could be over 100). Each job he completes we collect the lat/lon. I know in what order the driver completed the jobs(Completed DateTime).
Can I somehow pass this data to bing service in order of lat/lon then draw the suggested route that would have been taken on silverlight map control?
Thanks
Paul
All Replies
-
Wednesday, July 04, 2012 8:29 AMOwner
Yes, this can be done using the Bign Maps REST routing service. Note that you can have up to 25 waypoints in a single request to this service so you will need to make multiple requests and merge them together. I've actually made a tool for doing this for the Bing Maps V7 AJAX control which you could port over to .NET. You can find this tool here: http://bingmapsv7modules.codeplex.com/wikipage?title=Route%20Service%20Helper
Also, you can find information on using the REST services in.NET here: http://rbrundritt.wordpress.com/2012/01/06/bing-maps-rest-service-net-libraries/
http://rbrundritt.wordpress.com
- Proposed As Answer by Richard_BrundrittMicrosoft Employee, Owner Wednesday, July 04, 2012 8:29 AM
- Marked As Answer by Paul3654 Wednesday, July 04, 2012 10:57 AM
-
Wednesday, July 04, 2012 10:57 AM
Thanks Richard
I'll have a look at porting this to .NET, thanks for the work and tips.
Paul
-
Friday, August 10, 2012 2:25 PM
Hi !
You are developing Bing Maps on Windows Phone, then you may find these apps helpfull for you:
http://code.msdn.microsoft.com/wpapps/Bing-Maps-950491b9
http://code.msdn.microsoft.com/Using-Bing-Maps-in-Windows-d7edd3d1
- Proposed As Answer by Houssem Dellai Friday, August 10, 2012 2:25 PM

