lib/gpx_kml/kml/point.rb in gpx_kml-0.1.3 vs lib/gpx_kml/kml/point.rb in gpx_kml-0.1.4
- old
+ new
@@ -14,11 +14,11 @@
return unless valid_father?(father) && re.match?(coord) && node.is_a?(Nokogiri::XML::Element)
return if node.xpath('self::*[self::xmlns:LineString or self::xmlns:Point or self::xmlns:LinearRing]').empty?
@father = father
coord = coord.split(',')
- @latitude = coord[0]
- @longitude = coord[1]
+ @longitude = coord[0]
+ @latitude = coord[1]
@elevation = coord[2] if coord.length == 3
@node = node
# Name is looked up in the ancestor of the node that compose this point
@name = _name
return if node.xpath('self::xmlns:Point').empty?