OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

#76 2009-09-01 09:58:18

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

The Gosmore database update for this week has been reversed because of weird routing results (at least in Europe): Gosmore seemed more interested in very small roads then motorways.

Possibly no database updates in the coming two weeks while trying to sort the problem.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#77 2009-09-24 12:38:32

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

Someone from a server in Denmark was hammering the API for days (or weeks, who knows) with about 20 requests per second on an automated manner. This interfered with normal users requests so I've blocked the source IP.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#78 2009-10-22 11:41:23

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

A new version of YOURS is released after a lot of work with large contributions from Milo van der Linden (thanks!) rewriting almost everything. This release brings a new -much better looking- interface, calculation of all route segments in parallel, additional transport types and a nice logo.

Screenshot of YOURS


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#79 2009-10-26 17:48:54

Re: Routing website using Gosmore routing engine

Hi Lambertus,
The interface is very nicely done! Great improvement!

Does YOURS support housenumbers? I am looking for an free software routing service on OSM to check the housenumbers I entered. I also wrote a little tutorial on entering housenumbers and would like to cite your service as an example who would benefit from housenumbers.
http://wiki.openstreetmap.org/wiki/User … _eintragen

Until now my housenumber queries have failed on yours.

Perhaps you could add a statistics page. It would be interesting to know how many route requests were delivered. Perhaps this would lead to more people contributing (as they see its worthwile).

Another idea would be a simple report mechanism for wrong routing instructions. For example: sometimes when I enter start and endpoint I get a wrong route. I would like to send a short bug report to the designer of the routing algorithm. This report should contain the permalink to my query, (start address, end address), version and date of the OSM-data used, version of the routing software used, date of the routing request, and a short description what went wrong (did not use this motorway but that primary road, did route on forest track instead of available main road etc.). The answers and links could be posted to a message board so that the algorithm designers could improve their software. I think feedback could be very helpful to them.

I would like to help you, but unfortunately I am not a programmer.
Thank you for your great work.

Longbow4u

Offline

#80 2009-10-26 18:28:54

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

Longbow4u wrote:

Hi Lambertus,
The interface is very nicely done! Great improvement!

Thank you smile

Does YOURS support housenumbers? I am looking for an free software routing service on OSM to check the housenumbers I entered. I also wrote a little tutorial on entering housenumbers and would like to cite your service as an example who would benefit from housenumbers.
http://wiki.openstreetmap.org/wiki/User … _eintragen

No, because of two things:
1) The OpenStreetMap Gazetteer does not support housenumbers (Gazetteer does the name to location conversion when you search by text).
2) Gosmore (the routing engine) has the tendency to start/stop a route segment on the beginning or end of an OSM way. So it does not address position interpolation.

Perhaps you could add a statistics page. It would be interesting to know how many route requests were delivered. Perhaps this would lead to more people contributing (as they see its worthwile).

Yes, it's on my todo list, but not very high atm.

Another idea would be a simple report mechanism for wrong routing instructions. For example: sometimes when I enter start and endpoint I get a wrong route. I would like to send a short bug report to the designer of the routing algorithm. This report should contain the permalink to my query, (start address, end address), version and date of the OSM-data used, version of the routing software used, date of the routing request, and a short description what went wrong (did not use this motorway but that primary road, did route on forest track instead of available main road etc.). The answers and links could be posted to a message board so that the algorithm designers could improve their software. I think feedback could be very helpful to them.

I hope the developers of Gosmore welcome this, but they would get swamped with reports I'm afraid. There are so many parameters involved that a route is seldom perfect for anyone. There is a wiki page where weird routes could be reported, but reports got in so quickly that you can't develop fast enough to keep up.

I agree that it would be useful, but I doubt that a special interface (as opposed to the wiki page) would give the developers much better information. There is already an extensive list of routes that pose some difficulty, the devs can check against that list first and ask for more (I could put up a link on the website then).


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#81 2009-10-27 11:51:21

Re: Routing website using Gosmore routing engine

Hi Lambertus,
The new interface looks great! A few remarks:
1) the behaviour of dragging the waypoints on the map and moving them is a bit difficult, sometimes it works, sometimes not
2) by adding more waypoints the left windowframe becomes longer, but there is no slider to move downwards. So the find route button dissapears  from the screen and cannot be reached (Firefox 3.5, screensize 1280x800 on my 15.6inch laptop)

Offline

#82 2009-10-27 12:33:17

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

ligfietser wrote:

A few remarks:
1) the behaviour of dragging the waypoints on the map and moving them is a bit difficult, sometimes it works, sometimes not.

You can activate a waypoint by clicking the icon and then click again on the map to place the icon. Dragging the icon is not possible.

