question

93711376 avatar image
0 Votes"
93711376 asked ·

bing maps rest api result distance value is -1

It is a distance measurement api (rest) for the Korean region with latitude and longitude.

I can't distance measure in Korea? below number 2

(1.success rest) Kerala, India
https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=10.025063,76.358754&destinations=10.030113,76.358058&travelMode=driving&o=xml&key={BingMapsKey}&distanceUnit=mi

(2.fail rest) incheon, korea
https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=37.405485,126.732702&destinations=37.455958,126.705183&travelMode=driving&o=xml&key={BingMapsKey}&distanceUnit=mi

windows-maps
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IoTGirl avatar image
0 Votes"
IoTGirl answered ·

Distance Matrix is not designed for a single source and destination pair. Please use REST Routes. https://docs.microsoft.com/en-us/bingmaps/rest-services/routes/

·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.