How to add millions of addresses to your garmin maps of France

Hi map makers, The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. It's built from various sources besides OSM data. Thanks to the land tax administration, we french OSM mappers have access to the complete "cadastre" (i.e. building shapes, street names and addresses) covering the entire country. This information, with OpenData adresses and OSM data on the side, is now mashed up into the "BANO" database. 11+ million addresses have been matched to a street name in OSM, 1.4 million addresses are gathered from the OpenData files of several cities, 2.6 million come from OSM. Those numbers will improve over time, as this DB is not complete yet. See a map at [1], green dots are OSM addresses, blue ones addresses matched to a street name, yellow dots are from OpenData files and red are addresses not yet matched to an existing street name. How to add the addresses when creating Garmin maps ? The data is available in CSV format, geographically split following the "département" boundaries (admin_level 6). The steps are : Download a fresh .pbf Geofabrik file of France (admin_level 2) or one of its "région" (admin_level 4) Download the BANO CSV files covering the previously downloaded area Merge the CSV files. Filter address source to keep only matched addresses and OpenData addresses (blue and yellow dots). Convert the CSV format to OSM format. Merge the .osm file to the Geofabrik file. Launch your usual map generation workflow with this new file. I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive. The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ). You'll have to edit the script to configure it to your installation : BANODIR=directory where the script will download and store the BANO files PBFDIR=directory where the .pbf files are read and written BINDIR=directory where osmconvert is stored Usage : add-bano-addresses.sh region where region can be france or any of those listed on http://download.geofabrik.de/europe/france.html [1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF... Cheers, Paco

Hi, Thank you very much Paco Tyson :-) for your script. I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error. However, searching an address in the device (etrex 30) or in BaseCamp is the same as before. e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street! I use the default style with modifications but not in inc/address. Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \ An idea what I'm doing wrong ? Steph Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco

Hi Steph, can you post a link to the input file(s) ? If not: what other house numbers are close to the one you are searching? Gerd
Date: Tue, 3 Feb 2015 17:54:19 -0300 From: st3ph.martin@laposte.net To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi,
Thank you very much Paco Tyson :-) for your script.
I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error.
However, searching an address in the device (etrex 30) or in BaseCamp is the same as before.
e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street!
I use the default style with modifications but not in inc/address.
Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \
An idea what I'm doing wrong ?
Steph
Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, I hope I have not forgotten anything. https://tuxdomain.darktech.org/osm-garmin/index.php?dir=Guyane/test-bano Thanks Steph Le 03/02/2015 18:18, Gerd Petermann a écrit :
Hi Steph,
can you post a link to the input file(s) ?
If not: what other house numbers are close to the one you are searching?
Gerd
Date: Tue, 3 Feb 2015 17:54:19 -0300 From: st3ph.martin@laposte.net To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi,
Thank you very much Paco Tyson :-) for your script.
I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error.
However, searching an address in the device (etrex 30) or in BaseCamp is the same as before.
e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street!
I use the default style with modifications but not in inc/address.
Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \
An idea what I'm doing wrong ?
Steph
Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Steph, I think you did nothing wrong, it's mkgmap that is not able to handle the data correctly. I am working on this issue in the branch housenumbers2, but up to now I am experimenting with different methods to detect and handle special cases. If you don't mind some error messages related to house numbers you can try r3439, it improves your test case: http://www.mkgmap.org.uk/download/mkgmap-housenumbers2-r3439.zip Gerd Stéphane MARTIN wrote
Hi Gerd,
I hope I have not forgotten anything.
https://tuxdomain.darktech.org/osm-garmin/index.php?dir=Guyane/test-bano
Thanks
Steph
Le 03/02/2015 18:18, Gerd Petermann a écrit :
Hi Steph,
can you post a link to the input file(s) ?
If not: what other house numbers are close to the one you are searching?
Gerd
Date: Tue, 3 Feb 2015 17:54:19 -0300 From:
st3ph.martin@
To:
mkgmap-dev@.org
Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi,
Thank you very much Paco Tyson :-) for your script.
I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error.
However, searching an address in the device (etrex 30) or in BaseCamp is the same as before.
e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street!
I use the default style with modifications but not in inc/address.
Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \
An idea what I'm doing wrong ?
Steph
Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco
mkgmap-dev mailing list
mkgmap-dev@.org
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/How-to-add-millions-of-addresses-to-your-garm... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Gerd, Thank you ! I will make a test later with mkgmap-housenumbers2-r3439.zip. I noticed that, with map compiled with guyane-latest-with-bano.osm.pbf, there are two points on the map for «3 Chemin de la Source de Baduel» : one at the beginning of the street and an other on the street, close to the correct address. But only the first is proposed as result after an address search. Steph Le 04/02/2015 04:45, GerdP a écrit :
Hi Steph,
I think you did nothing wrong, it's mkgmap that is not able to handle the data correctly. I am working on this issue in the branch housenumbers2, but up to now I am experimenting with different methods to detect and handle special cases. If you don't mind some error messages related to house numbers you can try r3439, it improves your test case: http://www.mkgmap.org.uk/download/mkgmap-housenumbers2-r3439.zip
Gerd
Stéphane MARTIN wrote
Hi Gerd,
I hope I have not forgotten anything.
https://tuxdomain.darktech.org/osm-garmin/index.php?dir=Guyane/test-bano
Thanks
Steph
Le 03/02/2015 18:18, Gerd Petermann a écrit :
Hi Steph,
can you post a link to the input file(s) ?
If not: what other house numbers are close to the one you are searching?
Gerd
Date: Tue, 3 Feb 2015 17:54:19 -0300 From:
st3ph.martin@
To:
mkgmap-dev@.org
Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi,
Thank you very much Paco Tyson :-) for your script.
I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error.
However, searching an address in the device (etrex 30) or in BaseCamp is the same as before.
e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street!
I use the default style with modifications but not in inc/address.
Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \
An idea what I'm doing wrong ?
Steph
Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco

