torsdag den 22. januar 2009

Routing in Virtual Earth Web Service


Se også http://msdn.microsoft.com/en-us/library/cc980922.aspx
/Sik


See also http://msdn.microsoft.com/en-us/library/cc980922.aspx
/Sik


Quote

’ve been working on this one for a while and it kind of completes the basics for getting started with the Virtual Earth Web Service. The Routing Service in VEWS allows for route calculation and itinerary creation.  The following will get you started using the routing service. In this sample I’ll instantiate the service request, pass the points into an array, set options for the route object, get the route object back and parse the information into a table for viewing.

First things first, add a web reference to the route service.

image

Next, the following code will provide you with the route itinerary starting at lat/lon (40, –120) then stopping for some Starbucks coffee at lat/lon (40.5, –120.5) and ending at lat/lon (41, –121). The inline documentation should help explain what’s happening. The ASPX and Code-behind are available below. [...]


Read more: http://blogs.msdn.com/virtualearth/archive/2009/01/21/routing-in-virtual-earth-web-service.aspx

Ingen kommentarer:

Send en kommentar