none
Is "Bing Maps REST Services" supported in Japan?

    Question

  • I'm tying to use "Bing Maps REST Services" to display a route search result in Japan.

    But, the search result is very different from actual route.

    For example, the test result from 'Massachusetts Institute of Tech, MA' to 'Harvard University, MA' is not bad.

    But when I test for Japanese location for example from 'Tokyo station' to 'Osaka station', the maneuverPoints are very different from correct answer.

    That means "Bing Maps REST Services" is not supported in Japan?

    (Below is my test code)

    <?php
    function getRoute($wayPoint0, $wayPoint1){
    	$baseURL = "http://dev.virtualearth.net/REST/v1/Routes";
    	$key = 'my key';
    	$optimize = "time";
    	$routePathOutput = "Points";
    	$distanceUnit = "km";
    	$travelMode = "Driving";
    
    	$routesURL =
    		$baseURL."/".$travelMode."?wp.0=".$wayPoint0."&wp.1=".$wayPoint1
    		."&optimize=".$optimize."&routePathOutput=".$routePathOutput
    		."&distanceUnit=".$distanceUnit."&key=".$key;
    
    	return file_get_contents($routesURL);
    }
    $wayPoint0 = str_ireplace(" ","%20",$_GET['origin']);
    $wayPoint1 = str_ireplace(" ","%20",$_GET['destination']);
    $json_string = getRoute($wayPoint0, $wayPoint1);
    
    header("Content-Type: application/json; charset=utf-8");
    echo $json_string;


    • Edited by mas178 Tuesday, July 02, 2013 8:19 AM
    Tuesday, July 02, 2013 5:41 AM

Answers

  • The Bing Maps REST Services are supported in Japan. If you look closer at the response from the REST services you will see that it found the cities and not the stations. That's why the end points are slightly different from what you expect. Note that stations are points of interests, not addresses.


    http://rbrundritt.wordpress.com

    Monday, July 15, 2013 10:29 AM