Skip to content

Instantly share code, notes, and snippets.

@harikrishnan83
Last active December 23, 2015 04:09
Show Gist options
  • Save harikrishnan83/6578323 to your computer and use it in GitHub Desktop.
Save harikrishnan83/6578323 to your computer and use it in GitHub Desktop.
Given latitude and longitude get the city in ruby using Geokit gem
#Put below line in an initializer script
Geokit::Geocoders::GOOGLE="<Your api key>"
Geokit::Geocoders::GoogleGeocoder3.reverse_geocode([12.9898001,77.7234591])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment