Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 519 Bytes

Shared.md

File metadata and controls

42 lines (33 loc) · 519 Bytes

Shared

Types

point

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

type point = {
  .
  "y": float,
  "x": float,
};
point: (~x: float, ~y: float) => point

copos

type copos = {
  .
  "coordinate": LatLng.t,
  "position": point,
};

poi

type poi = {
  .
  "coordinate": LatLng.t,
  "position": point,
  "placeId": string,
  "name": string,
};