OpenStreetMap is a free editable map of the whole world. It is made by people like you. OpenStreetMap allows you to view, edit and use geographical data in a collaborative way from anywhere on Earth. Maps from OpenStreetMap can be used in Navit.
- 1 Quick Start
- 2 Pre-Processed Maps
- 3 Processing OSM Maps Yourself
- Go to Navit Planet Extractor (http://maps.navit-project.org/)
- Zoom in and select the area that you are interested in. Use the 'Map Controls' on the right to switch between 'Navigation' and 'Select' modes.
- Hit Get Map!
- Move the downloaded map to the directory of your choice, and add it to the active mapset in navit.xml with a line similar to the following:
<mapset> <map type="binfile" enabled="yes" data="/path/to/your/map/osm_bbox.bin" /> </mapset>
A variety of sources provide pre-processed OSM maps for Navit.
The Navit Planet Extractor allows you to select and download a custom region on the map. Some pre-defined areas are linked below:
Maintained by Others
As these maps sources are not maintained by the Navit team, they may be using an old or incompatible version of maptool to convert the OSM data to Navit binfiles. If you have an issue with theses maps, please try using a map from our Planet Extractor before reporting a bug.
Cloudmade process the OSM planet and provide Navit-compatible binfiles for each country. Recent reports suggest that cloudmade maps are not compatible with the latest svn builds of Navit. Please use another source for maps. A ticket has been raised at cloudmade. 09:01, 15 January 2011 (UTC)
Navit-compatible OSM binfiles of Austria, Belgium, Germany, Luxembourg and The Netherlands. The German extracts are divided by state. Extracts are updated daily.
Navit-compatible OSM binfiles of Austria, France, Germany, Great Britain, The Netherlands, Poland, Slovakia, Sweden and Switzerland. Note that all countries except Germany have not been updated since 19/10/2010. This link is a daily update of Switzerland until the updates are fixed.
Add OSM map to your mapset
Move the downloaded map to the directory of your choice, and add it to the active mapset in navit.xml with a line similar to the following:
<mapset> <map type="binfile" enabled="yes" data="/path/to/your/map/my_downloaded_map.bin" /> </mapset>
Processing OSM Maps Yourself
You can create your own Navit binfiles from OSM data very easily using maptool, the conversion program which installs alongside Navit. maptool can process both OpenStreetMap XML Data files (*.osm files) and OpenStreetMap Protobuf Data files (*.pbf files) Follow these steps to process your own maps.
Download your own OSM data
OSM data can be downloaded from a variety of sources. OpenStreetMap XML Data files are regular textfiles, easily editable in any text editor. OpenStreetMap Protobuf Data files are binary files, which take up less space (so are quicker to download and process) but are not editable.
- OpenStreetMap XML Data
- OpenStreetMap (visual) allows you to select a rectangular area and download the selection as OpenStreetMap XML Data. Note that OpenStreetMap only allows you to export small areas for performance reasons (i.e. it is unlikely that you'll be able to download an entire country using this export facility).
- Geofabrik provides pre-processed OpenStreetMap XML Data files of almost all countries, and all continents. This method is probably the easiest way of downloading OpenStreetMap XML Data for an entire country or continent. Note that the OSM files are bzipped for download performance - there is no need to unzip after download, as you'll see.
- planet.openstreetmap.org hosts the complete data set (the whole world). You can use Osmosis to cut it into smaller chunks.
- OpenStreetMap (API) The API allows to get the data of a specific bounding box, so that download managers can be used. For example:
- OpenStreetMap Protobuf Data
- Geofabrik provides pre-processed OpenStreetMap Protobuf Data files of almost all countries, and all continents.
The following examples assume that you have installed Navit system-wide. If this is not the case, you will need to provide an absolute path to the maptool executable, which is in the navit/maptool folder.
cat my_OSM_map.osm | maptool my_Navit_map.bin
maptool -i my_OSM_map.osm my_Navit_map.bin
Or for multiple OSM data files use the --dedupe-ways option to avoid duplication of way data if a way occurs multiple times in the OSM maps.
cat my_OSM_map1.osm my_OSM_map2.osm my_OSM_map3.osm | maptool --dedupe-ways my_Navit_map.bin
bzcat my_OSM_map.osm.bz2 | maptool my_Navit_map.bin
maptool --protobuf -i my_OSM_map.osm my_Navit_map.bin
Add OSM map to your mapset
Move the processed map to the directory of your choice, and add it to the active mapset in navit.xml with a line similar to the following:
<mapset> <map type="binfile" enabled="yes" data="/path/to/your/map/my_Navit_map.bin" /> </mapset>
Special Case: Processing the Planet
In case you want the whole planet.osm (11GB in September 2010), and you can't or don't want to fetch it from the previous link, it is even possible to process planet.osm. It will take about 7 hours , requires > 1GB of main memory and about 30 GB disk space for result and temp files - planet.bin is currently (as of September 2010) 3.0GB:
bzcat planet.osm.bz2 | maptool my_Navit_map.bin
The OpenStreetMap wiki Planet.osm page lists mirrors where Planet.osm can be downloaded. There are also downloads of smaller areas such as the UK and parts of Europe. These smaller excerpts are a lot quicker to download and process.