Download the PHP package bolden/google-maps-api without Composer
On this page you can find all versions of the php package bolden/google-maps-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bolden/google-maps-api
More information about bolden/google-maps-api
Files in bolden/google-maps-api
Package google-maps-api
Short Description Bolden's free plugin for Google Maps server-side web services on Craft CMS 3
License MIT
Informations about the package google-maps-api
⚠️ This plugin is no longer maintained — Google Maps API plugin for Craft CMS 3.x
A simple wrapper for Google Maps server-side web services to access through AJAX calls.
Requirements
This plugin requires Craft CMS 3 or later and a valid/active Google Maps API key.
Overview
Use this wrapper to access Google Maps web services that are only accessible with a server-side connection. At the moment the following endpoints are supported with this plugin:
- Geocode
- Timezone
- Places
- Autocomplete
- Input
- Details
- Elevation
- Distance
Configuration
Enter a valid/active Google Maps API key in the plugin settings, easy does it.
Usage
Use HTTP GET request to access the endpoints
api/googleMaps/geocode/<latitude>,<longitude>
Return the places given the latitude and longitude
See more info at Google Geocoding APIapi/googleMaps/timezone/<latitude>,<longitude>,<timestamp>
Return the timezone of a place given the latitude, longitude and timestamp
See more info at Google Timezone APIapi/googleMaps/place/autocomplete/<input>
Return place autocomplete suggestions given the text input (it can be an address, a place name etc)
See more info at Places Autocomplete APIapi/googleMaps/place/text/<input>/<fields>
Return places given the text input (it can be an address, a place name etc). You can also define a comma sereparted list of the fields to return See more info at Places Search APIapi/googleMaps/place/details/<placeId>
Return place details given the place id . See more info at Places Details APIapi/googleMaps/elevation/<lat>,<lon>
Return elevation information given the latitude and longitude of a location
See more info at Elevation APIapi/googleMaps/distance/<originLat>,<originLon>,<destinationLat>,<destinationLon>,<mode>
Return elevation information given the latitude and longitude of origin and destination. You can optionaly specify the mode (choose between driving, bicycling, walking, transit)
See more info at Distance Matrix API
Example
Request
GET https://www.example.com/api/googleMaps/geocode/52.3679843,4.903561399999944
Response
Credits
Made with ❤️ by Bolden and free to use.