Class: Graticule::Geocoder::Yandex::FeatureMember
- Inherits:
-
Object
- Object
- Graticule::Geocoder::Yandex::FeatureMember
- Includes:
- HappyMapper
- Defined in:
- lib/graticule/geocoder/yandex.rb
Instance Attribute Summary collapse
-
#latitude ⇒ Object
readonly
Returns the value of attribute latitude.
-
#longitude ⇒ Object
readonly
Returns the value of attribute longitude.
Instance Method Summary collapse
Instance Attribute Details
#latitude ⇒ Object (readonly)
Returns the value of attribute latitude.
56 57 58 |
# File 'lib/graticule/geocoder/yandex.rb', line 56 def latitude @latitude end |
#longitude ⇒ Object (readonly)
Returns the value of attribute longitude.
56 57 58 |
# File 'lib/graticule/geocoder/yandex.rb', line 56 def longitude @longitude end |
Instance Method Details
#coordinates=(coordinates) ⇒ Object
68 69 70 |
# File 'lib/graticule/geocoder/yandex.rb', line 68 def coordinates=(coordinates) @longitude, @latitude = coordinates.split(' ').map { |v| v.to_f } end |
#precision ⇒ Object
72 73 74 |
# File 'lib/graticule/geocoder/yandex.rb', line 72 def precision PRECISION[.kind] || :unknown end |