Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hackergrrl/osm-tty

Interactive offline OpenStreetMap viewer in the terminal.
https://github.com/hackergrrl/osm-tty

Last synced: 1 day ago
JSON representation

Interactive offline OpenStreetMap viewer in the terminal.

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