Skip to content

A simple Node.js microservice for zip code lookups. Integrates with ZipCodeApi.com.

Notifications You must be signed in to change notification settings

rscotton/zip-code-service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zip Code Service

A simple Node.js microservice for zip code lookups. Integrates with ZipCodeApi.com.

Installation

  1. Register for a free API key at https://www.zipcodeapi.com/Register
  2. Create a directory named private in the root
  3. Create a file named zip-code-api-creds.json, plugging in your API key using the file format below
  4. Change to the root directory of this project in your terminal and run npm install
  5. Start the server using npm start and start plugging in API routes!

Credentials file format

{
  "public_key": "YOUR-KEY-HERE"
}

Current API Routes

Get details

Includes cite and state approximation.

/details/<zipcode>

Get distance between zip codes

/distance/<zipcode1>/<zipcode2>

About

A simple Node.js microservice for zip code lookups. Integrates with ZipCodeApi.com.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published