From 1592719dd2db79c933758f3bd8a96197d60cc0ff Mon Sep 17 00:00:00 2001 From: Gaston Gonzalez Date: Fri, 4 Oct 2024 07:29:52 -0700 Subject: [PATCH] Navit - Updated map definition to use a wildcard. Anything with *.bin extension in the maps directory will now be automatically loaded. --- overlay/etc/skel/.navit/maps/README.md | 29 +++++++++++++++++++++++++- overlay/etc/skel/.navit/navit.xml | 2 +- 2 files changed, 29 insertions(+), 2 deletions(-) diff --git a/overlay/etc/skel/.navit/maps/README.md b/overlay/etc/skel/.navit/maps/README.md index abdf859..b25a178 100644 --- a/overlay/etc/skel/.navit/maps/README.md +++ b/overlay/etc/skel/.navit/maps/README.md @@ -12,4 +12,31 @@ 5. Copy the map to user's home directory under: `~/.navit/map/`. -6. Rename the map file to `et_default.bin`. +Note: The current Navit configuration specifies the map directory using + a wildcard (i.e. ~/.navit/map/*.bin). As such, any valid Navit map + with a `*.bin` extension will automatically be supported. + + +## Loading Larger Maps (OSM) + +If you have the storage and want larger maps, it is suggested that you +use the OpenStreetMap (OSM) extracts from http://download.geofabrik.de/. + +Here's the approach used for loading a map for the Southwest region in +the US. + +1. Visit [North America](http://download.geofabrik.de/north-america.html). + +2. Download the "US West" [.osm.bz2](http://download.geofabrik.de/north-america/us-west-latest.osm.bz2) + file. + +3. Upload `us-west-latest.osm.bz2` to your `~/.navit/maps` directory. + +4. Convert the map to a format that Navit can understand. This will take several hours. + +``` +$ cd ~/.navit/maps +$ time bzcat us-west-latest.osm.bz2 | maptool -6 us-west-latest-osm.bin +``` + + diff --git a/overlay/etc/skel/.navit/navit.xml b/overlay/etc/skel/.navit/navit.xml index 6fd05f9..8358c40 100644 --- a/overlay/etc/skel/.navit/navit.xml +++ b/overlay/etc/skel/.navit/navit.xml @@ -439,7 +439,7 @@ Waypoint - +