This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* https://clickherelabs.com/development-2/distance-searching-and-mysql/ | |
* http://janmatuschek.de/LatitudeLongitudeBoundingCoordinates | |
*/ | |
static int distance = 10; | |
static double origLatitude = 0; //your latitude in degrees | |
static double origLongitude = 0; //your longitude in degrees | |
public static void main(String[] args) { | |
List<LatLng> result = filterLocations(origLatitude, origLongitude, distance, getList()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
new MyCustomAsyncTask().executeOnExecutor(ExecutorManager.getInstance().getExecutor()) |