This is a short HOWTO for adding a road to the OpenStreetMap project using the BGT-31.

First, make sure you have downloaded navilink.pl (see my earlier post) and installed JOSM. On Ubuntu you can install JOSM with the following command:

apt-get install josm

You will also need to register with the OpenStreetMap site and wiki.

1. Map the Road

First record the trackpoints and waypoints. On the BGT-31 I did this by going to track, pressing the main button and selecting mark. To record a waypoint, just hold down the main button until it bleep.

2. Download data and Open with JOSM

First, I’ll change to my OSM project directory and create a folder for the information:
cd ~/Projects/OSM/
mkdir track$(date +%G%m%d)
cd track$(date +%G%m%d)

Now extract the data from the BGT-31:
../navilink.pl -o trackpoints.gpx gettp
../navilink.pl -o waypoints.gpx getwp

Now as I’m a firm believer in DRY, I’ve put the above commands in a script which you can download here.

You may want to upload the trackpoints.gpx to OSM before you start editing. A HOWTO is here.

You can now start JOSM with the command: josm

Open the gpx files you created.

3. Edit data with JOSM

The OSM guide for JOSM is here

After you’ve edited your gpx files, you’ll want to zoom out slighty and download (Ctrl-Shift-D) from the OSM servers to put your edits into context, you may want to merge some nodes after this to get everything merging properly.

4. Upload to OpenStreetMap

Press (Ctrl-Shift-U) and follow the prompts.

After a while you should get an email with notification of success/failure.

Thats it, all done!