Distance Matrix

36 views
Skip to first unread message

Finbar Gillen

unread,
Jan 19, 2018, 10:39:10 AM1/19/18
to openrouteservice.org
Hi,

I have been using distance matrix's in QGIS this last few weeks, the downside being that it does not take into consideration the road network.

I have came across the matrix service in the developer code however I am not that up to speed with using API's. 

For a test I have one source point -6.2739754, 53.3511731 and two destination points -6.2384688,53.2860863  | -6.2270172,53.445138. 

I want to get the distance and drive time to the destination points from the source point. Could some send me a url so I could apply this?

Also will there be any plans to add this functionality to openrouteservice.org?

Regards
Finbar

Nils Nolde

unread,
Jan 21, 2018, 6:14:26 PM1/21/18
to openrouteservice.org
Hi Finbar,

it's generally safest to use POST instead of GET for Matrix API, as there's a limit on how long a URL can be. (of course not for 2 coordinates, but for e.g. 20x20)

For small matrices, try this:

Note the URL encoded characters (%xx). Taken directly from our documentation btw...

I fear you need to brush up your programming skills to be able to fully use the Matrix API. It's fairly easy to use in Python.

This feature won't be added to ors.org anytime soon, as there's no geometries included, only time/distance. However, it might be added to the QGIS plugin within the next 1-2 months. Lots of higher priority work atm unfortunately..

All the best
Nils
Reply all
Reply to author
Forward
0 new messages