ge0

command module
v0.0.0-...-a22099a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2018 License: MIT Imports: 13 Imported by: 0

README

ge0

Build Status

Offline reverse geolocation HTTP API.

Quickstart

The index is built on the cities1000.zip (all cities with a population > 1000) dump from GeoNames.

You can download it [here](all cities with a population > 1000). Once you have unzipped the file, run:

$ ge0 -build-reversegeo-index -path-cities1000txt=/path/to/cities1000.txt /data/dir

Once the index is built, you can just run:

$ ge0 /data/dir

API

GET /api/reversegeo

Offline reverse geocoding, using the "cities" Places index (from Geonames Cities 1000 dataset).

Returns the nearest city, data can be null if no city is found with the given precision.

Parameters: lat, lng and precision (optional, in meters, default is 5km).

$ curl http://localhost:8010/api/reversegeo?lat=1.0&lng=1.0

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pkg
kv

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL