I have a program in which latitude and longitude values of a location are stored in a database, which I download.
I want to get the distance between these coordinat
You may create locations using their constructor, then set the latutude and longitude values.
final Location location = new Location("yourprovidername"); location.setLatitude(1.2345d); location.setLongitude(1.2345d);