Number distance(Location loc1, Location loc2)

General discussions about Automagic and automation in general

Moderator: Martin

Post Reply
User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Number distance(Location loc1, Location loc2)

Post by Bushmills » 08 Nov 2014 01:24

Will calculation consider Earth a perfect sphere, or take into account equator bulging and pole flattening?

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: Number distance(Location loc1, Location loc2)

Post by Martin » 08 Nov 2014 10:09

Android documents it like this:
Returns the approximate distance in meters between this location and the given location. Distance is defined using the WGS84 ellipsoid.
The source contains a reference to this PDF: http://www.ngs.noaa.gov/PUBS_LIB/inverse.pdf

Post Reply