[gnome-maps/wip/mlundblad/location-bias-scale: 2/5] photonUtils: Add constant for location bias scale




commit 74b904d6bb000afcc00dd214434a0fe76794ff5c
Author: Marcus Lundblad <ml dfupdate se>
Date:   Fri Jun 10 22:24:48 2022 +0200

    photonUtils: Add constant for location bias scale
    
    Add constant value for overriding location bias scale
    in the Photon-based geocoder implementations.

 src/photonUtils.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/photonUtils.js b/src/photonUtils.js
index 8d006a61..a33b750a 100644
--- a/src/photonUtils.js
+++ b/src/photonUtils.js
@@ -30,6 +30,8 @@ import * as Utils from './utils.js';
 
 const _ = gettext.gettext;
 
+export const LOCATION_BIAS_SCALE = 0.5;
+
 export function parsePlace(latitude, longitude, properties) {
     let location = new GeocodeGlib.Location({ latitude:  latitude,
                                           longitude: longitude,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]