Class: Placemaker::Coordinates

Inherits:
Object
  • Object
show all
Includes:
XmlHelper
Defined in:
lib/placemaker/coordinates.rb

Instance Method Summary collapse

Methods included from XmlHelper

#initialize

Instance Method Details

#latObject



5
6
7
# File 'lib/placemaker/coordinates.rb', line 5

def lat
  @nodeset.search('.//xmlns:latitude', 'xmlns' => 'http://wherein.yahooapis.com/v1/schema').inner_text.to_f
end

#lngObject



9
10
11
# File 'lib/placemaker/coordinates.rb', line 9

def lng
  @nodeset.search('.//xmlns:longitude', 'xmlns' => 'http://wherein.yahooapis.com/v1/schema').inner_text.to_f
end