GoogleGeocoder
in package
implements
ExternalGeocoder
FinalYes
Google Geocoding API via the bounded fetch {@see LocationHelper::lookupAddress()}.
The key comes from the "Google Maps" connection (third-party connections settings); a disabled or empty connection makes geocoding report an error and the caller continues without coordinates.
Table of Contents
Interfaces
- ExternalGeocoder
- External geocoder (currently Google), called only when the region dataset is not enough.
Properties
Methods
- __construct() : mixed
- geocode() : GeocodingLookup
- Resolves a free-text address to a point, not found or an error. An error (network, quota, missing key or address) differs from not found in that it is not cached.
Properties
$googleIntegrations read-only
private
GoogleIntegrations
$googleIntegrations
Methods
__construct()
public
__construct(GoogleIntegrations $googleIntegrations) : mixed
Parameters
- $googleIntegrations : GoogleIntegrations
geocode()
Resolves a free-text address to a point, not found or an error. An error (network, quota, missing key or address) differs from not found in that it is not cached.
public
geocode(string $address) : GeocodingLookup
Parameters
- $address : string