@hatchd/sanity-plugin-get-coordinates
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Get Coordinates! A Sanity Studio plugin

Enter an address and get coordinates for it. The coordinate can be used with your map services on the front end.

This is a Sanity Studio v3 plugin.

Installation

npm install @hatchd/sanity-plugin-get-coordinates

Usage

Add it as a plugin in sanity.config.ts (or .js):

import {defineConfig} from 'sanity'
import {getCoordinates} from '@hatchd/sanity-plugin-get-coordinates'

export default defineConfig({
  //...
  plugins: [getCoordinates()],
})

In your document schemas, add it as a 'coordinates' type. For an example:

{
  title: "Location Coordinates",
  name: "location",
  type: "coordinates"
}

License

MIT © Grant Deelstra | Hatchd

Package Sidebar

Install

npm i @hatchd/sanity-plugin-get-coordinates

Weekly Downloads

147

Version

1.2.0

License

MIT

Unpacked Size

44.7 kB

Total Files

12

Last publish

Collaborators

  • hatchd-devteam
  • eoinie
  • leighkendell
  • edhatchd