diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-12 07:10:11 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2017-04-12 07:10:11 +1200 |
commit | d88f364aca4790c1fc7775cd6e4faf488dc9fe94 (patch) | |
tree | 5f689ddb5e751a622a36b5ce5fa304afea2f9be8 /src/org/traccar/geolocation/MozillaGeolocationProvider.java | |
parent | 427aa11193724669fbe098fd64d327f6988a9612 (diff) | |
download | trackermap-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.java | 6 |
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"); } } |