Register  |  Login
ThinkGeo - GPS Tracking and Mapping Solutions  |  Visit the Wiki  |  Find us on: Twitter Facebook Google+ LinkedIn

Discussion Forums

The online community for users of Map Suite GIS components

RoutingOverlay with Bing REST api
Last Post 08-04-2010 10:15 PM by Johnny. 5 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
KeithUser is Offline
Level 1
Level 1
Posts:7
Avatar

--
07-29-2010 09:20 AM

Is it possible to integrate the RoutingOverlay with the output from the Bing REST Routing API? I would like to use Bing REST to generate my routes, but display them using the RoutingOverlay on my ThinkGeo map.



DavidUser is Offline
MVP
MVP
Posts:1534
Avatar

--
07-29-2010 09:00 PM
Kieth,

It may not be possible to use the RoutingOverlay however we can integrate the results using a new customOverlay. If you can provide the XML response of a typical route then we can create a new BingRoutingOverlay for you that will display the route just as the RoutingOverlay did. Please attach the XML as a .txt file here.

David


- Need sample code? Check out the Map Suite Code Community at http://code.thinkgeo.com
KeithUser is Offline
Level 1
Level 1
Posts:7
Avatar

--
07-30-2010 07:27 AM

Attached is the xml that contains the route information.

Thank you!


route.xml

JohnnyUser is Offline
MVP
MVP
Posts:1403
Avatar

--
08-02-2010 08:44 AM
Keith,

I'm looking into the xml and give the result as soon as possible.

Johnny


Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

JohnnyUser is Offline
MVP
MVP
Posts:1403
Avatar

--
08-04-2010 10:07 PM

 

Keith,
I did a test with the attached Route Result XML that you gave. I’m not sure if I missed something about route or the Route Result Xml doesn’t contain all the turn points, it seems that the route from XML isn’t very good. Please see the image below:
 
The attached is a simple source code about display route from Bing map Route XML. Please have a look at it. If any missing that I didn’t take into account, please let us know.
 
Thanks,
Johnny

GetShortestPathByCoordinates.zip

Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

JohnnyUser is Offline
MVP
MVP
Posts:1403
Avatar

--
08-04-2010 10:15 PM

Keith,

Sorry that i missed the Route xml, which i did a simple changes. Please use the attached one instead of the original onw.

Thanks,
Johnny


001_route.xml

Need to know how to do something with Map Suite? Check our Wiki Code Samples Library and view the source code of any sample right in your web browser.

You are not authorized to post a reply.

Active Forums 4.2