View Source Tw.V1_1.Coordinates (Tw v0.1.0)

Coordinates data structure and related functions. https://developer.twitter.com/en/docs/twitter-api/v1/data-dictionary/object-model/geo

Link to this section Summary

Types

t()
fielddescription
coordinatesThe longitude and latitude of the Tweet’s location, as a collection in the form [longitude, latitude]. Example: [-97.51087576,35.46500176].
typeThe type of data encoded in the coordinates property. This will be “Point” for Tweet coordinates fields. Example: "Point".

Functions

Decode JSON-decoded map into t/0

Link to this section Types

Specs

t() :: %Tw.V1_1.Coordinates{coordinates: [float()], type: binary()}
fielddescription
coordinatesThe longitude and latitude of the Tweet’s location, as a collection in the form [longitude, latitude]. Example: [-97.51087576,35.46500176].
typeThe type of data encoded in the coordinates property. This will be “Point” for Tweet coordinates fields. Example: "Point".

Link to this section Functions

Specs

decode!(map()) :: t()

Decode JSON-decoded map into t/0