Class: Graticule::Geocoder::Yandex::FeatureMember

Inherits:
Object
  • Object
show all
Includes:
HappyMapper
Defined in:
lib/graticule/geocoder/yandex.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#latitudeObject (readonly)

Returns the value of attribute latitude


74
75
76
# File 'lib/graticule/geocoder/yandex.rb', line 74

def latitude
  @latitude
end

#longitudeObject (readonly)

Returns the value of attribute longitude


74
75
76
# File 'lib/graticule/geocoder/yandex.rb', line 74

def longitude
  @longitude
end

Instance Method Details

#coordinates=(coordinates) ⇒ Object


78
79
80
# File 'lib/graticule/geocoder/yandex.rb', line 78

def coordinates=(coordinates)
  @longitude, @latitude = coordinates.split(' ').map { |v| v.to_f }
end

#precisionObject


82
83
84
# File 'lib/graticule/geocoder/yandex.rb', line 82

def precision
  PRECISION[.kind] || :unknown
end