Skip to content

yayuhh/node-jeocoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jeocoder

jeocoder is a geocoder, mapping a 5-digit US zip code or 6-character Canadian postal code to a (city,state/province) tuple. it is self-contained and does not depend on any external services. the geocoder module name was already taken :|

Why not just use Google? It's against their TOS. 👎

Setup

git clone git@github.com:jmonster/node-jeocoder.git
cd node-jeocoder && npm install
node app

Usage

GET /postal_codes/:code

Parameters

  • code a valid 5-digit US zip code or 6-character Canadian postal code

Examples

GET /postal_codes/15213
{
  "state": "PA",
  "city": "PITTSBURGH",
  "country": "US"
}
GET /postal_codes/H2Y1C6
{
  "province": "QC",
  "city": "MONTRÉAL",
  "country": "CA"
}

Support

Live Demo

http://jeocoder.herokuapp.com/zips/15213

Releases

No releases published

Packages

No packages published