Skip to content

venturespacetech/labs-geosearch-pad-importer

 
 

Repository files navigation

labs-geosearch-pad-importer

A Pelias Importer for Authoritative NYC Addresses. Part of the NYC Geosearch Geocoder Project

Introduction

The NYC Geosearch API is built on Pelias, the open source geocoding engine that powered Mapzen Search.

screen shot 2018-01-18 at 2 48 09 pm

We are treating the normalization of the PAD data as a separate data workflow from Pelias Import. This script picks up the output of labs-geosearch-pad-normalize and imports it into the Pelias elasticsearch database.

Requirements

You will need the following things properly installed on your computer.

  • Git
  • Node.js (with NPM)
  • An elasticsearch database at localhost:9200 with the pelias index already created
  • Pelias API running at localhost:4000
  • Pelias PIP service with NYC whosonfirst data running at localhost:4200. PIP is used to lookup admin boundaries for each record before it enters the database.

Running the Script

Refer to the README in labs-geosearch-dockerfiles for more about running the script

The importer has two main functions, downloading the raw data and running the import:

Download

npm run download downloads the normalized pad data and stores in the data directory specified in pelias.json

Import

npm start reads the downloaded csv and imports each row into the pelias elasticsearch database.

Simple Leaflet GUI

To load a simple leaflet map with an autocomplete search control, run npm run map-test and point your browser to http://localhost:8000. This simple page expects the pelias API to be running at http://localhost:4000

About

Authoritative NYC Address Data for the Pelias Geocoder

Resources

License

Contributing

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 80.9%
  • HTML 15.0%
  • Dockerfile 4.1%