Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 563 Bytes

LatLng.md

File metadata and controls

35 lines (25 loc) · 563 Bytes

LatLng

Types

t

This type needs to be created, as well as consumed. When the type is returned, individual keys may be accessed using the ## accessor.

type t = {
  .
  "latitude": float,
  "longitude": float,
};
create: (~latitude: float, ~longitude: float) => t

weighted

weighted: (~latitude: float, ~longitude: float, ~weight: float=?, unit) => t

animated

This can be created using the createAnimated method, given an object of type t.

createAnimated: t => animated