mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-12 02:01:39 -05:00
23 lines
500 B
Ruby
23 lines
500 B
Ruby
# frozen_string_literal: true
|
|
|
|
config = {
|
|
# geocoding service request timeout, in seconds (default 3):
|
|
timeout: 10,
|
|
|
|
# set default units to kilometers:
|
|
units: :km,
|
|
|
|
# caching (see Caching section below for details):
|
|
cache: Redis.new,
|
|
cache_options: {
|
|
expiration: 1.day # Defaults to `nil`
|
|
# prefix: "another_key:" # Defaults to `geocoder:`
|
|
},
|
|
always_raise: :all,
|
|
|
|
use_https: false,
|
|
lookup: :photon,
|
|
photon: { host: 'photon.chibi.rodeo' }
|
|
}
|
|
|
|
Geocoder.configure(config)
|