mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 09:41:40 -05:00
16 lines
382 B
Ruby
16 lines
382 B
Ruby
|
|
# config/initializers/geocoder.rb
|
||
|
|
Geocoder.configure(
|
||
|
|
# geocoding service request timeout, in seconds (default 3):
|
||
|
|
# timeout: 5,
|
||
|
|
|
||
|
|
# 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:`
|
||
|
|
}
|
||
|
|
)
|