Skip to content

Extension of the Sanity geopoint component that implements reverse geocoding

License

Notifications You must be signed in to change notification settings

raveling/geolocation-input

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published