Bing Map Distance Matrix - Index order

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

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.
245 questions
{count} votes

2 answers

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

  2. rbrundritt 15,126 Reputation points Microsoft Employee
    2021-05-07T16:18:36.327+00:00

    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.