GeoPoint Field Reference
This article explains what the GeoPoint field is and how to configure it in the Custom Type builder.
The GeoPoint field allows you to add geolocation coordinates or a Google Maps URL.
When configuring a GeoPoint field you'll see the options to set the Field name, and API ID.
Slice Machine vs. Legacy Editor
Editing fields is almost identical in Slice Machine and the Legacy editor. But it is important to know that the mock config option (to add data to preview content fields in the Slice Simulator) is only available in Slice Machine.
Edit the JSON model with caution
Only edit the JSON model to make changes to the Rich Text field labels. Making abrupt changes can cause conflicts when synchronizing changes with your documents.
type
string (required)
Value must be GeoPoint
config
object
Object for the configuration options
config.label
string
The label that shows up for the field in the entry editor
"example_geopoint": {
"type": "GeoPoint",
"config": {
"label": "Shop location"
}
}
Here is an API response of a GeoPoint field with the API ID of example_geopoint:
// API response example of a GeoPoint field
{
//...
"example_geopoint": {
"latitude": 20.632784250388028,
"longitude": 0.0019419193267822268
}
}
Was this article helpful?
Can't find what you're looking for? Spot an error in the documentation? Get in touch with us on our Community Forum or using the feedback form above.