Hi Steph, yes, numbers that don't match the most often used odd/even scheme are not treated very well in the trunk version. See also this thread: http://gis.19327.n5.nabble.com/Issues-with-housenumbers-tp5829402.html Gerd
Date: Wed, 4 Feb 2015 06:16:14 -0300 From: st3ph.martin@laposte.net To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi Gerd,
Thank you ! I will make a test later with mkgmap-housenumbers2-r3439.zip.
I noticed that, with map compiled with guyane-latest-with-bano.osm.pbf, there are two points on the map for «3 Chemin de la Source de Baduel» : one at the beginning of the street and an other on the street, close to the correct address. But only the first is proposed as result after an address search.
Steph
Le 04/02/2015 04:45, GerdP a écrit :
Hi Steph,
I think you did nothing wrong, it's mkgmap that is not able to handle the data correctly. I am working on this issue in the branch housenumbers2, but up to now I am experimenting with different methods to detect and handle special cases. If you don't mind some error messages related to house numbers you can try r3439, it improves your test case: http://www.mkgmap.org.uk/download/mkgmap-housenumbers2-r3439.zip
Gerd
Stéphane MARTIN wrote
Hi Gerd,
I hope I have not forgotten anything.
https://tuxdomain.darktech.org/osm-garmin/index.php?dir=Guyane/test-bano
Thanks
Steph
Le 03/02/2015 18:18, Gerd Petermann a écrit :
Hi Steph,
can you post a link to the input file(s) ?
If not: what other house numbers are close to the one you are searching?
Gerd
Date: Tue, 3 Feb 2015 17:54:19 -0300 From:
st3ph.martin@
To:
mkgmap-dev@.org
Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi,
Thank you very much Paco Tyson :-) for your script.
I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error.
However, searching an address in the device (etrex 30) or in BaseCamp is the same as before.
e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street!
I use the default style with modifications but not in inc/address.
Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \
An idea what I'm doing wrong ?
Steph
Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Gerd, With mkgmap-housenumbers2-r3439.zip : - map with no BANO data : « 3 Avenue Léopold Héder » in Cayenne (French Guiana) is positioned closer to the building with number 9 than the one with number 3 (In BaseCamp and GPS etrex 30). Not very good ! - map with BANO data : « 3 Avenue Léopold Héder » in Cayenne (French Guiana) is positioned close to the correct building. « 9 Avenue Léopold Héder » close to the correct building too. (In BaseCamp and GPS etrex 30). Very good ! The difference only come from the .pbf (with BANO data included or not) because only mkgmap-housenumbers2-r3439 was used ! Weird, in my opinion ! I think I'll test again tomorrow… Steph Le 04/02/2015 06:28, Gerd Petermann a écrit :
Hi Steph,
yes, numbers that don't match the most often used odd/even scheme are not treated very well in the trunk version. See also this thread: http://gis.19327.n5.nabble.com/Issues-with-housenumbers-tp5829402.html
Gerd
Date: Wed, 4 Feb 2015 06:16:14 -0300 From: st3ph.martin@laposte.net To: mkgmap-dev@lists.mkgmap.org.uk Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi Gerd,
Thank you ! I will make a test later with mkgmap-housenumbers2-r3439.zip.
I noticed that, with map compiled with guyane-latest-with-bano.osm.pbf, there are two points on the map for «3 Chemin de la Source de Baduel» : one at the beginning of the street and an other on the street, close to the correct address. But only the first is proposed as result after an address search.
Steph
Le 04/02/2015 04:45, GerdP a écrit :
Hi Steph,
I think you did nothing wrong, it's mkgmap that is not able to handle the data correctly. I am working on this issue in the branch housenumbers2, but up to now I am experimenting with different methods to detect and handle special cases. If you don't mind some error messages related to house numbers you can try r3439, it improves your test case: http://www.mkgmap.org.uk/download/mkgmap-housenumbers2-r3439.zip
Gerd
Stéphane MARTIN wrote
Hi Gerd,
I hope I have not forgotten anything.
https://tuxdomain.darktech.org/osm-garmin/index.php?dir=Guyane/test-bano
Thanks
Steph
Le 03/02/2015 18:18, Gerd Petermann a écrit :
Hi Steph,
can you post a link to the input file(s) ?
If not: what other house numbers are close to the one you are searching?
Gerd
Date: Tue, 3 Feb 2015 17:54:19 -0300 From:
st3ph.martin@
To:
mkgmap-dev@.org
Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi,
Thank you very much Paco Tyson :-) for your script.
I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error.
However, searching an address in the device (etrex 30) or in BaseCamp is the same as before.
e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street!
I use the default style with modifications but not in inc/address.
Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \
An idea what I'm doing wrong ?
Steph
Le 02/02/2015 04:06, Paco Tyson a écrit : > Hi map makers, > > The french OSM community has recently created an address database for > France, under the ODbL licence. By using this database, we can build > Garmin maps with 6 times more addresses than only OSM data. … > I wrote a shell script that does all of the above. It's published on > https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive. > > > The prerequisites are awk, wget or curl and osmconvert ( > http://wiki.openstreetmap.org/wiki/Osmconvert ). > > You'll have to edit the script to configure it to your installation : > > * BANODIR=directory where the script will download and store the BANO > files > * PBFDIR=directory where the .pbf files are read and written > * BINDIR=directory where osmconvert is stored > > Usage : add-bano-addresses.sh /region / > where /region/ can be /france/ or any of those listed on > http://download.geofabrik.de/europe/france.html > > [1] > :
http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
> > Cheers, > Paco

