ContactMapService
This service class exposes a method used for getting map coordinates from the Google Maps API.
All public functions are available in the Twig template renderer.
Namespace
IO\Services
Type | Name | Value | Description |
---|---|---|---|
|
'ceresMapCoordinates' |
Type | Name | Description |
---|---|---|
|
Repository for caching in Redis |
|
|
Methods
public __construct($cachingRepository)
ContactMapService constructor.
Type |
Name |
Description |
|
Repository for caching in Redis |
public getMapCoordinates($apiKey, $street, $zip = null):Services
Get coordinates for a street at a specific zipcode from Google Maps API.
Type |
Name |
Description |
|
Google Maps API Key |
|
|
Name of the street, optionally with house number |
|
|
Optional: Zip code for address (Default: null) |
Thank you for your feedback!