Module: Geonames

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

Overview

Copyright 2007 Adam Wisniewski <[email protected]> Contributions by Chris Griego

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

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

Constant Summary collapse

GEONAMES_SERVER =
"http://ws.geonames.net"
USER_AGENT =
"geonames ruby webservice client #{VERSION}"
VERSION =
"0.3.3"

Class Method Summary collapse

Class Method Details

.configObject



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

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