Class: Geokit::LatLng

Inherits:
Object
  • Object
show all
Defined in:
lib/geokit/geocoders/yandex_geocoder.rb

Instance Method Summary collapse

Instance Method Details

#gml_lnglatObject


13
14
15
# File 'lib/geokit/geocoders/yandex_geocoder.rb', line 13

def gml_lnglat
  "#{lng},#{lat}"
end

#gml_lnglat=(lnglat) ⇒ Object


17
18
19
# File 'lib/geokit/geocoders/yandex_geocoder.rb', line 17

def gml_lnglat=(lnglat)
  self.lng, self.lat = lnglat[0], lnglat[1]
end

#gml_posObject


9
10
11
# File 'lib/geokit/geocoders/yandex_geocoder.rb', line 9

def gml_pos
  "#{lng} #{lat}"
end