Farid
Farid

Reputation: 2562

OSRM-backend returns distance:0

So, we have installed OSRM to our server and tested it for http://router.project-osrm.org/route/v1/driving/40.415225,49.855988;40.356182,49.828279?steps=true. Public demo server returns distance as expected. Unfortunately when requesting route from server distance:0 is returned. I would appreciate any help on topic.

enter image description here

Upvotes: 2

Views: 1256

Answers (1)

Farid
Farid

Reputation: 2562

Well, actually it was kinda technical problem. I should have swapped the order of longitude and altitude. OSRM accepts coordinates with respective order, first longitude and then altitude.

enter image description here

Upvotes: 4

Related Questions