Issue when routing across two countries

Routing works excellent on my Nuvi except when the Start/End points are in different countries; if it is the case: 1. the device takes a lot (minutes) to calculate the route - also if the two points/cities are pretty close, while for routes within the same country takes seconds. 2. the route to follow (purple) is mostly translated from the real streets, a picture <http://imageshack.us/photo/my-images/401/garminrouteissue.jpg/>( http://imageshack.us/photo/my-images/401/garminrouteissue.jpg/ - sorry for the quality) better explains the behavior: the red street is the highway, that's the only possible way. The purple line is the displayed route, as you can see they are not matching. This happens only when start/end points are in different countries. Picture is taken routing from Bolzano, Italy to Innsbruck, Austria. I create gmapsupp from geofabix's pbf files, I tried today with mkgmap version r2306, but I experienced the issue as well with older versions I tried with. I use standard command lines option only "--route --remove-short-arcs --add-pois-to-areas --index --gmapsupp". Bounds are from navmaps.eu Any clue? Thanks! Enrico

On Sun, Jun 24, Enrico Liboni wrote:
This happens only when start/end points are in different countries. Picture is taken routing from Bolzano, Italy to Innsbruck, Austria. I create gmapsupp from geofabix's pbf files,
"files"? Did you create a map for every single country or did you merge different pbf files? If yes, that's the reason why routing about borders is broken for you. Thorsten -- Thorsten Kukuk, Project Manager/Release Manager SLES SUSE LINUX Products GmbH, Maxfeldstr. 5, D-90409 Nuernberg GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer, HRB 16746 (AG Nürnberg)

I see this as well. I create separate maps from separate downloads for Netherlands, Belgium, Nord-Pas de Calais, UK. Then I merge them into a single gmapsupp.img by referencing the tile img files: java $(LOGOPTS) -Xmx1400m -jar $(MKGMAP_W) --read-config="$(CFG_MERGE_W)" $(WORK_BNL_W)\\6*.img $(WORK_BEL_W)\\6*.img $(WORK_PDC_W)\\6*.img $(WORK_UK_W)\\6*.img If I make a gmapsupp.img for an individual country it works great. But the route calculation is only successful if the from and to points are in the same country. The calculation just hangs at a certain percentage. Colin On 24/06/2012 07:32, Thorsten Kukuk wrote:
On Sun, Jun 24, Enrico Liboni wrote:
This happens only when start/end points are in different countries. Picture is taken routing from Bolzano, Italy to Innsbruck, Austria. I create gmapsupp from geofabix's pbf files, "files"? Did you create a map for every single country or did you merge different pbf files? If yes, that's the reason why routing about borders is broken for you.
Thorsten

If you merge several separated maps, you have one routing-network for each seperate map. These networks are not connected to each other, so routing just works inside the network. You have to use one osm-File, which contains everything you want and process one map. Henning

On 24.06.2012 11:26, Colin Smale wrote:
I see this as well. I create separate maps from separate downloads for Netherlands, Belgium, Nord-Pas de Calais, UK. Then I merge them into a single gmapsupp.img by referencing the tile img files:
java $(LOGOPTS) -Xmx1400m -jar $(MKGMAP_W) --read-config="$(CFG_MERGE_W)" $(WORK_BNL_W)\\6*.img $(WORK_BEL_W)\\6*.img $(WORK_PDC_W)\\6*.img $(WORK_UK_W)\\6*.img
Merge the source OSM files with for example osmosis, split them then and process the result with mkgmap. This will give you a gmapsupp file with cross-country routing. Note though that this will only work if the OSM files are touching or slightly overlapping. If you want to be sure extract the data from a larger region like the Europe file from Geofabrik and cut out the desired regions with osmosis --bp or --bb. Regards, Michael
If I make a gmapsupp.img for an individual country it works great. But the route calculation is only successful if the from and to points are in the same country. The calculation just hangs at a certain percentage.
Colin
On 24/06/2012 07:32, Thorsten Kukuk wrote:
On Sun, Jun 24, Enrico Liboni wrote:
This happens only when start/end points are in different countries. Picture is taken routing from Bolzano, Italy to Innsbruck, Austria. I create gmapsupp from geofabix's pbf files, "files"? Did you create a map for every single country or did you merge different pbf files? If yes, that's the reason why routing about borders is broken for you.
Thorsten

Thanks for the feedbacks, I don't think I'm creating imgs files and then merge them - as Colin is doing. What I do is the following: 1. download some countries *.pbf files from geofabick and place in a $DATA folder 2. run splitter on them (java -jar $SPLITTER_HOME/splitter.jar --output-dir="$DATA" $DATA/*.pbf) 3. run mkgmap on the splittered pbf files (java -jar $MKGMAP_HOME/mkgmap.jar --route --remove-short-arcs --add-pois-to-areas --index --gmapsupp --output-dir="$DATA" $DATA/6*osm.pbf); Do you mean I should first collate the *pbf together in a sinfle pbf file (using osmconvert or similar) or should I get since the beginning a single pbf/osm file containing the whole area I want to process? Thanks!

Am 24.06.2012 15:08, schrieb Enrico Liboni:
Do you mean I should first collate the *pbf together in a sinfle pbf file (using osmconvert or similar) or should I get since the beginning a single pbf/osm file containing the whole area I want to process? This could work, but there will be some roads which gets broken. So routing wont be very good. Better you download a extract which contains all your mapdata and then cut out the needed data and then run splitter and mkgmap on this data.
Henning

Thanks guys! Works like a charm now. I uses osmosis to collate the *pbf files and then split/mkgmap on the result. Osmconvert does not seem to accept more than one input pbf file. I'll try downloading the Europe map and cut it instead of merging countries in case of routing issues: however I did several attempts and all seems fine. Thanks, Enrico On Sun, Jun 24, 2012 at 3:08 PM, Enrico Liboni <eliboni@gmail.com> wrote:
Thanks for the feedbacks, I don't think I'm creating imgs files and then merge them - as Colin is doing. What I do is the following:
1. download some countries *.pbf files from geofabick and place in a $DATA folder 2. run splitter on them (java -jar $SPLITTER_HOME/splitter.jar --output-dir="$DATA" $DATA/*.pbf) 3. run mkgmap on the splittered pbf files (java -jar $MKGMAP_HOME/mkgmap.jar --route --remove-short-arcs --add-pois-to-areas --index --gmapsupp --output-dir="$DATA" $DATA/6*osm.pbf);
Do you mean I should first collate the *pbf together in a sinfle pbf file (using osmconvert or similar) or should I get since the beginning a single pbf/osm file containing the whole area I want to process?
Thanks!
participants (6)
-
aighes
-
Carlos Dávila
-
Colin Smale
-
Enrico Liboni
-
Michael Günnewig
-
Thorsten Kukuk