fix proximity distance in metres instead of km
This commit is contained in:
parent
9c4c697c7e
commit
88092be0fb
|
@ -69,8 +69,8 @@ GEOCODER_MAX_RESULTS_PER_TYPE=5
|
||||||
GEOCODER_SANITIZE=true
|
GEOCODER_SANITIZE=true
|
||||||
# consolidate results ?
|
# consolidate results ?
|
||||||
GEOCODER_CONSOLIDATE=true
|
GEOCODER_CONSOLIDATE=true
|
||||||
# max distance in km between 2 points to consider a duplicate
|
# max distance in metres between 2 points to consider a duplicate
|
||||||
GEOCODER_PROXIMITY=5
|
GEOCODER_PROXIMITY=5000
|
||||||
# population vs distance prioritizer coef
|
# population vs distance prioritizer coef
|
||||||
# "boost" population weight for results with a short distance
|
# "boost" population weight for results with a short distance
|
||||||
# => multiply the population by COEF / distance (in km)
|
# => multiply the population by COEF / distance (in km)
|
||||||
|
|
|
@ -43,7 +43,7 @@ export default registerAs('geography', () => ({
|
||||||
: true,
|
: true,
|
||||||
geocoderProximity: process.env.GEOCODER_PROXIMITY
|
geocoderProximity: process.env.GEOCODER_PROXIMITY
|
||||||
? parseInt(process.env.GEOCODER_PROXIMITY)
|
? parseInt(process.env.GEOCODER_PROXIMITY)
|
||||||
: 5,
|
: 5000,
|
||||||
geocoderPopulationPrioritizerCoef: process.env
|
geocoderPopulationPrioritizerCoef: process.env
|
||||||
.GEOCODER_POPULATION_PRIORITIZER_COEF
|
.GEOCODER_POPULATION_PRIORITIZER_COEF
|
||||||
? parseInt(process.env.GEOCODER_POPULATION_PRIORITIZER_COEF)
|
? parseInt(process.env.GEOCODER_POPULATION_PRIORITIZER_COEF)
|
||||||
|
|
Loading…
Reference in New Issue