Location
Log in to add to favouritesThe location object represents a geographical coordinate that specifies the position of a point on the Earth's surface.
Properties
Name | Type | Format | Description |
---|---|---|---|
lat | number | The north-south position. | |
lon | number | The east-west position. |
Example
Get an entry by its ID and output properties from a location field in the entry called 'myLocation'
const entry = await client.entries.get("<entry-id>");
console.log(entry.myLocation.lat);
console.log(entry.myLocation.lon);