Sha256: b4019f9394ad23bf2d30ed661093cf1d6abb654b1886c0bb70c71a3974209675
Contents?: true
Size: 390 Bytes
Versions: 7
Compression:
Stored size: 390 Bytes
Contents
module GeoNamesAPI class PostalCode < ListEndpoint METHOD = "postalCodeLookupJSON" FIND_PARAMS = %w(postalcode country) def city place_name end def state admin_name1 end def state_short admin_code1 end def nearby_codes(radius=10, maxRows=5) NearbyPostalCode.all(postalcode, country_code, radius, maxRows) end end end
Version data entries
7 entries across 7 versions & 1 rubygems