Bing Map Distance Matrix - Index order

Miles Taylor (UK) 1 Reputation point


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.


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

2 answers

Sort by: Most helpful
  1. Ashley Song 6 Reputation points
    1 person found this answer helpful.

  2. rbrundritt 16,456 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.