Routing website using Gosmore routing engine

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.

Thanks. I will actually be using the API btw, but I haven’t tried it yet. It looks like there is hope - Nominatum allows me to query by city name (e.g city=“Eastern Creek”), and that DOES return the city information, including the coordinates of the centre point - it’s the centre point that I want! :slight_smile: Am I missing something?

Back on the yournavigation.org demo site - I’ve noticed something very odd. If I compare the travel times between two identical routes, but using Fastest and Shortest, the travel time using Shortest is significantly less than Fastest. An example route is between “Newport, NSW” and “Avalon, NSW”. The Fastest and Shortest routes look identical, but there is a huge discrepancy in the travel time. (290s for Fastest, 126s for Shortest). Vehicle type is Motorcar.

EDIT: Sorry - I see that someone else has already reported this, here: http://forum.openstreetmap.org/viewtopic.php?pid=370782#p370782

I’m finding that the Fastest algorithm seems to give more realistic times than Shortest.

Hello Lambertus, and great thanks for all the work!
I’ve got a question: does it still make sense to post weird routes here? There is one I’d like to find a solution for, but it’s unclear whether posting it will solve anything, because page says that “there’s no need to add more weird routes”, despite of the fact that last of the weird routes was added in 2009.

Hi! Quoting the site: “Routing data from planet file: 2014-09-02”. Almost 9 months old. Any plans to update?

I can not create a route from the city to other cities. Only in the city or in the countryside. How to fix it?

The permalink feature is broken. :-/ the site creates this url, for instance:

http://www.yournavigation.org/?flat=48.115988357362&flon=11.539904679628&wlat=48.061515198474&wlon=11.514162324098&wlat=47.960801409701&wlon=11.443781159559&wlat=47.79223879261&wlon=11.467813752329&wlat=47.644990457254&wlon=11.362413666874&wlat=47.386216975065&wlon=11.25941684071&wlat=47.296182944794&wlon=10.917467377833&wlat=47.282454254816&wlon=10.814604662113&wlat=46.969191946998&wlon=11.008582018056&wlat=46.717571153137&wlon=11.337313554875&tlat=46.494589502492&tlon=11.340145967614&v=motorcar&fast=1&layer=mapnik

when reused, all of the intermediate waypoints will have the same lat/lon as the “from” lat/lon points. effectively, all intermediate points are present in the url, but lost when the url is rendered.

paul

Hi Lambertus,
I still use your API. But it does not work for several days or weeks…
So I get the ansver:
“Server not ready to process requests. Please try again later.”
for any browsers, regions and requests. For example:
http://www.yournavigation.org/api/dev/route.php?flat=44.93857849201759&flon=34.10297329845174&tlat=44.95228352024582&tlon=34.0976174613954&v=foot&fast=0&layer=mapnik&instructions=1
http://144.76.224.55/api/dev/route.php?flat=44.93857849201759&flon=34.10297329845174&tlat=44.95228352024582&tlon=34.0976174613954&v=foot&fast=0&layer=mapnik&instructions=1
Will they answer as expected?

Hi Lambertus,
I have found that it works without parameter &v=foot
For example http://www.yournavigation.org/api/dev/route.php?flat=48.115988357362&flon=11.539904679628&tlat=46.494589502492&tlon=11.340145967614&fast=0&layer=mapnik&instructions=1
instead of close:
http://www.yournavigation.org/api/dev/route.php?flat=44.93857849201759&flon=34.10297329845174&tlat=44.95228352024582&tlon=34.0976174613954&fast=0&layer=mapnik&instructions=1&v=foot
Or it works with parameter &v=motorcar
http://www.yournavigation.org/api/dev/route.php?flat=48.115988357362&flon=11.539904679628&tlat=46.494589502492&tlon=11.340145967614&fast=0&layer=mapnik&instructions=1&v=motorcar
What should I do?
What is the problem for foot?.

Lambertus is not available since some months. Not sure if he will read your questions at all. Sorry …

packhamster

could you please share that gosmore.php file?

Thanks

Is the YOURS API dead? It seems very broken right now.

Bike directions in one part of world succeed:
http://www.yournavigation.org/api/1.0/gosmore.php?format=kml&flat=52.215676&flon=5.963946&tlat=52.2573&tlon=6.1799&v=bike&fast=0

But move those to a different part of world, and get 404.
http://www.yournavigation.org/api/1.0/gosmore.php?format=kml&flat=37.428013&flon=-122.084970&tlat=37.427331&tlon=-122.082996&v=bike&fast=0

Now try ‘foot’ for either of those locations, and get 503.
http://www.yournavigation.org/api/1.0/gosmore.php?format=kml&flat=52.215676&flon=5.963946&tlat=52.2573&tlon=6.1799&v=foot&fast=0
http://www.yournavigation.org/api/1.0/gosmore.php?format=kml&flat=37.428013&flon=-122.084970&tlat=37.427331&tlon=-122.082996&v=foot&fast=0

Everything working properly