ustroetz / python-osrm

A Python wrapper around the OSRM API
MIT License
133 stars 55 forks source link

Unable to use routing.openstreetmap.de #47

Open frodrigo opened 4 years ago

frodrigo commented 4 years ago

The internal dealing with URL make routing.openstreetmap.de unable to use.

MyConfig = osrm.RequestConfig("routing.openstreetmap.de/routed-foot/route/v1/driving")

But try to access to /route/v1/driving/polyline.

import osrm

MyConfig = osrm.RequestConfig("routing.openstreetmap.de/routed-foot/route/v1/driving")
result = osrm.simple_route([-3.7692, 40.4313], [-3.7420, 40.4183], url_config=MyConfig)
bingblackbean commented 3 years ago

MyConfig = osrm.RequestConfig("router.project-osrm.org/route/v1/driving") #https://router.project-osrm.org/route/v1/driving/ result = osrm.simple_route([-3.7692, 40.4313], [-3.7420, 40.4183], url_config=MyConfig)

this works for me