mirror of
https://gitlab.com/mobicoop/v3/service/configuration.git
synced 2026-01-08 00:42:40 +00:00
fix proximity distance in metres instead of km
This commit is contained in:
@@ -69,8 +69,8 @@ GEOCODER_MAX_RESULTS_PER_TYPE=5
|
||||
GEOCODER_SANITIZE=true
|
||||
# consolidate results ?
|
||||
GEOCODER_CONSOLIDATE=true
|
||||
# max distance in km between 2 points to consider a duplicate
|
||||
GEOCODER_PROXIMITY=5
|
||||
# max distance in metres between 2 points to consider a duplicate
|
||||
GEOCODER_PROXIMITY=5000
|
||||
# population vs distance prioritizer coef
|
||||
# "boost" population weight for results with a short distance
|
||||
# => multiply the population by COEF / distance (in km)
|
||||
|
||||
@@ -43,7 +43,7 @@ export default registerAs('geography', () => ({
|
||||
: true,
|
||||
geocoderProximity: process.env.GEOCODER_PROXIMITY
|
||||
? parseInt(process.env.GEOCODER_PROXIMITY)
|
||||
: 5,
|
||||
: 5000,
|
||||
geocoderPopulationPrioritizerCoef: process.env
|
||||
.GEOCODER_POPULATION_PRIORITIZER_COEF
|
||||
? parseInt(process.env.GEOCODER_POPULATION_PRIORITIZER_COEF)
|
||||
|
||||
Reference in New Issue
Block a user