Class: GeohashInt::BoundingBox
- Inherits:
-
Struct
- Object
- Struct
- GeohashInt::BoundingBox
- Defined in:
- lib/geohash_int.rb
Overview
The result of decoding an integer that represents an encoded coordinate.
In Geohash, encoding a coordinate results in a value that, when decoded, returns a bounding box. The ‘latitude` and `longitude` values are taken as the middle of the bounding box.
Instance Attribute Summary collapse
-
#latitude ⇒ Object
Returns the value of attribute latitude.
-
#longitude ⇒ Object
Returns the value of attribute longitude.
-
#max_latitude ⇒ Object
Returns the value of attribute max_latitude.
-
#max_longitude ⇒ Object
Returns the value of attribute max_longitude.
-
#min_latitude ⇒ Object
Returns the value of attribute min_latitude.
-
#min_longitude ⇒ Object
Returns the value of attribute min_longitude.
Instance Attribute Details
#latitude ⇒ Object
Returns the value of attribute latitude
39 40 41 |
# File 'lib/geohash_int.rb', line 39 def latitude @latitude end |
#longitude ⇒ Object
Returns the value of attribute longitude
39 40 41 |
# File 'lib/geohash_int.rb', line 39 def longitude @longitude end |
#max_latitude ⇒ Object
Returns the value of attribute max_latitude
39 40 41 |
# File 'lib/geohash_int.rb', line 39 def max_latitude @max_latitude end |
#max_longitude ⇒ Object
Returns the value of attribute max_longitude
39 40 41 |
# File 'lib/geohash_int.rb', line 39 def max_longitude @max_longitude end |
#min_latitude ⇒ Object
Returns the value of attribute min_latitude
39 40 41 |
# File 'lib/geohash_int.rb', line 39 def min_latitude @min_latitude end |
#min_longitude ⇒ Object
Returns the value of attribute min_longitude
39 40 41 |
# File 'lib/geohash_int.rb', line 39 def min_longitude @min_longitude end |