Navit - Updated map definition to use a wildcard. Anything with *.bin extension in the maps directory will now be automatically loaded.

This commit is contained in:
Gaston Gonzalez
2024-10-04 07:29:52 -07:00
parent 24c91a0d7e
commit 1592719dd2
2 changed files with 29 additions and 2 deletions
+28 -1
View File
@@ -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
```
+1 -1
View File
@@ -439,7 +439,7 @@ Waypoint</text></img>
<!-- Mapset template for OpenStreetMap -->
<mapset enabled="yes">
<map type="binfile" enabled="yes" data="~/.navit/maps/et_default.bin"/>
<map type="binfile" enabled="yes" data="~/.navit/maps/*.bin"/>
</mapset>
<!-- Mapset template for garmin maps -->