https://github.com/hackergrrl/osm-tty
Interactive offline OpenStreetMap viewer in the terminal.
https://github.com/hackergrrl/osm-tty
Last synced: 6 months ago
JSON representation
Interactive offline OpenStreetMap viewer in the terminal.
- Host: GitHub
- URL: https://github.com/hackergrrl/osm-tty
- Owner: hackergrrl
- Created: 2018-04-08T09:34:37.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-09T07:37:49.000Z (about 7 years ago)
- Last Synced: 2024-12-28T21:44:57.971Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 133 KB
- Stars: 11
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# osm-tty
> interactive offline OpenStreetMap viewer in the terminal
Uses [hyperdb-osm](https://github.com/digidem/hyperdb-osm) and also [osm-grab](https://github.com/noffle/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 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](https://github.com/rastapasta/mapscii): super fancypants ascii client
## License
ISC