Aerospike.Geo.Polygon (Aerospike Driver v0.3.1)

Copy Markdown View Source

GeoJSON Polygon geometry using rings of [longitude, latitude] coordinates.

Summary

Types

Longitude/latitude coordinate pair.

One polygon ring represented as longitude/latitude pairs.

t()

GeoJSON polygon with one or more rings.

Types

coordinate_pair()

@type coordinate_pair() :: {float(), float()}

Longitude/latitude coordinate pair.

ring()

@type ring() :: [coordinate_pair()]

One polygon ring represented as longitude/latitude pairs.

t()

@type t() :: %Aerospike.Geo.Polygon{coordinates: [ring()]}

GeoJSON polygon with one or more rings.

Coordinates are normalized to floats by Aerospike.Geo.polygon/1.