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

https://github.com/marianogappa/map

Open an in-browser World Map with specified markers
https://github.com/marianogappa/map

cli go leafletjs map worldmap

Last synced: 22 days ago
JSON representation

Open an in-browser World Map with specified markers

Awesome Lists containing this project

README

          

# map

CLI tool that takes `(lat,long)` markers from STDIN and opens a World Map in the browser with those markers.

Screenshot 2024-04-14 at 13 30 14

## Installation

```bash
go install github.com/marianogappa/map@latest
```

## Usage

```bash
echo "52.5170365,13.3888599,Berlin" | map -separator comma
```

If you don't have the coordinates, use [gps](https://github.com/marianogappa/gps)!

```bash
$ echo "Berlin" | gps | map
```

## Notes

- By default it reads tab-separated "{lat} {long} {label}" lines from STDIN
- Uses [Leaflet.js](https://leafletjs.com/) for drawing the map

## License

This project is licensed under the MIT License - see the [LICENSE](https://github.com/marianogappa/wm/blob/main/LICENSE) file for details.