diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2018-12-15 11:25:21 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2018-12-15 11:25:21 -0800 |
commit | 56d33dbe0e79789fc1ee78e3358c3531c2f16381 (patch) | |
tree | c0c96f19fb64e88531bb5026b17b38d1208162a9 /src/org/traccar/Context.java | |
parent | cec63a8b62f20c1b23d92664676409510226a9e2 (diff) | |
download | trackermap-server-56d33dbe0e79789fc1ee78e3358c3531c2f16381.tar.gz trackermap-server-56d33dbe0e79789fc1ee78e3358c3531c2f16381.tar.bz2 trackermap-server-56d33dbe0e79789fc1ee78e3358c3531c2f16381.zip |
Implement HERE reverse geocoder (fix #4142)
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 6e255b6d3..07fab2bd1 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -56,6 +56,7 @@ import org.traccar.geocoder.GeocodeXyzGeocoder; import org.traccar.geocoder.GisgraphyGeocoder; import org.traccar.geocoder.BanGeocoder; import org.traccar.geocoder.GoogleGeocoder; +import org.traccar.geocoder.HereGeocoder; import org.traccar.geocoder.MapQuestGeocoder; import org.traccar.geocoder.NominatimGeocoder; import org.traccar.geocoder.OpenCageGeocoder; @@ -316,6 +317,7 @@ public final class Context { public static Geocoder initGeocoder() { String type = config.getString("geocoder.type", "google"); String url = config.getString("geocoder.url"); + String id = config.getString("geocoder.id"); String key = config.getString("geocoder.key"); String language = config.getString("geocoder.language"); @@ -347,6 +349,8 @@ public final class Context { return new GeocodeXyzGeocoder(key, cacheSize, addressFormat); case "ban": return new BanGeocoder(cacheSize, addressFormat); + case "here": + return new HereGeocoder(id, key, language, cacheSize, addressFormat); default: return new GoogleGeocoder(key, language, cacheSize, addressFormat); } |