Copied!

Batch class

CloneableInstantiable
Methods
public __construct(Geocoder\ProviderAggregator $geocoder)
 

Set the Geocoder instance to use.

  • param \ProviderAggregator $geocoder The Geocoder instance to use.
public cache(League\Geotools\Batch\BatchGeocoded $geocoded)
 

Cache the BatchGeocoded object.

  • param \BatchGeocoded $geocoded The BatchGeocoded object to cache.
  • return \BatchGeocoded The BatchGeocoded object.
public geocode( $values)
 
    public isCached( $providerName, $query)
     

    Check against the cache instance if any.

    • param string $providerName The name of the provider.
    • param string $query The query string.
    • return bool|\BatchGeocoded The BatchGeocoded object from the query or the cache instance.
    public parallel()
     
    • see http://php.net/manual/en/functions.anonymous.php
    public reverse( $coordinates)
     
      public serie()
       
      • see http://php.net/manual/en/functions.anonymous.php
      public setCache(Psr\Cache\CacheItemPoolInterface $cache)
       
        Properties
        protected $cache = NULL
         

        The cache instance to use.

        • var \CacheItemPoolInterface
        protected $geocoder = NULL
         

        The Geocoder instance to use.

        • var \ProviderAggregator
        protected $tasks = NULL
         

        An array of closures.

        • var array
        Methods
        private getCacheKey(string $providerName, string $query) : string
        © 2025 Bruce Wells
        Search Namespaces \ Classes
        Configuration