OpenLocationCode.CodeArea (olc v0.1.0)

View Source

Coordinates of a decoded Open Location Code.

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.

Summary

Types

t()

@type t() :: %OpenLocationCode.CodeArea{
  code_length: integer(),
  latitude_center: float(),
  latitude_hi: float(),
  latitude_lo: float(),
  longitude_center: float(),
  longitude_hi: float(),
  longitude_lo: float()
}

Functions

new(latitude_lo, longitude_lo, latitude_hi, longitude_hi, code_length)