Skip to content

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

Geolocation input

Custom extension of the Sanity geopoint component that implements reverse geocoding

Component preview

someDocument.js

fields: [
  {
    title: 'Location',
    name: 'location',
    type: 'geolocation'
  }
]

Output

location: {
  _type: "geolocation",

  geoaddress: {
    address: "Kirsten Flagstads Plass 1",
    city: "Oslo",
    country: "Norway"
  },

  geopoint: {
    _type: "geopoint",
    lat: 59.90748850000002,
    lng: 10.753127500000005
  }
}

About

Extension of the Sanity geopoint component that implements reverse geocoding

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages