Skip to content

Repository files navigation

(French for "where") is a command-line tool that opens an interactive map in your terminal and displays a location or geometry.

où

It is built with Bubble Tea, using the tiletea map component, itself based on maprender.

Install

go install github.com/akhenakh/ou@latest

Usage

Open the map with a marker at a specific location:

ou -lat 48.8566 -lng 2.3522

Display a file's geometry. The format is guessed from its content (GeoJSON, WKT, WKB):

ou -file /path/to/geometry.geojson

Or pipe geometry in on stdin; it's guessed the same way as -file:

cat /path/to/geometry.geojson | ou

Controls

Keys Action
Arrow keys / h j k l Pan
+ / = Zoom in
- Zoom out
d Toggle the data panel (geometry mode only)
q / ctrl+c Quit

When viewing a geometry, press d to split the view in half vertically and show a data panel listing the geometry's metadata — its type, bounding box, computed area (polygons), number of edges and holes, number of polygons (multipolygons), length (lines), and any GeoJSON properties — alongside the map.

License

MIT

About

où (French for "where") is a command-line tool that opens an interactive map in your terminal and displays a location or geometry.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages