diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:17:50 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-12-31 11:17:50 +1300 |
commit | d13f618ee3b8463d063b7f67e039299560245597 (patch) | |
tree | a59177abc8a4f9c74680dd15b3d1c6c0c1231c9d /src/org/traccar/geocode/ReverseGeocoder.java | |
parent | 2c6c6eccf2c45bf87e16c45e3bac9872f53c12c3 (diff) | |
download | trackermap-server-d13f618ee3b8463d063b7f67e039299560245597.tar.gz trackermap-server-d13f618ee3b8463d063b7f67e039299560245597.tar.bz2 trackermap-server-d13f618ee3b8463d063b7f67e039299560245597.zip |
Implement geocoding error handling
Diffstat (limited to 'src/org/traccar/geocode/ReverseGeocoder.java')
-rw-r--r-- | src/org/traccar/geocode/ReverseGeocoder.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/geocode/ReverseGeocoder.java b/src/org/traccar/geocode/ReverseGeocoder.java index e2641fa37..b67ac50bb 100644 --- a/src/org/traccar/geocode/ReverseGeocoder.java +++ b/src/org/traccar/geocode/ReverseGeocoder.java @@ -19,7 +19,9 @@ public interface ReverseGeocoder { interface ReverseGeocoderCallback { - void onResult(String address); + void onSuccess(String address); + + void onFailure(Throwable e); } |