/z2ll

quick command line tool for looking up latitude/longitude for a given zip code

Primary LanguageGo

z2ll - a quick command line tool for looking up lat,long for a given zip code.

Installation

z2ll uses Go module support, so Go 1.11 is required to build.

Installing a stand-alone binary relies on packr.

packr is used to generate the a_zip2latlong-packr.go source from the
assets/free-zipcode-database.csv file, and thus bundle it into the binary.

So install packr if you don't already have it:

go get -u https://github.com/gobuffalo/packr

Then you can build and install the z2ll binary:

git clone https://github.com/armhold/z2ll
cd z2ll
packr && go install ./cmd/z2ll

Usage

$ z2ll 44120
41.470000,-81.670000

Credits

Zipcodes database courtesy of federalgovernmentzipcodes.us