The Routing function Service (Routeservice) provided by the Bing maps can be used to compute the directions on the map, path and so on, such as driving route and location, travel route, etc. The service's Web service reference can be added through the service's address (HTTP://DEV.VIRTUALEARTH.NET/WEBSERVICES/V1/ROUTESERVICE/ROUTESERVICE.SVC).
The Routing feature service provides two methods, namely Calculateroute () and Calculateroutesformmajorroads (), which are implemented in the following functions:
1, Calculateroute: Calculate the path and return the specified path travel, and the path of other relevant path data (including road name, travel method, etc.).
2, Calculateroutesformmajorroads: Calculate the designated geographical point or path direction, as well as the nearby road information.
To provide a clearer introduction to the interface usage of the routing feature service, the following is an example that describes the detailed application of the routing service interface. Need to realize the route from Chengdu to Chongqing, and then mark the distance from Chengdu to Chongqing Road map and the halfway point of the city of longitude.