Bing Map Distance Matrix - Index order

asked 2021-05-04T12:46:58.82+00:00
Miles Taylor (UK) 1 Reputation point

Hello,

We are using the Bing Distance Matrix REST API to retrieve transit times.

Please can you confirm the correct usage of the originIndex and destinationIndex distance matrix cell fields.

Does this index refer to the order of origins/destinations listed in the API request, or in the API response?

We've noticed that the order of origins/destinations is different in the response to those we send when making the request, so it is not clear which list the index refers to.

Thanks

Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
187 questions
{count} votes

2 answers

Sort by: Most helpful
  1. answered 2021-05-07T19:28:52.227+00:00
    Ashley Song 6 Reputation points

  2. answered 2021-05-07T16:18:36.327+00:00
    rbrundritt 6,921 Reputation points Microsoft Employee

    Odd, not sure when that order changed in the response vs the input, but looking into this, it looks like the indicies align with the order defined in the response, which makes sense.