[gnome-maps/wip/mlundblad/location-bias-scale: 4/6] 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: 4/6] photonGeocode: Set location bias scale
- Date: Sun, 19 Jun 2022 16:24:16 +0000 (UTC)
commit 40c0f45d1d43f8fcfab5319751044cbd2d6fdd0f
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]