[gnome-maps/wip/mlundblad/location-bias-scale: 2/4] photonGeocode: Set location bias scale
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc: 
- Subject: [gnome-maps/wip/mlundblad/location-bias-scale: 2/4] photonGeocode: Set location bias scale
- Date: Sat, 18 Jun 2022 20:47:08 +0000 (UTC)
commit 7904cc67782645c65eee9a619139879fc4b5a079
Author: Marcus Lundblad <ml dfupdate se>
Date:   Fri Jun 10 10:16:43 2022 +0200
    photonGeocode: Set location bias scale
    
    Tweak the location_bias_scale parameter.
    See: https://github.com/komoot/photon/issues/600
 src/photonGeocode.js | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/src/photonGeocode.js b/src/photonGeocode.js
index a4b6045d..4c3a9579 100644
--- a/src/photonGeocode.js
+++ b/src/photonGeocode.js
@@ -138,6 +138,8 @@ export class PhotonGeocode {
         if (latitude !== null && longitude != null) {
             query.add('lat', latitude);
             query.add('lon', longitude);
+            if (string)
+                query.add('location_bias_scale', PhotonUtils.LOCATION_BIAS_SCALE);
         }
 
         if (string)
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]