Skip to content
This repository has been archived by the owner on Jun 15, 2022. It is now read-only.

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

Notifications You must be signed in to change notification settings

DEFRA/find-data-location-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published