0

API update yesterday OSRM and I'm having problems.

It calls previously used this way:

router.project-osrm.org/viaroute&loc=-0.88656,41.68043&output=json&compression=false

and it runs smoothly.

Now there is no way to make it work with the new version:

router.project-osrm.org/route/v1/driving/-0.88656,41.68043

This is the code for the old API, to see if anyone knows how to fix it.

See how it works

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Nodsert
  • 1
  • 1

1 Answers1

0

Solved this call: https://router.project-osrm.org/nearest/v1/driving/41.680432,-0.88659841.68

Add https and nearest/v1/driving in URL.

Nodsert
  • 1
  • 1