Hi Steph, thanks for testing. Please note that neither the trunk version nor the branch version will use nodes that have only a addr:housenumber tag and no mkgmap:street or addr:street tag. I don't plan to change that in this branch. For your area that means that most addr:housenumber nodes are ignored as they don't have a street tag. So, in your test case without BANO data the road "Avenue Léopold Héder" ( http://www.openstreetmap.org/way/32773995 ) has only 4 valid numbers: 3, 27,29, and 37 They are in 3 different blocks, one has the 37, next the 27 + 29, last the 3 The address search information is added to the road segments, so we create information like this: segment n (between nodes 370045501 and 410305268) of road "Avenue Léopold Héder" has number 3 on the right. The address search will point you to the middle of this segment. I plan to add a feature to add more nodes to the roads so that we can increase the precision, but that will also increase the size of the img file and it may produce zig-zagging, so that feature needs a new option. Gerd Stéphane MARTIN wrote
Hi Gerd,
With mkgmap-housenumbers2-r3439.zip :
- map with no BANO data : « 3 Avenue Léopold Héder » in Cayenne (French Guiana) is positioned closer to the building with number 9 than the one with number 3 (In BaseCamp and GPS etrex 30). Not very good !
- map with BANO data : « 3 Avenue Léopold Héder » in Cayenne (French Guiana) is positioned close to the correct building. « 9 Avenue Léopold Héder » close to the correct building too. (In BaseCamp and GPS etrex 30). Very good !
The difference only come from the .pbf (with BANO data included or not) because only mkgmap-housenumbers2-r3439 was used !
Weird, in my opinion ! I think I'll test again tomorrow…
Steph
Le 04/02/2015 06:28, Gerd Petermann a écrit :
Hi Steph,
yes, numbers that don't match the most often used odd/even scheme are not treated very well in the trunk version. See also this thread: http://gis.19327.n5.nabble.com/Issues-with-housenumbers-tp5829402.html
Gerd
Date: Wed, 4 Feb 2015 06:16:14 -0300 From:
st3ph.martin@
To:
mkgmap-dev@.org
Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi Gerd,
Thank you ! I will make a test later with mkgmap-housenumbers2-r3439.zip.
I noticed that, with map compiled with guyane-latest-with-bano.osm.pbf, there are two points on the map for «3 Chemin de la Source de Baduel» : one at the beginning of the street and an other on the street, close to the correct address. But only the first is proposed as result after an address search.
Steph
Le 04/02/2015 04:45, GerdP a écrit :
Hi Steph,
I think you did nothing wrong, it's mkgmap that is not able to handle the data correctly. I am working on this issue in the branch housenumbers2, but up to now I am experimenting with different methods to detect and handle special cases. If you don't mind some error messages related to house numbers you can try r3439, it improves your test case: http://www.mkgmap.org.uk/download/mkgmap-housenumbers2-r3439.zip
Gerd
Stéphane MARTIN wrote
Hi Gerd,
I hope I have not forgotten anything.
https://tuxdomain.darktech.org/osm-garmin/index.php?dir=Guyane/test-bano
Thanks
Steph
Le 03/02/2015 18:18, Gerd Petermann a écrit :
Hi Steph,
can you post a link to the input file(s) ?
If not: what other house numbers are close to the one you are searching?
Gerd
> Date: Tue, 3 Feb 2015 17:54:19 -0300 > From:
st3ph.martin@
> To:
mkgmap-dev@.org
> Subject: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France > > Hi, > > Thank you very much Paco Tyson :-) for your script. > > I made a test with French Guiana and it seems working fine… > I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it > with no error. > > However, searching an address in the device (etrex 30) or in BaseCamp is > the same as before. > > e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. > The address is located on a building (verified with bano-guyane.osm in > Josm) but on my map the result is pointing approximately to the > beginning of the street! > > I use the default style with modifications but not in inc/address. > > Options : > --max-jobs --latin1 --area-name=$COUNTRY \ > --bounds=../bounds.zip \ > --route \ > --index --tdbfile --housenumbers \ > --location-autofill=is_in,nearest \ > --name-tag-list=name:fr,int_name,name \ > --adjust-turn-headings \ > --process-destination --process-exits \ > --x-add-indirect-links \ > --verbose \ > --style-file="$WORKDIR/styles/$STYLE/" \ > --list-styles --check-styles \ > --family-name="$COUNTRY OSM $STYLE" \ > --series-name="$COUNTRY-OSM-$STYLE" \ > --mapname=$MAPNAME \ > --overview-mapnumber=$MAPNAME \ > --reduce-point-density=4 --reduce-point-density-polygon=8 \ > --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ > --preserve-element-order \ > --add-pois-to-lines \ > --add-pois-to-areas \ > --report-similar-arcs \ > --link-pois-to-ways \ > --min-size-polygon \ > --drive-on=detect --check-roundabouts --check-roundabout-flares \ > --make-opposite-cycleways \ > --country-name="$COUNTRY" --country-abbr="$ABBR" \ > --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \ > > An idea what I'm doing wrong ? > > Steph > > Le 02/02/2015 04:06, Paco Tyson a écrit : >> Hi map makers, >> >> The french OSM community has recently created an address database for >> France, under the ODbL licence. By using this database, we can build >> Garmin maps with 6 times more addresses than only OSM data. > … >> I wrote a shell script that does all of the above. It's published on >> https://github.com/PacoTyson/bano2garmin/ and attached as a zip > archive. >> >> >> The prerequisites are awk, wget or curl and osmconvert ( >> http://wiki.openstreetmap.org/wiki/Osmconvert ). >> >> You'll have to edit the script to configure it to your installation : >> >> * BANODIR=directory where the script will download and store the BANO >> files >> * PBFDIR=directory where the .pbf files are read and written >> * BINDIR=directory where osmconvert is stored >> >> Usage : add-bano-addresses.sh /region / >> where /region/ can be /france/ or any of those listed on >> http://download.geofabrik.de/europe/france.html >> >> [1] >> :
http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
>> >> Cheers, >> Paco
_______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/How-to-add-millions-of-addresses-to-your-garm... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi Stéphane, Gerd, I see that you have already discussed this issue. However, I checked your case and found something: 1) From osm.org, I search "3 Chemin de la Source de Baduel, cayenne", Nominatim knows the address and points to this building : http://www.openstreetmap.org/way/71465825#map=19/4.92915/-52.30935 . 2) BANO locates "3 Chemin de la Source de Baduel, cayenne" on another building, 200 m apart : http://www.openstreetmap.org/way/71476554 When you're searching on the garmin map, which building are you looking for ? You said also that you're finding 2 different points, maybe they're located at these two buildings ? Note that the building returned by Nominatim is probably the wrong one (it's missing the addr:street tag), it looks like it should belong to the unnamed road. Gerd, is it possible that mkgmap does the same mistake, hence the 2 different points for the same address ? Paco ----- Mail original ----- De: "Stéphane MARTIN" <st3ph.martin@laposte.net> À: "Development list for mkgmap" <mkgmap-dev@lists.mkgmap.org.uk> Envoyé: Mardi 3 Février 2015 21:54:19 Objet: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France Hi, Thank you very much Paco Tyson :-) for your script. I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error. However, searching an address in the device (etrex 30) or in BaseCamp is the same as before. e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street! I use the default style with modifications but not in inc/address. Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \ An idea what I'm doing wrong ? Steph Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco
mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Paco, I did not analyse what problem the trunk version has. I think the object without addr:street is ignored. If I remember correctly there are only two or three different numbers for this road, and either mkgmap creates two overlapping intervals or one that starts with 3. You can enable logging to find out more details, but I think it's better to wait for the housenumber2 branch. Gerd paco.tyson wrote
Hi Stéphane, Gerd,
I see that you have already discussed this issue.
However, I checked your case and found something:
1) From osm.org, I search "3 Chemin de la Source de Baduel, cayenne", Nominatim knows the address and points to this building : http://www.openstreetmap.org/way/71465825#map=19/4.92915/-52.30935 . 2) BANO locates "3 Chemin de la Source de Baduel, cayenne" on another building, 200 m apart : http://www.openstreetmap.org/way/71476554
When you're searching on the garmin map, which building are you looking for ?
You said also that you're finding 2 different points, maybe they're located at these two buildings ? Note that the building returned by Nominatim is probably the wrong one (it's missing the addr:street tag), it looks like it should belong to the unnamed road. Gerd, is it possible that mkgmap does the same mistake, hence the 2 different points for the same address ?
Paco
----- Mail original ----- De: "Stéphane MARTIN" <
st3ph.martin@
> À: "Development list for mkgmap" <
mkgmap-dev@.org
> Envoyé: Mardi 3 Février 2015 21:54:19 Objet: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi,
Thank you very much Paco Tyson :-) for your script.
I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error.
However, searching an address in the device (etrex 30) or in BaseCamp is the same as before.
e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street!
I use the default style with modifications but not in inc/address.
Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \
An idea what I'm doing wrong ?
Steph
Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco
mkgmap-dev mailing list
mkgmap-dev@.org
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list
mkgmap-dev@.org
-- View this message in context: http://gis.19327.n5.nabble.com/How-to-add-millions-of-addresses-to-your-garm... Sent from the Mkgmap Development mailing list archive at Nabble.com.

