Method: Geocoder.coordinates

Defined in:
lib/geocoder.rb

.coordinates(address, options = {}) ⇒ Object

Look up the coordinates of the given street or IP address.



28
29
30
31
32
# File 'lib/geocoder.rb', line 28

def self.coordinates(address, options = {})
  if (results = search(address, options)).size > 0
    results.first.coordinates
  end
end