PHP Интерфейс League\Geotools\Batch\BatchInterface

Автор: Antoine Corcy ([email protected])
Показать файл Открыть проект

Открытые методы

Метод Описание
geocode ( string | array $values ) : League\Geotools\Batch\BatchInterface Set an array of closures to geocode.
parallel ( ) : AddressCollection[] Returns an array of AddressCollection processed in parallel.
reverse ( League\Geotools\Coordinate\CoordinateInterface | array $coordinates ) : League\Geotools\Batch\BatchInterface Set an array of closures to reverse geocode.
serie ( ) : AddressCollection[] Returns an array of AddressCollection processed in serie.
setCache ( League\Geotools\Cache\CacheInterface $cache ) : League\Geotools\Batch\BatchInterface Set the cache object to use.

Описание методов

geocode() публичный Метод

If a provider throws an exception it will return an empty AddressCollection.
public geocode ( string | array $values ) : League\Geotools\Batch\BatchInterface
$values string | array A value or an array of values to geocode.
Результат League\Geotools\Batch\BatchInterface

parallel() публичный Метод

Returns an array of AddressCollection processed in parallel.
public parallel ( ) : AddressCollection[]
Результат AddressCollection[]

reverse() публичный Метод

If a provider throws an exception it will return an empty AddressCollection.
public reverse ( League\Geotools\Coordinate\CoordinateInterface | array $coordinates ) : League\Geotools\Batch\BatchInterface
$coordinates League\Geotools\Coordinate\CoordinateInterface | array A coordinate or an array of coordinates to reverse.
Результат League\Geotools\Batch\BatchInterface

serie() публичный Метод

Returns an array of AddressCollection processed in serie.
public serie ( ) : AddressCollection[]
Результат AddressCollection[]

setCache() публичный Метод

Set the cache object to use.
public setCache ( League\Geotools\Cache\CacheInterface $cache ) : League\Geotools\Batch\BatchInterface
$cache League\Geotools\Cache\CacheInterface The cache object to use.
Результат League\Geotools\Batch\BatchInterface