Skip to content

wa3l/zipcodr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Zipcodr

A library for looking up zip codes and their associated info based on mlightner's zip codes library with some improvements/bug fixes.

Install

gem install zipcodr


Usage

require 'zipcodr'
Zipcodr::find('94720') # returns a ZipCode object.
Zipcodr::find('94720').zip # returns a zip code string.
Zipcodr::find('94720').city # returns a city string.
Zipcodr::find('94720').state # returns a state short code string.
Zipcodr::find('94720').county # returns a county string.
Zipcodr::find('94720').long # returns a longitude integer.
Zipcodr::find('94720').lat # returns a latitude integer.
Zipcodr::find('94720').valid? # returns a validity boolean.

About

A library for looking up zip codes and their associated info.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages