Copied!

Batch interface

AbstractInterface
Methods
public abstract geocode( $values)
 

Set an array of closures to geocode.

If a provider throws an exception it will return an empty AddressCollection.

  • param string|array $values A value or an array of values to geocode.
  • return \BatchInterface
  • throws \InvalidArgumentException
public abstract parallel()
 

Returns an array of AddressCollection processed in parallel.

  • return \Collection[]
  • throws \Exception
public abstract reverse( $coordinates)
 

Set an array of closures to reverse geocode.

If a provider throws an exception it will return an empty AddressCollection.

  • param \League\Geotools\Coordinate\CoordinateInterface|array $coordinates A coordinate or an array of coordinates to reverse.
  • return \BatchInterface
  • throws \InvalidArgumentException
public abstract serie()
 

Returns an array of AddressCollection processed in serie.

  • return \Collection[]
  • throws \Exception
public abstract setCache(Psr\Cache\CacheItemPoolInterface $cache)
 

Set the cache object to use.

  • param \CacheItemPoolInterface $cache The cache object to use.
  • return \BatchInterface
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration