You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP →

gridsome-source-gmaps-geocode

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gridsome-source-gmaps-geocode - npm Package Compare versions

Comparing version

to
1.0.2

{
"name": "gridsome-source-gmaps-geocode",
"version": "1.0.1",
"version": "1.0.2",
"description": "Geocode data from your Gridsome sources using the Google Maps Geocoding API.",

@@ -5,0 +5,0 @@ "main": "index.js",

# gridsome-source-gmaps-geocode
## Install
`yarn add gridsome-source-gmaps-geocode `
Or
`npm install --save gridsome-source-gmaps-geocode`
## Usage
Configure the plugin in your `gridsome.config.js`
```js
module.exports = {

@@ -25,2 +36,19 @@ ...

}
```
```
You will then be able to use access the gecode result for the value of the `address` field on each `Office` node via the `geocode` field on `Office` nodes:
```graphql
{
allOffice {
edges {
node {
geocode {
lat
lng
}
}
}
}
}
```