Class: Geonames::Postalcode

Inherits:
GeonamesResource show all
Defined in:
lib/map_layers/geonames.rb

Overview

GeoNames Postalode REST services

Class Method Summary collapse

Class Method Details

.search(placename, options = {:maxRows => 50}) ⇒ Object



40
41
42
# File 'lib/map_layers/geonames.rb', line 40

def self.search(placename, options = {:maxRows => 50})
  self.find(:all, :from => "/postalCodeSearchJSON", :params => { :placename => placename }.merge(options))
end