diff options
author | Matjaž Črnko <m.crnko@txt.si> | 2024-06-15 21:29:30 +0200 |
---|---|---|
committer | Matjaž Črnko <m.crnko@txt.si> | 2024-06-15 21:29:30 +0200 |
commit | 3a3bc33a35122f8231fb145bd2958876a094e039 (patch) | |
tree | 9b7fac82e5f1f8b8b0edb31c77dbe7e538567e97 /src | |
parent | d4e4a4a00c04d2a848d1f1f8d58724202d578ea6 (diff) | |
download | trackermap-server-3a3bc33a35122f8231fb145bd2958876a094e039.tar.gz trackermap-server-3a3bc33a35122f8231fb145bd2958876a094e039.tar.bz2 trackermap-server-3a3bc33a35122f8231fb145bd2958876a094e039.zip |
fix: Support key, like in Nominatim
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/traccar/geocoder/PhotonGeocoder.java | 3 |
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; } |