CitraClient.Schemas.Waypoint (citra_client v0.3.0)

View Source

A geographic location with a time range for access calculations.

Fields

  • :altitudenumber() — Altitude in meters above sea level
  • :endDateTime.t() — UTC maximum boundary for access search
  • :latitudenumber() — Latitude in degrees (-90 to 90)
  • :longitudenumber() — Longitude in degrees (-180 to 180)
  • :startDateTime.t() — UTC minimum boundary for access search

Summary

Functions

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.

Types

t()

@type t() :: %CitraClient.Schemas.Waypoint{
  altitude: number() | nil,
  end: DateTime.t() | nil,
  latitude: number() | nil,
  longitude: number() | nil,
  start: DateTime.t() | nil
}

Functions

from_api(data)

Build this struct from a decoded JSON map received from the API. Unknown fields are ignored.

to_api(struct)

Convert this struct into a map with the API's camelCase keys, ready to be JSON-encoded. Fields whose value is nil are omitted.