zipsearch

command
v0.0.0-...-e420dba Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2014 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

zipsearch tool leverages the ziptools package and provides a simple cli interface for searching zip codes and cities.

Usage of zipsearch:

-city=false: given string is a city name or its part
-db="zipcodes.db": specify zip codes database.
-exact=false: look for exact match

List all zipcodes in city:

$ zipsearch -exact -city Richardson
Zip codes in Richardson: [75080 75081 75082 75083 75085]

Get the city that has the specified zip:

$ zipsearch -exact 10106
Zip 10106 belongs to New York.

List all cities that match the given substring:

$ zipsearch -city english
Cities that match english: ziptools.CityList{"Englishtown", "English", "North English", "South English"}

List all zips that match the given substring:

$ zipsearch 1337
Zip codes that match 1337: [01337 61337 91337]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL