Skip to content

Instantly share code, notes, and snippets.

@marcbln
Created July 22, 2009 23:15
Show Gist options
  • Save marcbln/152388 to your computer and use it in GitHub Desktop.
Save marcbln/152388 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'geonames'
places_nearby = Geonames::WebService.find_nearby_place_name 43.900120387, -78.882869834
p places_nearby
ruby api:
http://www.tbcn.ca/ruby_geonames
geonames-api:
http://www.geonames.org/export/ws-overview.html
zip-code-lookup example (germany)
http://ws.geonames.org/postalCodeSearch?postalcode=10243&maxRows=10&style=full&country=de
beispiel-url fuer google-maps bahnhof-problem-workaround:
http://ws.geonames.org/findNearbyPlaceName?lat=47.3&lng=9.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment