greysonp / zipcodes

Maps US zipcodes to lat/long.

Home Page:https://zipcodes.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Zipcode -> Lat, Long

Provides an API for getting the latitude and longitude for all US zipcodes. To use it, simply make a request to zipcodes.dev/{zipcode} in order to get JSON back with the latitude and longitude. For example:

curl -L zipcodes.dev/02144

Will return:

{
  "lat": "42.399655",
  "long": "-71.122550"
}

The docs/ directory is the result of running:

deno run --allow-read --allow-write --unstable build.js

It spits out an index.json file for each zipcode in order to allow Github Pages to easily serve it.

About

Maps US zipcodes to lat/long.

https://zipcodes.dev


Languages

Language:JavaScript 100.0%