Skip to content

Javascript library that takes a US zipcode and gives you latitude and longitude

License

Notifications You must be signed in to change notification settings

danesparza/js-zipgeo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-zipgeo

Javascript map for US zipcode -> lat,long lookups. Nothing fancy, just a big javascript map and a utility function. It's just under 2MB -- so it's big for javascript, but not unmanageable.

Keep in mind that this will add about 10 minutes to your webpack build time if you include this in your project.

Data from https://gist.github.com/erichurst/7882666

Example:

import ZipToGeo from '../utility/ziptogeo';

let lat, long;
({lat, long} =  ZipToGeo("30019"));

// lat should be 33.97561
// long should be -83.883747

About

Javascript library that takes a US zipcode and gives you latitude and longitude

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published