diff options
author | Syed Mujeer Hashmi <mujeerhashmi@gmail.com> | 2018-12-16 23:30:57 +0530 |
---|---|---|
committer | Syed Mujeer Hashmi <mujeerhashmi@gmail.com> | 2018-12-18 20:19:55 +0530 |
commit | 0e39aad22c5679f37e5a2ab892c15cf196cd0873 (patch) | |
tree | d0480b169edc38a867d613c7ebd40823ce1af32c /src/org/traccar/Context.java | |
parent | 56d33dbe0e79789fc1ee78e3358c3531c2f16381 (diff) | |
download | trackermap-server-0e39aad22c5679f37e5a2ab892c15cf196cd0873.tar.gz trackermap-server-0e39aad22c5679f37e5a2ab892c15cf196cd0873.tar.bz2 trackermap-server-0e39aad22c5679f37e5a2ab892c15cf196cd0873.zip |
geocoder: Implement MapmyIndia Reverse geocoder
MapmyIndia reverse geocoding is very helpful for the Indian
subcontinent, It's "distance from nearest POI" detail embedded in the
formatted_address field of the response is quite impressive for the
reports.
The Confirgurations required to be added in the config file
"traccar.xml" are
<entry key='geocoder.enable'>true</entry>
<entry key='geocoder.type'>mapmyindia</entry>
<entry key="geocoder.url">https://apis.mapmyindia.com/advancedmaps/v1</entry>
<entry key="geocoder.key">YOUR_KeY</entry>
<entry key="geocoder.format">%f</entry>
Signed-off-by: Syed Mujeer Hashmi <mujeerhashmi@gmail.com>
Diffstat (limited to 'src/org/traccar/Context.java')
-rw-r--r-- | src/org/traccar/Context.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/org/traccar/Context.java b/src/org/traccar/Context.java index 07fab2bd1..95d433795 100644 --- a/src/org/traccar/Context.java +++ b/src/org/traccar/Context.java @@ -60,6 +60,7 @@ import org.traccar.geocoder.HereGeocoder; import org.traccar.geocoder.MapQuestGeocoder; import org.traccar.geocoder.NominatimGeocoder; import org.traccar.geocoder.OpenCageGeocoder; +import org.traccar.geocoder.MapmyIndiaGeocoder; import org.traccar.geocoder.Geocoder; import org.traccar.geolocation.UnwiredGeolocationProvider; import org.traccar.helper.Log; @@ -351,6 +352,8 @@ public final class Context { return new BanGeocoder(cacheSize, addressFormat); case "here": return new HereGeocoder(id, key, language, cacheSize, addressFormat); + case "mapmyindia": + return new MapmyIndiaGeocoder(url, key, cacheSize, addressFormat); default: return new GoogleGeocoder(key, language, cacheSize, addressFormat); } |