0

How to measure the shortest distance between two geological points? All that I got(Location.toDistance() , manually made equation) , gives the longest distance. Suppose I am trying to get the distance from dhaka to new delhi, as the earth is round, There can be two distances--one from one side, and another from the other side. I am getting only the biggest one. How can I get the shortest one?

Md Razon Hossain
  • 141
  • 1
  • 12

1 Answers1

0

This should help out. The Location class in Android also has a distanceBetween and distanceTo method.

Community
  • 1
  • 1
David M
  • 841
  • 6
  • 23