CoolCMS API

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

$googleIntegrations  : GoogleIntegrations

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

Methods

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
Return values
GeocodingLookup
On this page

Search results