diff options
-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; } |