Configure the GeoPoint Field

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.

Screenshot of the GeoPoint field editor.

JSON model

The following table displays the JSON configuration options available in the JSON editor.

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? Get in touch with us on our Community Forum.