Skip to main content
The Point field stores a coordinate pair in [longitude, latitude] order and creates the spatial index needed for location queries on supported database adapters.

Config options

Admin options

Point fields support the standard field admin options, plus these options:

Querying with near

near finds records by distance from a coordinate and sorts nearest first. Its value contains [longitude, latitude, maximumDistance, minimumDistance]; distances are in meters.

Querying within

within finds points inside a GeoJSON area. A polygon’s first and final coordinates must match.

Querying intersects

intersects finds points that intersect a GeoJSON geometry.

Custom components

Override the field or its label through admin.components. Custom components can wrap FrogBot’s default coordinate controls.

Field

Server component

Client component

Label

Server component

Client component