GeoPointField defines "geoPoint" type field for storing latitude and longitude GPS coordinates.

You can set the record field value as [types.GeoPoint], map or serialized json object with lat-lon props. The stored value is always converted to [types.GeoPoint]. Nil, empty map, empty bytes slice, etc. results in zero [types.GeoPoint].

Examples of updating a record's GeoPointField value programmatically:

  record.Set("location", types.GeoPoint{Lat: 123, Lon: 456})
record.Set("location", map[string]any{"lat":123, "lon":456})
record.Set("location", []byte(`{"lat":123, "lon":456}`)

Hierarchy

Implements

Constructors

Methods

Properties

hidden: boolean

Hidden hides the field from the API response.

id: string

Id is the unique stable field identifier.

It is automatically generated from the name when adding to a collection FieldsList.

name: string

Name (required) is the unique name of the field.

presentable: boolean

Presentable hints the Dashboard UI to use the underlying field record value in the relation preview label.

required: boolean

Required will require the field coordinates to be non-zero (aka. not "Null Island").

system: boolean

System prevents the renaming and removal of the field.

Generated using TypeDoc