mirror of
https://github.com/chubin/wttr.in
synced 2024-11-14 16:17:19 +00:00
Use db-based location cache by default
This commit is contained in:
parent
c398d9204d
commit
0e2e39774e
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ type Geo struct {
|
|||
// IPCacheDB contains the path to the SQLite DB with the IP Geodata cache.
|
||||
IPCacheDB string `yaml:"ipCacheDb,omitempty"`
|
||||
|
||||
IPCacheType types.CacheType `yaml:"cacheType,omitempty"`
|
||||
IPCacheType types.CacheType `yaml:"ipCacheType,omitempty"`
|
||||
|
||||
// LocationCache contains the path to the Location Geodata cache.
|
||||
LocationCache string `yaml:"locationCache,omitempty"`
|
||||
|
@ -108,7 +108,7 @@ func Default() *Config {
|
|||
IPCacheType: types.CacheTypeDB,
|
||||
LocationCache: "/wttr.in/cache/loc",
|
||||
LocationCacheDB: "/wttr.in/cache/geoloc.db",
|
||||
LocationCacheType: types.CacheTypeFiles,
|
||||
LocationCacheType: types.CacheTypeDB,
|
||||
Nominatim: []Nominatim{
|
||||
{
|
||||
Name: "locationiq",
|
||||
|
|
Loading…
Reference in a new issue