Module: Geonames

Defined in:
lib/address.rb,
lib/toponym.rb,
lib/geonames.rb,
lib/timezone.rb,
lib/postal_code.rb,
lib/web_service.rb,
lib/bounding_box.rb,
lib/country_info.rb,
lib/intersection.rb,
lib/wikipedia_article.rb,
lib/country_subdivision.rb,
lib/toponym_search_result.rb,
lib/toponym_search_criteria.rb,
lib/postal_code_search_criteria.rb

Overview

Copyright 2007 Adam Wisniewski <[email protected]>

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Classes: Address, BoundingBox, CountryInfo, CountrySubdivision, Intersection, PostalCode, PostalCodeSearchCriteria, Timezone, Toponym, ToponymSearchCriteria, ToponymSearchResult, WebService, WikipediaArticle

Constant Summary collapse

GEONAMES_SERVER =
"http://ws.geonames.org"
USER_AGENT =
"geonames ruby webservice client 0.1"

Class Method Summary collapse

Class Method Details

.configObject



42
43
44
# File 'lib/geonames.rb', line 42

def config
  Thread.current[:geonames_config] ||= Geonames::Config.new
end