All docsHelpGlossaryMapbox Matrix API elements

Mapbox Matrix API elements

Matrix API elements are the source and destination coordinate pairs used in a Mapbox Matrix API request.

The Mapbox Matrix API handles bulk requests of varying sizes, so billing is tracked by the number of elements returned instead of the number of requests made.

One request from the Matrix API can have many different origin and destination pairs, so one request from the Matrix API is equal to the number of sources multiplied by the number of destinations. For example, two sources × three destinations = six elements.

Related resources: