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.

Screenshot of the GeoPoint field in the drag-and-drop editor.

The visual builder

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.

Screenshot of the GeoPoint field editor.

JSON model

The following table displays the JSON keys and values of the field’s 'API response.

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 JSON configuration

The following JSON defines a GeoPoint field:

Copy
"example_geopoint": {
  "type": "GeoPoint",
  "config": {
    "label": "Shop location"
  }
}

API response example

Here is an API response of a GeoPoint field with the API ID of example_geopoint:

Copy
// API response example of a GeoPoint field

{
 //...
 "example_geopoint": {
    "latitude": 20.632784250388028,
    "longitude": 0.0019419193267822268
  }
}

Was this article helpful?
Not really
Yes, Thanks

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.