aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorMatjaž Črnko <m.crnko@txt.si>2024-06-15 21:29:30 +0200
committerMatjaž Črnko <m.crnko@txt.si>2024-06-15 21:29:30 +0200
commit3a3bc33a35122f8231fb145bd2958876a094e039 (patch)
tree9b7fac82e5f1f8b8b0edb31c77dbe7e538567e97 /src/main
parentd4e4a4a00c04d2a848d1f1f8d58724202d578ea6 (diff)
downloadtrackermap-server-3a3bc33a35122f8231fb145bd2958876a094e039.tar.gz
trackermap-server-3a3bc33a35122f8231fb145bd2958876a094e039.tar.bz2
trackermap-server-3a3bc33a35122f8231fb145bd2958876a094e039.zip
fix: Support key, like in Nominatim
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/geocoder/PhotonGeocoder.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/traccar/geocoder/PhotonGeocoder.java b/src/main/java/org/traccar/geocoder/PhotonGeocoder.java
index 898c04afd..05bd40b23 100644
--- a/src/main/java/org/traccar/geocoder/PhotonGeocoder.java
+++ b/src/main/java/org/traccar/geocoder/PhotonGeocoder.java
@@ -27,6 +27,9 @@ public class PhotonGeocoder extends JsonGeocoder {
url = "https://photon.komoot.io/reverse";
}
url += "?lat=%f&lon=%f";
+ if (key != null) {
+ url += "&key=" + key;
+ }
if (language != null) {
url += "&lang=" + language;
}