GoogleProvider
class GoogleProvider extends AbstractProvider
Properties
protected Client | $httpClient | The cache lifetime. |
from AbstractProvider |
protected float|int | $cacheLifetime | The cache lifetime. |
from AbstractProvider |
protected | $logs | from AbstractProvider | |
protected array | $config |
Methods
Returns the provider name.
Set the repository cache lifetime.
No description
No description
Decode the response content and validate it to make sure it does not have any errors.
No description
Details
at line 28
string
getName()
Returns the provider name.
at line 33
Collection
geocodeQuery(GeoQueryInterface $query)
Handle the geocoder request.
at line 59
Collection
reverseQuery(GeoQueryInterface $query)
Handle the reverse geocoding request.
at line 89
Distance|null
distance(DistanceInterface $distance)
No description
in
AbstractProvider at line 56
protected Client
getHttpClient()
No description
in
AbstractProvider at line 70
$this
forgetCache()
Forget the repository cache.
in
AbstractProvider at line 80
getCacheKey()
No description
in
AbstractProvider at line 92
$this
setCacheLifetime(float|int $cacheLifetime)
Set the repository cache lifetime.
in
AbstractProvider at line 104
float|int
getCacheLifetime()
Get the repository cache lifetime.
in
AbstractProvider at line 111
protected
cacheCallback($cacheKey, Closure $closure)
No description
in
AbstractProvider at line 121
protected Repository
getCacheDriver()
No description
in
AbstractProvider at line 130
log($message)
No description
in
AbstractProvider at line 141
AbstractProvider
resetLogs()
No description
in
AbstractProvider at line 148
getLogs()
No description
at line 22
__construct(Client $client, array $config)
No description
at line 116
protected
hydrateResponse($response, int $limit)
No description
at line 144
protected
requestGeocodingUrl($url, GeoQueryInterface $query)
No description
at line 166
protected
requestDistanceUrl($url, DistanceInterface $query)
No description
at line 194
protected mixed
parseResponse(ResponseInterface $response)
Decode the response content and validate it to make sure it does not have any errors.
at line 224
protected string
prependGeocodeQuery(GeoQueryInterface $query, $url)
No description
at line 242
protected string
prependReverseQuery(GeoQueryInterface $query, $url)
No description
at line 253
protected string
prependDistanceQuery(DistanceInterface $distance, string $url)
No description
at line 279
protected
parseCoordinates(Location $address, $geometry)
No description
at line 311
protected
parseAddressComponents(Location $address, $components)
No description
at line 320
protected
parseAddressComponent(Location $address, $type, $component)
No description
at line 379
protected
serializeComponents($components)
No description