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
261 stars 67 forks source link

OSM router not respond #29

Closed Nefedov89 closed 9 years ago

Nefedov89 commented 9 years ago

Hi. Help me please with problem I try to draw route, but it dont work because my 'build-route url' http://www2.turistforeningen.no/routing.php?url=http://www.yournavigation.org/api/1.0/gosmore.php&format=geojson&v=foot&fast=1&layer=mapnik&flat=51.48182022464805&flon=-0.16329678241163492&tlat=51.58262629388259 not respond and i can not create route.

Also I try demo http://turistforeningen.github.io/leaflet-routing/examples/osm.html and it does not work too

As I understood this routing service is unavailable now. Can I replace it by any other routing service?

Starefossen commented 9 years ago

Yes, it seems like the routing service we are relying on yournavigation.org is down. Hopefully it will be back soon.

I don't known any other open routing services you can use in the mean time.

nrenner commented 9 years ago

For a little more info regarding yournavigation.org see OSM Forum.

Alternatives for integration might be:

See also Routing at OSM Wiki.

Starefossen commented 9 years ago

Thanks for the heads up @nrenner. I will try to find another router for the demo if yournavigation.org is down for a long time.

Nefedov89 commented 9 years ago

Hi again. Obviously http://www.yournavigation.org work fine now ( http://forum.openstreetmap.org/viewtopic.php?pid=461984#p461984 ), but I can not still draw my route and demo not work for me. Can you check this issue?

Best regards

Starefossen commented 9 years ago

Unfortunately the API from yournavigation.org is not fully working yet. Look at what it returns:

{
  "type": "LineString",
  "crs": {
    "type": "name",
    "properties": {
      "name": "urn:ogc:def:crs:OGC:1.3:CRS84"
    }
  },
  "coordinates":
  [
[8.629732, 61.491066]
,[8.629711, 61.491066]
...
,[8.719095, 61.501805]
,[8.720230, 61.501884]
  ],  "properties": {
    "distance": "6.640379",
    "description": "To enable simple instructions add: 'instructions=1' as parameter to the URL",
    "traveltime": "4812"
    }
}
<br />
<b>Warning</b>:  fopen(/home/lambertus/public_html/yours/cache-20141110.csv): failed to open stream: No such file or directory in <b>/var/www/api/1.0/gosmore.php</b> on line <b>382</b><br />
<br />
<b>Warning</b>:  fopen(/home/lambertus/public_html/yours/cache-20141110.csv): failed to open stream: No such file or directory in <b>/var/www/api/1.0/gosmore.php</b> on line <b>389</b><br />

The HTML at the end is not valid JSON and thus the JSON parsing fails.