DISTANCE MATRIX Bing MAPs API not working for CHINA

Fernando Martinez 1 Reputation point
2022-10-04T17:13:25.55+00:00

I have no result on DISTANCE MATRIX APIfor CHINA on BING API

I tested these locations on BING MAPS
247482-image.png

31,333141, 121,445343

247483-image.png

31,326687, 121,439011

Information of transportation AVAILABLE for the BING MAPS
247512-image.png

I tested this same location with API DISTANCE MATRIX with KEY, and no information retrieve

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=31.333141, 121.445343&destinations=31.326687, 121.439011&travelMode=driving&key={BING-KEY}

247472-image.png

Just to test if this working on the browser for other NON CHINA, here works correctly

https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=47.6044,-122.3345&destinations=45.5347,-122.6231&travelMode=driving&key={BING-KEY}

247378-image.png

Could Technical Support please check why isn't these 2 locations providing information on the API BING?

Windows for home | Windows 11 | Apps
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 3,621 Reputation points Microsoft Employee Moderator
    2022-10-05T15:09:13.527+00:00

    Hi Fernando,

    For a matrix you need multiple Destinations & Origins but you have only one of each. Please try just the Route API for a single trip. See https://learn.microsoft.com/en-us/bingmaps/rest-services/routes/calculate-a-route

    A sample for your call it would be:

    http://dev.virtualearth.net/REST/V1/Routes?wp.0=37.779160067439079,-122.42004945874214&wp.1=32.715685218572617,-117.16172486543655&key={BingMapsKey}

    Sincerely,
    IoTGirl

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.