An object signifying a global x/y coordinate. Longitude and latitude is stored as decimal degrees.

Example field

  title: 'A location',
  type: 'geopoint'

Example output data

  "_type": "geopoint",
  "lat": 58.63169011423141,
  "lng": 9.089101352587932

While the geopoint type exists by default, you will probably want to install a plugin that provides a more visual way to input the coordinates. For instance, you could use the @sanity/google-maps-input plugin:

cd my-project
sanity install @sanity/google-maps-input

Then configure ./config/@sanity/google-maps-input.json with your Google maps API keys.

Previous: ReferenceNext: Slug