/find-data-location-lookup

A prototype service for translating town, city, and villages names to minimum bounding rectangles (in WGS84)

Primary LanguageGo

Location Lookup

This repository contains a simple location lookup API that given a partial location name will return a bounding box for that location. This should work for towns, villages, cities and 'settlements' that are available in a trimmed down version of the OpenNames CSV file.

Using the repo

Setup

  1. Copy this repo into your gopath .. $GOPATH/src/github.com/rossjones/location-lookup
  2. Install dep
  3. Run dep ensure

The makefile

Running the app

export LOCATION_MERGE_FILE=/path/to/csv
make run

Building the app

export LOCATION_MERGE_FILE=/path/to/csv
make build

A sample merge_file (for LOCATION_MERGE_FILE) is available in this repository.