diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-06 11:17:18 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-10-06 11:17:18 +1300 |
commit | c8ad5cc5c45ab47abe35e3ad2e4f607d520e627d (patch) | |
tree | a86dd0c94803608b6f72f6a23ecb084d3ec68728 /src/org/traccar/geocode/ReverseGeocoder.java | |
parent | 923a49d6bc33f94bf39b8be13c77b1dad4d1dda0 (diff) | |
download | trackermap-server-c8ad5cc5c45ab47abe35e3ad2e4f607d520e627d.tar.gz trackermap-server-c8ad5cc5c45ab47abe35e3ad2e4f607d520e627d.tar.bz2 trackermap-server-c8ad5cc5c45ab47abe35e3ad2e4f607d520e627d.zip |
Implement async reverse geocoding
Diffstat (limited to 'src/org/traccar/geocode/ReverseGeocoder.java')
-rw-r--r-- | src/org/traccar/geocode/ReverseGeocoder.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/org/traccar/geocode/ReverseGeocoder.java b/src/org/traccar/geocode/ReverseGeocoder.java index 336a26d83..1367e82dc 100644 --- a/src/org/traccar/geocode/ReverseGeocoder.java +++ b/src/org/traccar/geocode/ReverseGeocoder.java @@ -17,6 +17,12 @@ package org.traccar.geocode; public interface ReverseGeocoder { - String getAddress(AddressFormat format, double latitude, double longitude); + public interface ReverseGeocoderCallback { + + void onResult(String address); + + } + + void getAddress(AddressFormat format, double latitude, double longitude, ReverseGeocoderCallback callback); } |