Class: Geonames::Postalcode
- Inherits:
-
GeonamesResource
- Object
- ActiveResource::Base
- GeonamesResource
- Geonames::Postalcode
- Defined in:
- lib/map_layers/geonames.rb
Overview
GeoNames Postalode REST services
Class Method Summary collapse
-
.search(placename, options = {:maxRows => 50}) ⇒ Object
Postal code search.
Class Method Details
.search(placename, options = {:maxRows => 50}) ⇒ Object
Postal code search
40 41 42 |
# File 'lib/map_layers/geonames.rb', line 40 def self.search(placename, = {:maxRows => 50}) self.find(:all, :from => "/postalCodeSearchJSON", :params => { :placename => placename }.merge()) end |