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]
Click to show internal directories.
Click to hide internal directories.