point2place
Version:
CLI/Library to lookup a point (long-lat) to get info on a place (country, state, city, population, etc)
28 lines (21 loc) • 887 B
Markdown
<img width="100" src="https://user-images.githubusercontent.com/425966/33193263-697d6cd0-d095-11e7-98c5-22c35e49bcfd.jpg"/> __Point2Place__
Library & CLI for converting longlat coordinates to a place (reverse geocoding without an api)
### CLI
```sh
$ npx point2place --longlat 30,30
```
<img width="400" src="https://pbs.twimg.com/media/DO9TxYGWkAUAMey.jpg:large" />
### Data files used:
- [Geo-Maps countries-maritime 10km](https://www.npmjs.com/package/@geo-maps/countries-maritime-10km)
- [AtlasMake: world-countries](https://github.com/bradoyler/atlas-make/tree/master/world-countries)
- [AltasMake: world-places](https://github.com/bradoyler/atlas-make/tree/master/world-places)
### Run tests:
```
$ npm test
```
#### Ways get your Long-Lat coordinates
- [CoreLocationCLI]() Mac OSX
```
$ brew cask install corelocationcli
$ CoreLocationCLI -format "%longitude,%latitude"
```