Hi ! Point 1) A problem with Nominatim, probably : This building in the OSMdb only has a number (3) and no street address ! And the address should be : « 3 Lotissement Bellony » Point 2) I think this is an « error » too ! The address should be : « 3 Lotissement Néron » No address tag at all in OSM. After all mkgmap is not so bad while showing the beginning of the street ! Points 1 & 2 come from missing informations (address tags) and|or bad tagging (« Lotissement xxx » in place=locality instead of name on highway) in the OSMdb. Steph Le 04/02/2015 08:37, paco.tyson@free.fr a écrit :
Hi Stéphane, Gerd,
I see that you have already discussed this issue.
However, I checked your case and found something:
1) From osm.org, I search "3 Chemin de la Source de Baduel, cayenne", Nominatim knows the address and points to this building : http://www.openstreetmap.org/way/71465825#map=19/4.92915/-52.30935 . 2) BANO locates "3 Chemin de la Source de Baduel, cayenne" on another building, 200 m apart : http://www.openstreetmap.org/way/71476554
When you're searching on the garmin map, which building are you looking for ?
You said also that you're finding 2 different points, maybe they're located at these two buildings ? Note that the building returned by Nominatim is probably the wrong one (it's missing the addr:street tag), it looks like it should belong to the unnamed road. Gerd, is it possible that mkgmap does the same mistake, hence the 2 different points for the same address ?
Paco
----- Mail original ----- De: "Stéphane MARTIN" <st3ph.martin@laposte.net> À: "Development list for mkgmap" <mkgmap-dev@lists.mkgmap.org.uk> Envoyé: Mardi 3 Février 2015 21:54:19 Objet: Re: [mkgmap-dev] How to add millions of addresses to your garmin maps of France
Hi,
Thank you very much Paco Tyson :-) for your script.
I made a test with French Guiana and it seems working fine… I obtain a file guyane-latest-with-bano.osm.pbf and mkgmap compiles it with no error.
However, searching an address in the device (etrex 30) or in BaseCamp is the same as before.
e.g. I search «3 Chemin de la Source de Baduel» in Cayenne. The address is located on a building (verified with bano-guyane.osm in Josm) but on my map the result is pointing approximately to the beginning of the street!
I use the default style with modifications but not in inc/address.
Options : --max-jobs --latin1 --area-name=$COUNTRY \ --bounds=../bounds.zip \ --route \ --index --tdbfile --housenumbers \ --location-autofill=is_in,nearest \ --name-tag-list=name:fr,int_name,name \ --adjust-turn-headings \ --process-destination --process-exits \ --x-add-indirect-links \ --verbose \ --style-file="$WORKDIR/styles/$STYLE/" \ --list-styles --check-styles \ --family-name="$COUNTRY OSM $STYLE" \ --series-name="$COUNTRY-OSM-$STYLE" \ --mapname=$MAPNAME \ --overview-mapnumber=$MAPNAME \ --reduce-point-density=4 --reduce-point-density-polygon=8 \ --polygon-size-limits="24:12, 18:10, 16:8, 14:4, 12:2, 11:0" \ --preserve-element-order \ --add-pois-to-lines \ --add-pois-to-areas \ --report-similar-arcs \ --link-pois-to-ways \ --min-size-polygon \ --drive-on=detect --check-roundabouts --check-roundabout-flares \ --make-opposite-cycleways \ --country-name="$COUNTRY" --country-abbr="$ABBR" \ --precomp-sea="$WORKDIR/sea.zip" --generate-sea=multipolygon \
An idea what I'm doing wrong ?
Steph
Le 02/02/2015 04:06, Paco Tyson a écrit :
Hi map makers,
The french OSM community has recently created an address database for France, under the ODbL licence. By using this database, we can build Garmin maps with 6 times more addresses than only OSM data. … I wrote a shell script that does all of the above. It's published on https://github.com/PacoTyson/bano2garmin/ and attached as a zip archive.
The prerequisites are awk, wget or curl and osmconvert ( http://wiki.openstreetmap.org/wiki/Osmconvert ).
You'll have to edit the script to configure it to your installation :
* BANODIR=directory where the script will download and store the BANO files * PBFDIR=directory where the .pbf files are read and written * BINDIR=directory where osmconvert is stored
Usage : add-bano-addresses.sh /region / where /region/ can be /france/ or any of those listed on http://download.geofabrik.de/europe/france.html
[1] : http://layers.openstreetmap.fr/?zoom=6&lat=46.4&lon=2.3508&layers=B0000FFFFF...
Cheers, Paco
participants (5)
-
Gerd Petermann
-
GerdP
-
Paco Tyson
-
paco.tyson@free.fr
-
Stéphane MARTIN