Download the PHP package plugrbase/statamic-google-places-field without Composer
On this page you can find all versions of the php package plugrbase/statamic-google-places-field. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download plugrbase/statamic-google-places-field
More information about plugrbase/statamic-google-places-field
Files in plugrbase/statamic-google-places-field
Package statamic-google-places-field
Short Description A Google Places addon for Statamic V4 that fetch and store data from Google Places API.
License proprietary
Informations about the package statamic-google-places-field
Statamic Google Places Field
A Google Places addon for Statamic V4 that fetch and store data from Google Places API.
Installation
You can search for this addon in the Tools > Addons
section of the Statamic control panel and click install, or run the following command from your project root:
Optionally publish the config file of this package:
Add an environment variable. Provide the Google API key that you want to use for this project.
Fieldtype
This addon will add a new fieldtype named "Google Place". Once added, you'll have access to the following field:
This new field allow you to fetch data from the Google Places API by providing a "place ID" or a "search string". If the API does returns any data, you'll receive a confirmation message with some basic informations.
Once the data are fetched and saved, you'll be able to access the data related to the place with the tag mentionned below.
Available Tags
Insert the tags below into your antlers template.
Place data
Parameter(s)
data
— The data fetched from the Google Places API.
Example
See Google's Official documentation for more information on all available data.
NB: The input type 'textquery' is used by default and can't be modified.
Place name
This tag return the name provided in the "Google place" field in the admin.
Place raw data
This tag return the raw data fetched from the Google Places API.
Official Support
If you're in need of some help, send an email to!
License
This addon is a commercial addon - you must purchase a license via the Statamic Marketplace to use it in a production environment.