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.
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:
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?