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.
74 75 76 |
# File 'lib/graticule/geocoder/yandex.rb', line 74 def latitude @latitude end |
#longitude ⇒ Object (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 |
#precision ⇒ Object
82 83 84 |
# File 'lib/graticule/geocoder/yandex.rb', line 82 def precision PRECISION[.kind] || :unknown end |