Skip to main content

The location object represents a geographical coordinate that specifies the position of a point on the Earth's surface.

Properties

NameTypeFormatDescription
latnumberThe north-south position.
lonnumberThe east-west position.

Example

Get an entry by its ID and output properties from a location field in the entry called 'myLocation'

TypeScript
const entry = await client.entries.get("<entry-id>");

console.log(entry.myLocation.lat);
console.log(entry.myLocation.lon);

Still need help?

If you still need help after reading this article, don't hesitate to reach out to the Contensis community on Slack or raise a support ticket to get help from our team.
New support request