I tried to check the accuracy of the Bing Map API. I tried to figure out the distance and time between Chicago O'Hare International Airport and Chicago Midway Airport . It seems that the Bing Map API is completely inaccurate. I double and triple checked it manually using bing cards. Here is the complete code
import net.virtualearth.dev.webservices.v1.common.Credentials; import net.virtualearth.dev.webservices.v1.common.Location; import net.virtualearth.dev.webservices.v1.route.BasicHttpBinding_IRouteServiceStub; import net.virtualearth.dev.webservices.v1.route.RouteRequest; import net.virtualearth.dev.webservices.v1.route.RouteResponse; import net.virtualearth.dev.webservices.v1.route.RouteResult; import net.virtualearth.dev.webservices.v1.route.RouteServiceLocator; import net.virtualearth.dev.webservices.v1.route.RouteSummary; import net.virtualearth.dev.webservices.v1.route.Waypoint; public class Test { public static void main(String[] args) throws Exception { double [] address1Coordinate = { 41.97980880737305 , -87.88204193115234 } ;
This is a link to the JAR
As a result, I got
Bing Distance : 42.898 miles Driving Time : 34 minutes
The above results are absolutely inaccurate . I manually compared the numbers using the Bing Map Click this link to see the difference .
When I tried to use different addresses, the driving time in most cases would be calculated perfectly. However, the distance is almost always higher than the one that I would type in the addresses manually on the Bing Map.,
Is this a problem with the Bing API? Maybe I should use the getDistance method differently?
Although the distances are close to what the Bing Map shows manually, itβs not exactly the same. Why aren't they the same?
Thanks!
java bing-api
CHEBURASHKA
source share