View Source Geocoder.Worker (geocoder v2.2.1)

Worker the actual process performing the geocoding request to a provider. They are use within a pool (using Poolboy. See Supervisor for details)

Some options are can be passed as part of params such as

  • :timeout - The request timeout in milliseconds. Default to 5000 milliseconds
  • :stream_to - When specified, an async request will be made and result sent to the value specified. It also implies the HTTP client supports streaming.
  • :store - Wether to use the cache store or not. Default to true. So always checking the cache first

Summary

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

geocode(params)

geocode_list(params)

init(conf)

Callback implementation for GenServer.init/1.

reverse_geocode(params)

reverse_geocode_list(params)

start_link(conf)