OpenStreetMap Forum

The Free Wiki World Map

You are not logged in.

Announcement

A fix has been applied to the login system for the forums - if you have trouble logging in please contact support@openstreetmap.org with both your forum username and your OpenStreetMap username so we can make sure your accounts are properly linked.

#51 2008-10-08 10:09:23

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

Re: Routing website using Gosmore routing engine

That depends on the type of issue that you have. If your route does not take the route that you'd expect then the 'weird routes' page could be a good place to post it, otherwise you could post it to the gosmore talk page in the wiki or in trac (applications -> renderers -> gosmore).

But if you're more comfortable with the forum, then you can post it here.

Update: Searching street- and placenames containing non-Roman characters should be working now. I've fixed the urlencoding so that characters like ø, å and ß are encoded correctly.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#52 2009-02-11 06:46:44

yetzt
Member
Registered: 2009-02-11
Posts: 1

Re: Routing website using Gosmore routing engine

i'd love to use it for our bike messenger application, but gosmore sometimess seems to spit out strange results:

http://www.yournavigation.org/gosmore.p … yer=mapnik
http://www.yournavigation.org/gosmore.p … yer=mapnik

they show a distance of 23317.324199121 km and have strange characters in the waypoints set, which annoys my xml parser.
don't get me wrong, i'd love to charge our customers a 23317 km ride ;-)

Offline

#53 2009-02-11 09:37:52

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

Re: Routing website using Gosmore routing engine

Here is a copy of my PM response:

Hi,

Thanks for the report. It looks like the routing database is corrupted somewhere along that route. It outputs binary data in the middle of the route. Next thursday there will be a database rebuild which takes about 3 days. Please try again when the database is updated. I am on holiday next week, but please let me know if the problem is solved.

QUERY_STRING='flat=51.365337&flon=12.357857&tlat=51.321110&tlon=12.327906&fast=1&v=bicycle' nice ./gosmore
Content-Type: text/plain

51.365248,12.358808,J,residential,Cöthner StraÃe
51.365436,12.356837,j,residential,MottelerstraÃe
51.364494,12.356592,J,residential,MottelerstraÃe
51.363332,12.356290,J,residential,Kasseler StraÃe
51.363697,12.354046,J,residential,BothestraÃe
51.362589,12.353689,J,secondary,KirschbergstraÃe
51.362814,12.353225,j,secondary,KirschbergstraÃe
51.363419,12.352075,j,secondary,KirschbergstraÃe
51.363704,12.351179,j,secondary,KirschbergstraÃe
51.363919,12.350499,J,secondary,KirschbergstraÃe
51.364068,12.350091,J,cycleway,Heuweg
51.363316,12.349483,j,cycleway,Heuweg
51.362688,12.347836,j,cycleway,Heuweg
51.362344,12.346535,J,cycleway,Heuweg
51.362107,12.345388,j,cycleway,Heuweg
51.361840,12.343536,J,cycleway,Heuweg
51.361808,12.343110,j,cycleway,Heuweg
51.361679,12.342042,j,cycleway,Heuweg
51.361635,12.341701,j,cycleway,Heuweg
51.361585,12.341265,J,cycleway,Heuweg
51.361538,12.340879,j,cycleway,Heuweg
51.361317,12.338242,J,(null),Marienweg
51.361175,12.335882,J,(null),Marienweg
51.361072,12.335292,J,(null),footway
51.360589,12.335441,J,(null),footway
51.359943,12.335610,j,(null),footway
51.358861,12.336239,j,(null),footway
51.357552,12.337071,J,(null),footway
51.356449,12.337839,j,$
»[©*H@cEÿÿÿÿl©"S«*â@ÿÿÿÿ ExC©"S«*â@ÿÿÿÿ§EÜÜ
"S«*â@ÿÿÿÿBEàõÁ
"S«*â@XEkEÔ/
ÚY«*#AEbEÀ,
Ú
t»«*½DMEÿÿÿÿÀ,
t»«*½Dÿÿÿÿ{EÀ,
@²«*ïGzE^E´-] ©*IÿÿÿÿÿÿÿÿÀo"³¨*àIExEÀ,
t«*ðIvEYE©°«*JVEEÌÊE°«*JEÿÿÿÿÔ/
l}«*ïLbEEÌÊEl}«*ïLÿÿÿÿEÔ/
@~«*½NEÿÿÿÿÔ/
@~«*½NÿÿÿÿEÐ\«*VRÿÿÿÿÿÿÿÿ4 ;!¨*eSÿÿÿÿÐEÀo"!¨*eSE}EP>
Ϋ*bTTEÀEÔB^Ϋ*bT£Eÿÿÿÿ POné¨*XUÿÿÿÿÿÿÿÿ
Csþ¨*¡XÿÿÿÿE|Csþ¨*¡XCsþ¨*¡X EÿÿÿÿÔ/
@d«*WZÄ
EuEpÆóO ª*ÕZÿÿÿÿÿÿÿÿä5
Ùª*ð]UEEp
;Eh¨*ß`iE­E$(
Ç«*a«Eÿÿÿÿ$(
Ç«*aÿÿÿÿ¡EÄ
«*#e¨Eÿÿÿÿ,;A­¨*Òeÿÿÿÿ2!EÀo"A­¨*ÒeÎEE|C
;¨*¨b0ÑD¤E «*#E¢Eä@^sE|POö©*Èbÿÿÿÿÿÿÿÿä5 ÷¨* h¹EE8¸,construction*#eE_E©s
51.356358,12.338084,j,$
»[©*H@cEÿÿÿÿl©"S«*â@ÿÿÿÿ ExC©"S«*â@ÿÿÿÿ§EÜÜ
"S«*â@ÿÿÿÿBEàõÁ
"S«*â@XEkEÔ/
ÚY«*#AEbEÀ,
Ú
t»«*½DMEÿÿÿÿÀ,
t»«*½Dÿÿÿÿ{EÀ,
@²«*ïGzE^E´-] ©*IÿÿÿÿÿÿÿÿÀo"³¨*àIExEÀ,
t«*ðIvEYE©°«*JVEEÌÊE°«*JEÿÿÿÿÔ/
l}«*ïLbEEÌÊEl}«*ïLÿÿÿÿEÔ/
@~«*½NEÿÿÿÿÔ/
@~«*½NÿÿÿÿEÐ\«*VRÿÿÿÿÿÿÿÿ4 ;!¨*eSÿÿÿÿÐEÀo"!¨*eSE}EP>
Ϋ*bTTEÀEÔB^Ϋ*bT£Eÿÿÿÿ POné¨*XUÿÿÿÿÿÿÿÿ
Csþ¨*¡XÿÿÿÿE|Csþ¨*¡XCsþ¨*¡X EÿÿÿÿÔ/
@d«*WZÄ
EuEpÆóO ª*ÕZÿÿÿÿÿÿÿÿä5
Ùª*ð]UEEp
;Eh¨*ß`iE­E$(
Ç«*a«Eÿÿÿÿ$(
Ç«*aÿÿÿÿ¡EÄ
«*#e¨Eÿÿÿÿ,;A­¨*Òeÿÿÿÿ2!EÀo"A­¨*ÒeÎEE|C
;¨*¨b0ÑD¤E «*#E¢Eä@^sE|POö©*Èbÿÿÿÿÿÿÿÿä5 ÷¨* h¹EE8¸,construction*#eE_E©s
51.356304,12.338590,j,(null),footway
51.356206,12.339027,j,(null),footway
51.355612,12.339330,J,(null),footway
51.355250,12.339513,J,(null),footway
51.353852,12.340469,j,(null),footway
51.353292,12.340842,J,(null),footway
51.352622,12.341295,j,(null),footway
51.352154,12.341585,J,(null),footway
51.352056,12.341650,J,cycleway,cycleway
51.351618,12.341866,j,cycleway,cycleway
51.351181,12.342185,j,cycleway,cycleway
51.350997,12.342460,j,cycleway,cycleway
51.350794,12.342611,J,(null),Am Sportforum
51.350721,12.342412,J,(null),path
51.350236,12.342655,j,(null),path
51.347278,12.344216,j,(null),path
51.341461,12.347357,j,(null),path
51.340119,12.348074,j,(null),path
51.339960,12.348165,J,(null),path
51.339794,12.348259,J,(null),path
51.339739,12.348282,J,(null),path
51.339387,12.348472,j,(null),path
51.338610,12.348933,J,(null),path
51.336593,12.350109,J,(null),path
51.336210,12.350312,j,(null),path
51.335839,12.350667,J,(null),path
51.335408,12.350952,J,(null),path
51.335198,12.351089,J,(null),path
51.335059,12.351171,j,(null),path
51.334982,12.351230,j,cycleway,Peterssteg
51.334766,12.351371,J,cycleway,cycleway
51.334159,12.351542,j,cycleway,cycleway
51.333795,12.351834,J,cycleway,cycleway
51.333505,12.352194,J,secondary,Käthe-Kollwitz-StraÃe
51.333471,12.352145,j,secondary,Klingerbrücke
51.332998,12.351263,j,secondary,Käthe-Kollwitz-StraÃe
51.332948,12.351172,J,secondary,Käthe-Kollwitz-StraÃe
51.332824,12.350946,J,secondary,Käthe-Kollwitz-StraÃe
51.332717,12.350752,J,secondary,Käthe-Kollwitz-StraÃe
51.332656,12.350643,T,secondary,Käthe-Kollwitz-StraÃe
51.332588,12.350528,T,secondary,Käthe-Kollwitz-StraÃe
51.332177,12.349855,j,secondary,Käthe-Kollwitz-StraÃe
51.332142,12.349741,j,secondary,Karl-Heine-StraÃe
51.332118,12.349611,J,secondary,Karl-Heine-StraÃe
51.332127,12.349465,j,secondary,Karl-Heine-StraÃe
51.332154,12.348815,J,residential,NonnenstraÃe
51.331830,12.348754,j,residential,NonnenstraÃe
51.331672,12.348677,j,residential,NonnenstraÃe
51.331393,12.348306,j,residential,NonnenstraÃe
51.330978,12.347474,J,residential,NonnenstraÃe
51.330061,12.345603,J,residential,NonnenstraÃe
51.328737,12.343098,J,residential,NonnenstraÃe
51.327231,12.340535,j,residential,NonnenstraÃe
51.327149,12.340400,j,residential,NonnenstraÃe
51.326696,12.339574,J,(null),IndustriestraÃe
51.326721,12.339531,J,residential,NonnenstraÃe
51.326551,12.339225,J,residential,NonnenstraÃe
51.325427,12.337300,J,residential,Erich-Zeigner-Allee
51.325236,12.337215,J,residential,Erich-Zeigner-Allee
51.324498,12.336887,J,residential,Erich-Zeigner-Allee
51.324122,12.336681,J,residential,Erich-Zeigner-Allee
51.323920,12.336597,j,residential,Erich-Zeigner-Allee
51.321681,12.335530,J,residential,LimburgerstraÃe
51.321832,12.334853,J,residential,LimburgerstraÃe
51.321964,12.334196,J,residential,LimburgerstraÃe
51.322188,12.333090,J,residential,LimburgerstraÃe
51.322376,12.332025,J,residential,LimburgerstraÃe
51.322499,12.330841,j,residential,LimburgerstraÃe
51.322645,12.329555,J,residential,WachsmuthstraÃe
51.321475,12.329226,J,residential,SiemensstraÃe
51.321544,12.328039,J,residential,WendlerstraÃe


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#54 2009-02-25 19:59:00

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

Re: Routing website using Gosmore routing engine

David Dean has been so kind to add support for the maxspeed tag in Gosmore. Routing results should become a bit more realistic with this change.

David also made a change that allows changes to the Gosmore routing definitions without the need to rebuild the .pak database files. This will speed-up testing different speed values for different kinds of transport on different kinds of roads a lot.

Last, David also changed Gosmore so that it can use the same .pak database file for different routing configurations (elemstyles). This will reduce the number of databases needed and therefore the amount of time before a planet dump is imported. For YourNavigation.org this could mean a reduction from 3-4 days to only 1-2 days.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#55 2009-03-22 11:53:23

jachymc
Member
Registered: 2009-03-22
Posts: 1

Re: Routing website using Gosmore routing engine

Hi, I would like to join this routing engine development -- improve the OpenLayers part little bit.

My questions are:

* Where can I get the sources? The svn from wiki [1] does not work.
* What is the license of the project? Is it BSD allready?

Jachym

[1] http://wiki.openstreetmap.org/index.php/YOURS

Offline

#56 2009-03-23 10:08:53

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

Re: Routing website using Gosmore routing engine

Good points and welcome as a future contributor. I haven't uploaded the source into SVN yet (was busy with a major overhaul of my Garmin maps project) but I should really do this very soon (this evening?). The license is BSD.

Basically there are two versions of YOURS, the one you see on http://yournavigation.org and a developement version (which is a mess atm). The latter one is meant to support route via's and route directions.

Update: the source is now in SVN.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#57 2009-03-26 21:20:04

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

Re: Routing website using Gosmore routing engine

Ouch, I just discovered that the routing database hasn't been updated since the end of February. New databases were created each week but the website kept looking at an old version. This is fixed now.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#58 2009-04-24 09:58:47

StevenS
Member
Registered: 2009-04-24
Posts: 2

Re: Routing website using Gosmore routing engine

Hi Lambertus,

i would like to see if i can use your route-service on a small website i'm building (OpenLayers, OpenStreetMap).

At the moment it seems that yournavigation.org isn't working. I receive an error:
Status: An unexpected error occured in Gosmore:

Regards,
Steven

Offline

#59 2009-04-24 11:17:13

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

Re: Routing website using Gosmore routing engine

StevenS wrote:

i would like to see if i can use your route-service on a small website i'm building (OpenLayers, OpenStreetMap).

At the moment it seems that yournavigation.org isn't working. I receive an error:
Status: An unexpected error occured in Gosmore:

Yes, the Gosmore update process failed because of the API upgrade (and planet dumps that got broken because of that). Unfortunately this caused the existing Gosmore database files to be deleted. I'm already trying to build new databases but this will take a few days... Sorry about that.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#60 2009-04-24 11:40:30

StevenS
Member
Registered: 2009-04-24
Posts: 2

Re: Routing website using Gosmore routing engine

No problem. I'll have no problem filling this time with figuring out how to incorporate yournavigation in my own website. :-)

i'll start with looking into the code of your site today.

bedankt,
Steven

Offline

#61 2009-04-28 12:24:11

Chachi
Member
Registered: 2008-10-16
Posts: 6

Re: Routing website using Gosmore routing engine

Lambertus wrote:

David Dean has been so kind to add support for the maxspeed tag in Gosmore. Routing results should become a bit more realistic with this change.

David also made a change that allows changes to the Gosmore routing definitions without the need to rebuild the .pak database files. This will speed-up testing different speed values for different kinds of transport on different kinds of roads a lot.

Last, David also changed Gosmore so that it can use the same .pak database file for different routing configurations (elemstyles). This will reduce the number of databases needed and therefore the amount of time before a planet dump is imported. For YourNavigation.org this could mean a reduction from 3-4 days to only 1-2 days.

Will these gosmore changes be published/released at some point ?

Offline

#62 2009-04-28 15:27:47

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

Re: Routing website using Gosmore routing engine

They are committed to the SVN repository afaik.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#63 2009-04-28 15:48:17

Chachi
Member
Registered: 2008-10-16
Posts: 6

Re: Routing website using Gosmore routing engine

Lambertus wrote:

They are committed to the SVN repository afaik.

Mea culpa ... scanned the top handful and saw 5-9 mos aged files and missed the handful of updates from 2 mos ago   roll

Offline

#64 2009-05-12 20:58:05

MetaView
Member
Registered: 2009-05-12
Posts: 1

Re: Routing website using Gosmore routing engine

Seems the routing is sometimes wrong.

Look at this route:

from (Halle (Saale), Germany)

11.970158,51.482192

to (Erfurt, Germany)

11.108871,50.916092

The pedestrian route and the shortest routes are ok, but the fastest route for cars goes to Poland...

Regards
Henk

Offline

#65 2009-05-20 08:10:01

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

Re: Routing website using Gosmore routing engine

I have no idea what's going on there, my route goes via Antartica or does not compute at all sad Other tests in different areas works fine...

Development update: I've added support for motorway=yes which implies that agricultural, .bicycles and pedestrians are not allowed


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#66 2009-06-24 19:29:24

Arminus
Member
Registered: 2009-04-29
Posts: 41
Website

Re: Routing website using Gosmore routing engine

In the Wiki, you said you'd be supporting route via's in a couple of weeks. When will this be available ? Since I'm presently just prototyping things, I'd also be glad to help with testing and alpha versions.

Offline

#67 2009-06-25 08:35:11

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

Re: Routing website using Gosmore routing engine

Hmm, did I say that? tongue

I have been working on via's and directions and a complete website makeover but it all has stalled when the routable Garmin maps service took off and now because I'm in the process of moving to my new house. The code of this new version is a mess and not functional (but you can see where I'm going).


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#68 2009-07-30 08:55:09

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

Re: Routing website using Gosmore routing engine

The harddisk of the server got full tonight (again). Unfortunately this broke the Gosmore database so routing isn't working for the next few days...


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#69 2009-08-05 15:37:08

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

Re: Routing website using Gosmore routing engine

The Gosmore database for Europe, Asia, Africa and Oceania is up-to-date again. America is next.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#70 2009-08-10 07:59:27

delta_foxtrot2
Member
Registered: 2009-05-22
Posts: 83

Re: Routing website using Gosmore routing engine

I've been looking over your code, and I noticed this in gosmore.php

echobig($kml, 1024);

Which would possibly be self defeating if the server uses deflate/gzip compression etc.

Also you don't need the ?> at the end of the file, this just leads to problems if there is trailing blanks, better to not have it.

Last edited by delta_foxtrot2 (2009-08-10 08:02:41)

Offline

#71 2009-08-10 10:33:06

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

Re: Routing website using Gosmore routing engine

Thanks for reporting this. The echobig thing was hearsay and I just copied it... smile Anyway, I replaced the whole echobig thing with just 'echo $kml;'. I also enabled standard gzip compression to the .htaccess file and confirmed that the output is now gzipped when the client requests it.

I always thought that, when you 'open' the PHP code with '<?php' you'd always have to add the 'close' as well ('?>'). But I searched it up and found this. So, yes, you actually have to omit the closing php tag.

Thanks again.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#72 2009-08-10 16:06:58

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

Re: Routing website using Gosmore routing engine

North South America is up-to-date again. I'll try to make backups first before copying new (and possibly corrupted) databases over older working ones wink


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#73 2009-08-11 09:14:52

delta_foxtrot2
Member
Registered: 2009-05-22
Posts: 83

Re: Routing website using Gosmore routing engine

Lambertus wrote:

Thanks for reporting this. The echobig thing was hearsay and I just copied it... smile Anyway, I replaced the whole echobig thing with just 'echo $kml;'. I also enabled standard gzip compression to the .htaccess file and confirmed that the output is now gzipped when the client requests it.

There is a limit of about 1280 usable byte per packet most of the time, however the TCP stack/NIC deals with this just fine all on it's own you don't need to do a thing about it.

I always thought that, when you 'open' the PHP code with '<?php' you'd always have to add the 'close' as well ('?>'). But I searched it up and found this. So, yes, you actually have to omit the closing php tag.

As the link says, it's optional if you have a closing tag or not, but they said the same thing I did, you don't end up with problems of trailing white spaces which can cause issues if you don't have the closing tag.

Offline

#74 2009-08-17 20:17:32

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

Re: Routing website using Gosmore routing engine

I finally fixed the GPX export function so that it uses a HTTP POST query instead of HTTP GET. This makes the export function to work even with long routes.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

#75 2009-08-25 19:47:29

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

Re: Routing website using Gosmore routing engine

Two major things changed:

1) Routing can now use waypoints.

2) The routing API can return the route results in geoJSON format.

Also an IE 6.0 bug has been fixed.


Mapping tools: Garmin GPSmap 60CSx, Giant Terrago 2002

Offline

Board footer

Powered by FluxBB