Matrix

Calculating time distances between all given locations, considering every possible combination and direction.

GET Copy
https://maps-api.planplus.rs/services/matrix?lid=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&coordinates=20.480082,44.813506;20.466899,44.794057;20.500293,44.799607;20.458126,44.812345&profile=car
JSON Copy
{
  "sources": [
    {
      "location": [
        20.4799,
        44.813303
      ],
      "name": "Ljubomira Stojanovića"
    },
    {
      "location": [
        20.467166,
        44.794112
      ],
      "name": "Nebojšina"
    },
    {
      "location": [
        20.500305,
        44.799726
      ],
      "name": "Dimitrija Tucovića"
    },
    {
      "location": [
        20.458574,
        44.812482
      ],
      "name": "Kraljice Natalije"
    }
  ],
  "destinations": [
    {
      "location": [
        20.4799,
        44.813303
      ],
      "name": "Ljubomira Stojanovića"
    },
    {
      "location": [
        20.467166,
        44.794112
      ],
      "name": "Nebojšina"
    },
    {
      "location": [
        20.500305,
        44.799726
      ],
      "name": "Dimitrija Tucovića"
    },
    {
      "location": [
        20.458574,
        44.812482
      ],
      "name": "Kraljice Natalije"
    }
  ],
  "code": "Ok",
  "durations": [
    [
      0,
      333.1,
      249,
      274.9
    ],
    [
      299.7,
      0,
      399.7,
      227.2
    ],
    [
      307.5,
      522.4,
      0,
      458.5
    ],
    [
      245,
      308.4,
      404,
      0
    ]
  ]
}