1.0.1 • Published 1 year ago
strapi-plugin-google-geocoder v1.0.1
🗿 How to install
# yarn
yarn add strapi-plugin-google-geocoder
# npm
npm i strapi-plugin-google-geocoder
🔧 Configuration
1. Add plugin in plugins.js
// config/plugins.js
...
...
"google-geocoder": {
config: {
apiKey: env("STRAPI_ADMIN_GOOGLE_MAPS_API_KEY"), // required,
types: ['geocode'], // optional, default is 'geocode' - more info on https://developers.google.com/maps/documentation/javascript/place-autocomplete#constrain-place-types
componentRestrictions: { // optional
country: ["it"], // restrict search result to specified country only
}
},
},
...
...
2. Add custom field
1.0.1
1 year ago