I want to make an app which checks the nearest place where a user is. I can easily get the location of the user and I have already a list of places with latitude and longitu
private float getDistance(double lat1, double lon1, double lat2, double lon2) { float[] distance = new float[2]; Location.distanceBetween(lat1, lon1, lat2, lon2, distance); return distance[0]; }