Directions near to destination

How can I get the direction near to destination?

For example in this case (see the picture)

I would like to stop when I’m near to destination without to go up and then coming back to reach the point.

Hi @dash1e,

that’s nothing our API currently supports, as the requested points are always snapped to the closest valid point on the street network.

You could edit the geometry after getting the route back, by cutting it once it’s in the vicinity of x meters to the goal, e.g. by calculating distances to the goal point using some spatial libary.

Best regards

1 Like