Download the PHP package nomala/statamic-google-places without Composer
On this page you can find all versions of the php package nomala/statamic-google-places. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nomala/statamic-google-places
More information about nomala/statamic-google-places
Files in nomala/statamic-google-places
Package statamic-google-places
Short Description A Google Places addon for Statamic V3 for displaying Google Places on your website.
License MIT
Informations about the package statamic-google-places
Statamic Google Places
A Google Places addon for Statamic V3 for displaying Google Places on your website.
Installation
You can install the package via composer:
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.
Places Tags
Insert one of the tags below into your antlers template.
Find place
This tag takes a text input and return a place. See Google's Official documentation for more information.
Parameter(s)
input
— The text input specifying which place to search for (name or address).input_type
— The type of input -textquery
orphonenumber
(textquery
is set as default).parameters
— Optional parameters - please see Google's Official documentation for more information on all the available parameters. All parameters are separated using the ampersand&
character.
Example
Nearby Search
Search for places within a specified area. See Google's Official documentation for more information.
Parameter(s)
lat
— The latitude of the place.longitude
— The longitude of the place.radius
— Defines the distance (in meters) within which to return place results.parameters
— Optional parameters - please see Google's Official documentation for more information on all the available parameters. All parameters are separated using the ampersand&
character.
Example
Place Details
Request for details about a place. See Google's Official documentation for more information.
Parameter(s)
place_id
— A textual identifier that uniquely identifies a place.parameters
— Optional parameters - please see Google's Official documentation for more information on all the available parameters. All parameters are separated using the ampersand&
character.
Examples
To get the place ID and details:
Photos from search
Request that return all the photos from a find search.
Parameter(s)
input
— The text input specifying which place to search for (name or address).
Example
Tips
If you want to see all the available data inside a loop, use the dump
tag.
License
The MIT License (MIT). Please see License File for more information.