Liking cljdoc? Tell your friends :D
Clojure only.

wagoe.geo.shell.module-wiring

Integrant wiring for the geo module.

Config key: :wagoe/geo-service

Example (single provider, no caching): :wagoe/geo-service {:provider :openstreetmap :user-agent "MyApp/1.0 (contact@example.com)"}

Example (Dutch addresses from postcode + house number, no key): :wagoe/geo-service {:provider :pdok}

Example (Google with DB cache): :wagoe/geo-service {:provider :google :api-key #env WAG_GEO_API_KEY :cache-ttl 86400 :cache? true}

Example (fallback chain): :wagoe/geo-service {:provider [:openstreetmap :google] :api-key #env WAG_GEO_API_KEY :cache-ttl 86400 :cache? true}

:cache? true caches lookups in the geo_cache table, through the :wagoe/db-context the module wires itself. An explicit :db-ctx still works.

:timeout-ms (default 3000) bounds each provider's connect and read. The component is a service/GeoService; a call can keep to some of the providers with {:only #{:pdok}}.

Integrant wiring for the geo module.

Config key: :wagoe/geo-service

Example (single provider, no caching):
  :wagoe/geo-service
  {:provider  :openstreetmap
   :user-agent "MyApp/1.0 (contact@example.com)"}

Example (Dutch addresses from postcode + house number, no key):
  :wagoe/geo-service
  {:provider :pdok}

Example (Google with DB cache):
  :wagoe/geo-service
  {:provider   :google
   :api-key    #env WAG_GEO_API_KEY
   :cache-ttl  86400
   :cache?     true}

Example (fallback chain):
  :wagoe/geo-service
  {:provider   [:openstreetmap :google]
   :api-key    #env WAG_GEO_API_KEY
   :cache-ttl  86400
   :cache?     true}

:cache? true caches lookups in the geo_cache table, through the
:wagoe/db-context the module wires itself. An explicit :db-ctx still works.

:timeout-ms (default 3000) bounds each provider's connect and read.
The component is a service/GeoService; a call can keep to some of the
providers with {:only #{:pdok}}.
raw docstring

ig-configclj

(ig-config settings _ctx)

This module's Integrant entries. :cache? true wires :wagoe/db-context for the cache; it is opt-in because the cache needs the geo_cache table.

This module's Integrant entries. `:cache? true` wires `:wagoe/db-context`
for the cache; it is opt-in because the cache needs the geo_cache table.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close