diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-17 20:39:57 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-17 20:40:12 +1300 |
commit | f8280619a39cd05106b58b7198a99fd724d9b482 (patch) | |
tree | 1363007da62e51354327be3faa52fa42aca908b5 /src/org/traccar/Context.java | |
parent | 98133819e0ea1b3126f142026aac1f624d2b1497 (diff) | |
download | trackermap-server-f8280619a39cd05106b58b7198a99fd724d9b482.tar.gz trackermap-server-f8280619a39cd05106b58b7198a99fd724d9b482.tar.bz2 trackermap-server-f8280619a39cd05106b58b7198a99fd724d9b482.zip |
Add support for Mozilla API key
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 03e4635b6..d859e91bb 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -242,7 +242,11 @@ public final class Context { switch (type) { case "mozilla": - locationProvider = new MozillaLocationProvider(); + if (key != null) { + locationProvider = new MozillaLocationProvider(key); + } else { + locationProvider = new MozillaLocationProvider(); + } break; default: locationProvider = new OpenCellIdLocationProvider(key); |