osm-tty
interactive offline OpenStreetMap viewer in the terminal
Uses hyperdb-osm and also osm-grab for downloading OSM XML to feed into the database.
setup
$ mkdir /tmp/mapz
$ cd /tmp/mapz
$ npm i -g osm-tty osm-grab
$ osm-grab osm-grab 37.81263 -122.26640 0.2 > oakland.xml
$ osm-tty import db oakland.xml
$ osm-tty db
hjkl
keys to pan, io
to zoom in and out.
Type s
to enter -- SELECT --
mode. The labels will change to one-letter
hints that you can type to get a raw OSM dump of that element.
It's pretty janky, and I only wrote render rules for a small subset of OSM features, but it's not bad for rudimentary offline navigation!
See Also
- mapscii: super fancypants ascii client
License
ISC