aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/geolocation/MozillaGeolocationProvider.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-04-12 07:10:11 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2017-04-12 07:10:11 +1200
commitd88f364aca4790c1fc7775cd6e4faf488dc9fe94 (patch)
tree5f689ddb5e751a622a36b5ce5fa304afea2f9be8 /src/org/traccar/geolocation/MozillaGeolocationProvider.java
parent427aa11193724669fbe098fd64d327f6988a9612 (diff)
downloadtrackermap-server-d88f364aca4790c1fc7775cd6e4faf488dc9fe94.tar.gz
trackermap-server-d88f364aca4790c1fc7775cd6e4faf488dc9fe94.tar.bz2
trackermap-server-d88f364aca4790c1fc7775cd6e4faf488dc9fe94.zip
Implement Unwired geolocation provider
Diffstat (limited to 'src/org/traccar/geolocation/MozillaGeolocationProvider.java')
-rw-r--r--src/org/traccar/geolocation/MozillaGeolocationProvider.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/org/traccar/geolocation/MozillaGeolocationProvider.java b/src/org/traccar/geolocation/MozillaGeolocationProvider.java
index af917d6fe..c6a73a52b 100644
--- a/src/org/traccar/geolocation/MozillaGeolocationProvider.java
+++ b/src/org/traccar/geolocation/MozillaGeolocationProvider.java
@@ -19,12 +19,8 @@ public class MozillaGeolocationProvider extends UniversalGeolocationProvider {
private static final String URL = "https://location.services.mozilla.com/v1/geolocate";
- public MozillaGeolocationProvider() {
- this("test");
- }
-
public MozillaGeolocationProvider(String key) {
- super(URL, key);
+ super(URL, key != null ? key : "test");
}
}