OSRM. How I can to get route (points array) between my points

107 Views Asked by At

I have two points and I want to get a route with roads. In documentation I read I should to send this request:

http://router.project-osrm.org/route/v1/driving/{first_point},{last_point}?overview=false

enter image description here

I waiting to see many points in 'waypoints', but I see only two points near by my points.

enter image description here

Where are I can to get my points array with all roads and crossroads?

1

There are 1 best solutions below

0
crnm On

You are missing the steps=true parameter to get your list of "legs" containing all waypoints in between your starting- and endpoint.