Routing website using Gosmore routing engine

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?

Works like a charm Lambertus!

Has the Engine stopped working for the United States? It seems to work for Spain/Europe, but I get blank answers for coordinates in the US and Africa, Middle East, Japan :frowning:

Here’s an example link:
http://www.yournavigation.org/api/dev/route.php?flat=29.4182919217556&flon=-98.50136285937737&tlat=25.46543882500975&tlon=-100.98375839648634&v=motorcar&fast=0&layer=mapnik

It’s up and running, again. Yay! Pehaps this is some downtime during a rebuild of the .pak files?

Good to see it’s back, the server which hosts north/south America was down for two days. I’m not aware of the cause.

Good and bad news:

The good:
The service is now processing almost 700.000 route requests per day, up from 550k requests in October last year, most of the requests being handled by only one sponsored server! I’m constantly amazed how well Gosmore scales :slight_smile:

The bad:
One IP address alone is responsible for over 200k requests per day. The server has been sending warning headers along with the route result for several days but the high demand is still coming in. Unfortunately I’ll have to add this IP-address to the ban-list this evening, especially because it doesn’t adhere to the FUP which requests that the client identifies itself (so I can contact the owner in case of overuse, like now).

Is there a way to force the name finder to only match cities/suburbs? For example, entering “Eastern Creek, NSW, Australia” places the marker on the creek, and the point that it happens to use is not actually located in the suburb of that name. Thanks for the service!

According to the documentation you can’t search for cities/suburbs specifically. Toying with the search term might help a bit, providing e.g. “Eastern Creek 1, NSW, Australia” gives a different result.