Class: LocalGeocoder::Geocoder
- Inherits:
-
Object
- Object
- LocalGeocoder::Geocoder
- Defined in:
- lib/local_geocoder/geocoder.rb
Instance Method Summary collapse
-
#initialize ⇒ Geocoder
constructor
A new instance of Geocoder.
- #reverse_geocode(lng, lat) ⇒ Object
Constructor Details
#initialize ⇒ Geocoder
Returns a new instance of Geocoder.
13 14 15 |
# File 'lib/local_geocoder/geocoder.rb', line 13 def initialize @data_source = DataSource.new(DATA_DIR) end |
Instance Method Details
#reverse_geocode(lng, lat) ⇒ Object
17 18 19 |
# File 'lib/local_geocoder/geocoder.rb', line 17 def reverse_geocode(lng, lat) country = find_result(lng, lat) end |