NominatimProvider
class NominatimProvider 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
string
getName()
Returns the provider name.
Collection
Collection
Distance|null
$this
setCacheLifetime(float|int $cacheLifetime)
Set the repository cache lifetime.
from
AbstractProvider
__construct(Client $client, array $config)
No description
hydrateResponse($response)
No description
parseResponse(ResponseInterface $response)
No description
Details
at line 37
string
getName()
Returns the provider name.
at line 48
Collection
geocodeQuery(GeoQueryInterface $query)
Handle the geocoder request.
at line 80
Collection
reverseQuery(GeoQueryInterface $query)
Handle the reverse geocoding request.
at line 110
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 26
__construct(Client $client, array $config)
No description
at line 140
protected
requestUrl($url, GeoQueryInterface $query)
No description
at line 160
protected
hydrateResponse($response)
No description
at line 190
protected
parseResponse(ResponseInterface $response)
No description
at line 221
protected
parseCoordinates(Location $address, $location)
No description
at line 231
protected
parseAddress(Location $address, $location)
No description
at line 258
protected
requestDistanceUrl($url, DistanceInterface $distance)
No description