class PlusCode::CodeArea

Overview

CodeArea contains coordinates of a decoded Open Location Code(Plus+Codes). The coordinates include the latitude and longitude of the lower left and upper right corners and the center of the bounding box for the area the code represents.

Defined in:

pluscode/code_area.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(south_latitude : Float64, west_longitude : Float64, latitude_height : Float64, longitude_width : Float64, code_length : Int32) #

Creates a CodeArea


[View source]

Instance Method Detail

def code_length : Int32 #

[View source]
def code_length=(code_length : Int32) #

[View source]
def east_longitude #

[View source]
def latitude_center : BigRational #

[View source]
def latitude_height : Float64 #

[View source]
def latitude_height=(latitude_height : Float64) #

[View source]
def longitude_center : BigRational #

[View source]
def longitude_width : Float64 #

[View source]
def longitude_width=(longitude_width : Float64) #

[View source]
def north_latitude #

[View source]
def south_latitude : Float64 #

[View source]
def south_latitude=(south_latitude : Float64) #

[View source]
def west_longitude : Float64 #

[View source]
def west_longitude=(west_longitude : Float64) #

[View source]