Turistforeningen / leaflet-routing

Leaflet.Routing is a routing controller for the popular Leaflet mapping framework. The module provides an intuitive interface for routing paths between waypoints using any user specified routing service.
http://turistforeningen.github.io/leaflet-routing/examples/osm.html
BSD 2-Clause "Simplified" License
260 stars 67 forks source link

OSM demo not working (301 for routing.php) #46

Open nrenner opened 7 years ago

nrenner commented 7 years ago

The OSM demo linked in the project page is not working because the XHR requests for snapping data and routing API fail with a 301 Moved Permanently response for the routing.php, which acts as a proxy for non-CORS enabled services:

http://www2.turistforeningen.no/routing.php?url=http://www.openstreetmap.org/api/0.6/map&bbox=8.615341186523438,61.47371010902601,8.828372955322266,61.52547772030421&1=2

If this is on purpose, there might be an alternative using Overpass API and perhaps GeoJSON Path Finder?

Starefossen commented 7 years ago

That server was taken offline not long ago.