Class: GeohashInt::BoundingBox

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#latitudeObject

Returns the value of attribute latitude

Returns:

  • (Object)

    the current value of latitude



39
40
41
# File 'lib/geohash_int.rb', line 39

def latitude
  @latitude
end

#longitudeObject

Returns the value of attribute longitude

Returns:

  • (Object)

    the current value of longitude



39
40
41
# File 'lib/geohash_int.rb', line 39

def longitude
  @longitude
end

#max_latitudeObject

Returns the value of attribute max_latitude

Returns:

  • (Object)

    the current value of max_latitude



39
40
41
# File 'lib/geohash_int.rb', line 39

def max_latitude
  @max_latitude
end

#max_longitudeObject

Returns the value of attribute max_longitude

Returns:

  • (Object)

    the current value of max_longitude



39
40
41
# File 'lib/geohash_int.rb', line 39

def max_longitude
  @max_longitude
end

#min_latitudeObject

Returns the value of attribute min_latitude

Returns:

  • (Object)

    the current value of min_latitude



39
40
41
# File 'lib/geohash_int.rb', line 39

def min_latitude
  @min_latitude
end

#min_longitudeObject

Returns the value of attribute min_longitude

Returns:

  • (Object)

    the current value of min_longitude



39
40
41
# File 'lib/geohash_int.rb', line 39

def min_longitude
  @min_longitude
end