dawarich/config/initializers/geocoder.rb

17 lines
378 B
Ruby
Raw Normal View History

2024-07-12 15:59:03 -04:00
# frozen_string_literal: true
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: {
2024-07-12 15:59:03 -04:00
expiration: 1.day # Defaults to `nil`
# prefix: "another_key:" # Defaults to `geocoder:`
}
)