In the distanceTo() method what is the parameter used?I do know that its the location parameter that is used, but my question is that if I am making an app which has to calculate the distance from a particular location say a particular landmark, then what do I enter in the parameter set of the distanceTo() function, I do know the latitude and longitude of the place, but the distanceTo() function only accepts one parameter.
In the distanceTo() method what is the parameter used?I do know that its the
Share
You need to use the
distanceBetween()method if you know the latitude and longitude of the place. Take a look at the docs.