2) by adding more waypoints the left windowframe becomes longer, but there is no slider to move downwards. So the find route button dissapears  from the screen and cannot be reached (Firefox 3.5, screensize 1280x800 on my 15.6inch laptop)

Ah, yes that correct. I'm busy fixing the CSS and behavior of the site so it works in IE too and try to fix this at the same time.

Thanks for the feedback.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#83 2010-01-21 08:38:40

Re: Routing website using Gosmore routing engine

This looks FANTASTIC. Very promising, and already quite useful for me (I'm bicycle-only).
I am having an issue getting our greenway trail (gravel, foot & bike only, connects to other roads) to route both foot traffic (works great when bike is selected). the osm wiki says highway=cycleway should read this correctly, and have even tried putting in foot=yes. Is this a bug or a mistake on my part?

Offline

#84 2010-01-21 12:31:20

Re: Routing website using Gosmore routing engine

Lambertus, thanks for your code. Nice work. We are developing on it as well. I'd like to add some code contributions myself. How can I help?

The server, on which you host yournavigation.org, is it a standalone server, or a server with a control panel (like directadmin)? If you host only yournavigation.org and you have full control over it, please use varnish cache in front of the apache server. This can improve the speed of your API dramaticly, because those requests will be cached. I can help you if you want. The current code you are using for the API can be improved in speed much more, that it currently does. Currently every request is send through gosmore, but that isn't necessary.

By the way, please use json_encode instead of building your own json code, in /dev/gosmore.php. Because that won't generate faulty JSON code.

Offline

#85 2010-01-21 22:09:33

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

Cap'n Spork wrote:

This looks FANTASTIC. Very promising, and already quite useful for me (I'm bicycle-only).
I am having an issue getting our greenway trail (gravel, foot & bike only, connects to other roads) to route both foot traffic (works great when bike is selected). the osm wiki says highway=cycleway should read this correctly, and have even tried putting in foot=yes. Is this a bug or a mistake on my part?

It's most likely because the database for routing is getting very old. I'm having big problems with latest Gosmore versions to compile and run correctly under Linux AMD64. There is little time to work on it as well. There has been some back and forward mailing with the Karlsruhe uni about implementing their routing algo, but it has died slowly somehow, I really should spend more time on YOURS....

ict4schools wrote:

Lambertus, thanks for your code. Nice work. We are developing on it as well. I'd like to add some code contributions myself. How can I help?

The server, on which you host yournavigation.org, is it a standalone server, or a server with a control panel (like directadmin)? If you host only yournavigation.org and you have full control over it, please use varnish cache in front of the apache server. This can improve the speed of your API dramaticly, because those requests will be cached. I can help you if you want. The current code you are using for the API can be improved in speed much more, that it currently does. Currently every request is send through gosmore, but that isn't necessary.

By the way, please use json_encode instead of building your own json code, in /dev/gosmore.php. Because that won't generate faulty JSON code.

The server is a sponsored virtual machine with directadmin CP, I don't have too much control over it but the sponsor's IT fella has an interest in OSM and is always willing to help out.

Regarding the caching: I've been checking logs for a while and re-occuring routes with all parameters identical are very very rare. IMHO. not worth the trouble in configuring and maintaining a caching server. Linux itself is already helping by caching the section of the routing database that are in demand. Subsequent queries in the same area are much quicker then the first (you can see this already by requesting the same route a few times, the first is slow but subsequent queries are much faster (usually few hundreds of a second). Maintainability and ease of use is a big plus for someone who doesn't have much time so unless you have some numbers showing a huge effect I'd rather not use a caching server. However you can use a caching server for your own instance ofcourse.

As you might have noticed, I'm not a webdeveloper by profession, so I'm sure there will be many possible improvements to be made. I hadn't heard of the json_encode() function before, it seems useful indeed. I believe the faulty JSON code is already fixed earlier this week, or is it still broken?

You ask if you can help: well sure, you are welcome to! As you probably know, YOURS is in the OSM SVN which has a TRAC interface through which feature requests, bugs and other improvements can be coordinated. If you have some bits of code on specific issues you can post them there, mail them to me (osm [monkeytail] na1400 [dot] info) or start a branch in SVN. We can discuss things using e.g. osm or osm-dev IRC channels. Btw, do you have an example of 'We are developing on it as well'? I'd like to see what others have made of it... smile


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#86 2010-03-06 22:23:28

Re: Routing website using Gosmore routing engine

Hi,
What's the difference between options "bicycle" and "bicycle Route" ?

Are Turn-Restrictions working ?

Chris

Offline

#87 2010-03-08 10:37:33

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

Bicycle is the same as car routing or pedestian routing etc. Bicycle Route is preferring routes mapped with a bicycle route relations.

There is some basic turn-restriction support. The Gosmore wiki page used to point to a specific version of the relation:restriction wiki page, but that has changed so I don't know exactly which types and configurations.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#88 2010-03-15 01:31:54

Re: Routing website using Gosmore routing engine

Lambertus wrote:

Bicycle Route is preferring routes mapped with a bicycle route relations.

Yes, that was my guess, but it don't seems to work:

3962804.jpg

The way over the routes (left) is only little longer than the calculated route, so I expected
another calculation.

Chris

Offline

#89 2010-03-15 11:36:18

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

Yes, that's not optimal obviously ....

I just had a quick look at the request logs and it appears that a cycleroute request is treated as a normal bicycle routing request. Clearly a bug and I'll fix it asap.

Thanks for reporting this!


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#90 2010-04-17 00:09:52

Re: Routing website using Gosmore routing engine

I want to use gosmore and yours in a navigation application for android and i was wondering if you can say something about the uptime of the server.

i'm going to use the address http://www.yournavigation.org/api/1.0/gosmore.php.

thanks in advance

Offline

#91 2010-05-24 22:40:01

Re: Routing website using Gosmore routing engine

Nic Roets wrote:

I would be disappointed if we implement Netherlands-specific code. gosmore is ready to be used on the whole planet file ...


Hahaha,

this fucking piece of shit called gosmore is good for nothing. I never saw such a buggy and shitty thing. The only question I have is, what did the craftsman (I won't write developer, don't want to call him so because real developer might consider that offensive and insulting) smoke and how much did he drink while cobble this masterpiece of fucking shit?


Sincerely,
NixKoenner

Offline

#92 2010-05-25 11:43:44

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

NixKoenner wrote:
Nic Roets wrote:

I would be disappointed if we implement Netherlands-specific code. gosmore is ready to be used on the whole planet file ...

Hahaha,

this fucking piece of shit called gosmore is good for nothing. I never saw such a buggy and shitty thing. The only question I have is, what did the craftsman (I won't write developer, don't want to call him so because real developer might consider that offensive and insulting) smoke and how much did he drink while cobble this masterpiece of fucking shit?


Sincerely,
NixKoenner

Leave the insults at home next time, thanks.

So, you think that Gosmore is rubbish eh? Can you provide an alternative routing engine that is able to handle the OSM planet dump and runs on a modest machine?


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#93 2010-05-25 12:04:02

Re: Routing website using Gosmore routing engine

@NixKoenner After insulting gosmore on talk-de as well, how about you go an troll somewhere else. But I guess your Name sais it all.

Offline

#94 2010-05-26 15:00:38

Re: Routing website using Gosmore routing engine

Wow, this is a great service. I'd like to use it for OpenMobileMaps (http://omm.mine.nu). Right now, I'm using openrouteservice.org for route calculation, but unfortunately it's limited to europe only.
Thank you for making YOURS!

I haven't looked into the API of YOURS atm, but I've seen, that there seems to be one online. Do I need to know anything else to implement it? Something that is not covered in your wiki?
Right now, I'm counting about 4000 online users for OpenMobileMaps. Round about 500 people were using it over the past 7 days; approx. 80 unique users per day. Can these amounts cause any problems to YOURS?

Offline

#95 2010-06-04 19:07:33

Re: Routing website using Gosmore routing engine

Hi - The routing service looks like a great concept.  A question: I tried to test it to find Foot- and Bicycle- routing on a designated foot+bicycle trail.   However it seemed to avoid the trail as shown in this example:  Yours.jpg .   I checked it out on the Wiki, but can't tell if the foot routing is supposed to be functional.      The trail attributes are highway=path , foot=designated, bicycle=designated

Thanks for any tips.

Last edited by MikeN (2010-06-04 19:08:22)

Offline

#96 2010-06-04 21:43:44

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

Cipher2k wrote:

Wow, this is a great service. I'd like to use it for OpenMobileMaps (http://omm.mine.nu). Right now, I'm using openrouteservice.org for route calculation, but unfortunately it's limited to europe only.
Thank you for making YOURS!

I haven't looked into the API of YOURS atm, but I've seen, that there seems to be one online. Do I need to know anything else to implement it? Something that is not covered in your wiki?
Right now, I'm counting about 4000 online users for OpenMobileMaps. Round about 500 people were using it over the past 7 days; approx. 80 unique users per day. Can these amounts cause any problems to YOURS?

Sorry for not responding earlier, I've missed your post...

You are correct, there is currently only one YOURS API online, but everyone is free to setup another one and even using another routing engine isn't difficult. There's not much to it and most of it is covered in the wiki, especially API 1.0.

Everyone is welcome to use the API as long as it doesn't overwhelm it. In those cases I would like the 3rd party API user to setup their own API. This situation hasn't happened yet. Under normal circumstances 80 unique users shouldn't be a problem unless.....:

- It sometimes happens when one or a few ppl are requesting very long routes. In that situation the routing database cannot be cached in the available RAM (2 GB) which causes the harddisk to start seeking which slows the whole process of route calculation down to a crawl. Two solutions would help with this: lots of ram or harddisks with very high I/O throughput (SSD), neither are currently in place.
- There are huge problems in processing the OSM planet dump by the routing engine (updating the routing database). This has led to problems which are pointed out by MikeN; the OSM map is up to date but the routing database is not so it looks like the routing does weird things like avoiding certain routes.

I'm trying to fix these problems through a few actions and changes:
- Split up the world in large sections and hoping that Gosmore is able to complete the routing database update but this is slow work due to the amount of data that needs to be processed on each attempt. This will get the database updated but will break the capability (although slow) to calculate very long routes
- Add support for a different routing engine(s). I have my eyes on one that incorporates contraction hierarchies algorithms from KIT (Karlsruhe Institiute of Technology), but it will take a while for it to become available.
- Allow multiple routing API's to spread the load by round robin-like techniques or by geography. The latter might perhaps interest e.g. the OSM USA community and will also reduce the memory (or I/O subsystem) requirements as more of the routing database will be able to fit into RAM.
- As a nifty alternative: I'm thinking about getting a few ARM Cortex A8 or A9 boards and use those as a power efficient distributed routing cluster... might prove cost efficient compared to a single very beefed-up server doing all the work by itself...

So the bottom line is: routing database is currently not up to date and the service may reject your route request now and then when the service is locked down by some long route request(s). If you can live with this then you're welcome to use the service. I'm sorry I can't provide anything more robust, but it's just an opensource/hobby project with no proper funding.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#97 2010-06-07 20:51:30

Re: Routing website using Gosmore routing engine

I have implemented your service in the latest release of OpenMobileMaps (1.4). It works fine for now. And, I even get better usage statistics: in a 5 minutes window there are an average of 5 unique phones online. Let's hope they are not calculating long routes. big_smile
But, I also implemented some fallbacks. If your server rejects the requests, then I'm trying to let openrouteservice.org calculate the route. I guess we will have to see if OpenMobileMaps has an noticeable impact on your server. Of course, I'm sending an X-Yours-client HTTP header.

Thank you for providing the service!

Offline

#98 2010-06-08 09:28:50

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

Cipher2k wrote:

I have implemented your service in the latest release of OpenMobileMaps (1.4). It works fine for now. And, I even get better usage statistics: in a 5 minutes window there are an average of 5 unique phones online. Let's hope they are not calculating long routes. big_smile
But, I also implemented some fallbacks. If your server rejects the requests, then I'm trying to let openrouteservice.org calculate the route. I guess we will have to see if OpenMobileMaps has an noticeable impact on your server.

Seems like a very smart thing to do smile

Of course, I'm sending an X-Yours-client HTTP header.

Thanks!

Thank you for providing the service!

No problem. Thanks for actually using yournavigation.org wink

I'm making some progress in updating the gosmore routing database by splitting the world in smaller but overlapping boxes. This will mean I can provide regular updates again soon, but at the cost of very long routes (the ones that don't fit into any single box). Ofcourse the API will return a relevant error message when this happens.

Edit: This day until now (11:00h CET) there have been 12 requests from OpenMobileMaps

Last edited by Lambertus (2010-06-08 10:57:02)


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#99 2010-06-08 17:14:45

Lambertus
Administrator
From: Apeldoorn (NL)
Registered: 2007-03-17
Posts: 2,961
Website

Re: Routing website using Gosmore routing engine

Just some statistics, because stats are cool...

There have been 2703 requests yesterday which is a bit higher compared to the average 2500 requests per day. So on average one request every ~30 seconds cool !

Requests yesterday:
Unreferenced API users: 1560
Yournavigation.org: 635
tracks4bikers: 218
OpenMobileMaps: 77
ParkenApp: 53
gvSIG: 50
OpenMaps: 48
OpenSatNav: 32
MySpeed: 23
YOURS OSM wiki page: 6
CarPark: 1

An unreferenced API user is someone who accesses the YOURS API through a 3rd party application/website, so by far the biggest group of users is coming from applications/websites that do not identify themselves. I've checked a few of those requests and they all originate from Belarus or the Russian Federation...


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#100 2010-06-08 18:36:12

Re: Routing website using Gosmore routing engine

Yes, stats are definitely cool. big_smile
So, OMM is already on the 2nd place amongst registered applications. I think this number will be doubled in the next few weeks. Because, there is still a significant number of users who are using the old version of OMM (without YOURS).

Offline

Board footer

Powered by FluxBB 1.4.8
Hosting sponsored by Oxilion