Blackberry: Return value of Coordinates.distance()
I want to know metric开发者_开发问答 of the value returned by Coordinates.distance()
javax.microedition.location.Coordinates.distance:
public float distance(Coordinates to)
Calculates the geodetic distance between the two points according to the ellipsoid model of WGS84. Altitude is neglected from calculations. The implementation shall calculate this as exactly as it can. However, it is required that the result is within 0.35% of the correct result.
Parameters: to - the Coordinates of the destination
Returns: the distance to the destination in meters
Throws: NullPointerException - if the parameter is null
Since: JDE 4.0.2
精彩评论