Routing website using Gosmore routing engine

Feature request: I’d like to have a way to set my default location/zoom level. Every time I open yournavigation.org it shows the world map, I always have to search for my location (the “share location” function doesn’t work; not sure why but it seems to be an ISP level issue as no other service can get my location reliably).

Any way to have this done? In my case specifically to set it to show Hong Kong.

Does anyone know of an open source routing api to use with a GPS tracking software. Friend at http://www.crowtracker.com is interested in routing solutions but its almost all american users. I see a bunch of web based ones like http://www.yournavigation.org/ etc but needs an API.

http://project-osrm.org/

YOURS (yournavigation.org) has an open API that is used quite a lot by GPS tracking software. Documentation is here

Today I was making a route for moped. Control.
http://www.yournavigation.org/?flat=52.708675669588&flon=5.862941741907&tlat=52.710477828857&tlon=5.7758396863608&v=motorcar&fast=1&layer=mapnik

But the route proposal took the main road. fastest

On the main road, I set a moped=no 28-1-2014

The map data you used is from: Routing data from planet file: 2014-03-05

Route problem.
Moped must use the way next to the main road.

Situation:
http://mijndev.openstreetmap.nl/~allroads/mtm/?map=mopedways&zoom=18&lat=52.70794&lon=5.84486&layers=B000000TTFFFTTTTTTTTTTTTTTTTTTTTTTTF

My mistake not hit find route by switch to moped.
Now he make a other turn.
Now taken a small part of motor_vehicle=no
http://mijndev.openstreetmap.nl/~allroads/mtm/?map=mopedways&zoom=19&lat=52.70843&lon=5.84542&layers=B000000TFFFFFTFFFFFFFFFTFFFFFFFFFFFF

and de permalink
made this
http://www.yournavigation.org/?flat=52.708675669588&flon=5.862941741907&tlat=52.710477828857&tlon=5.7758396863608&v=moped&fast=1&layer=mapnik

Routing database has been updated. Usage of yournavigation.org is slowly increasing: on some days it handles more then 550.000 unique route requests.

Edit September 8th: Some users informed me about a problem with some empty routing results. This is the result of a problem with one of the servers that handles route requests for Eurasia/Africa. This has now been fixed, I’m sorry for any inconvenience.

Linked some friends to yournavigation. They noticed a bug and figured out how to reproduce it: do another route request before the old one returned/completed.

They then took this to the next level :stuck_out_tongue:
A couple creations:

http://snag.gy/zB1g9.jpg
http://snag.gy/2B2Hw.jpg
http://snag.gy/VISw6.jpg

I guess the easy fix is to check in Javascript whether a newer request already returned before showing the result of a random request. And clearing the map when the result returns instead of just when the request is made. Or we consider it art and leave it be :stuck_out_tongue:

Pretty images :slight_smile:

Looks like lightning, including green and red sprites!

“Routinglightning”

A small maintenance announcement. Tomorrow we will upgrade the Dutch OpenStreetMap infrastructure with a bit more recent hardware. This basically implies the existing yours server will be removed from the rack and there should be some DNS remapping done. While I can promise the new infrastructure will most likely be powered on at 11:00 CET, it is unlikely that yours will be running before Friday, main reason being: I could not get a hold of Lambertus in the last days.

Hi,

The API @ yournavigation.org is still down. Do you have an indication on when it’s back online? Thanks

For that to happen I need the help from Lambertus…

Hi all

Any news when the API is available again? Still all services are down :frowning:

Best regards

This is very unfortunate…

Long story short:
The webfrontend (yournavigation.org) runs on a sponsored server, organised by the local (Dutch) OSM community.

I went on holiday, an email came in asking me to organise things so that a new infrastructure could be installed. A new infrastructure got installed and the old server removed. Then I came back from holiday, big surprise, lot’s of panic mails in my inbox.

I’ve got copies from the old server and trying to get access to the new one. Unfortunately the one person who organises this does not have time. I don’t know when everything will be back.

I’m afraid the timing and organisation of this hardware upgrade is poorly planned.

Ok, a new server is now hosting the yournavigation website. You can visit it at http://144.76.224.55/index.php while I figure out how the change the DNS for yournavigation.org

DNS is fixed as is the webserver config, so everything is working again.

Yes … everything is working :slight_smile:
Thank you

Best regards

Hi Lambertus, and thanks for getting the service back online again. Unfortunately it is not working a 100% correctly since it came back online. Look at what the routing API returns as reported her [1]:

URL: http://www.yournavigation.org/api/1.0/gosmore.php?format=geojson&v=foot&fast=1&layer=mapnik&flat=61.491079145460056&flon=8.62973114539836&tlat=61.501911381473455&tlon=8.72022164834513

Return

{
  "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 />

[1] https://github.com/Turistforeningen/leaflet-routing/issues/29

Hello. Please, help me with following issue

I use leaflet routing library (https://github.com/Turistforeningen/leaflet-routing), that use API from http://www.yournavigation.org. After DNS was fixed there still not possibility to build routing. I get invalid JSON in response https://github.com/Turistforeningen/leaflet-routing/issues/29#issuecomment-62360554

Best regards

Thanks for the reports. If fixed the error yesterday evening. Can you confirm it is working properly now?