Method: Geocoder.coordinates
- Defined in:
- lib/geocoder.rb
.coordinates(address, options = {}) ⇒ Object
Look up the coordinates of the given street or IP address.
26 27 28 29 30 |
# File 'lib/geocoder.rb', line 26 def self.coordinates(address, = {}) if (results = search(address, )).size > 0 results.first.coordinates end end |