RE: [OpenMap Users] Distance between two LatLonPoint's?

From: Lin, Sunny \(Shih-Hung\) <"Lin,>
Date: Wed, 14 Mar 2007 12:52:06 -0500

LatLonPoint.distance(LatLonPoint) will give you the distance between two
LatLonPoint objects in radians. You can convert it to what you like
using com.bbn.openmap.proj.Length. Here is an example.
LatLonPoint p1, p2;
float dist = Length.KM.fromRadians(p1.distance(p2));
This will give you the distance in kilometers between p1 and p2.
--Sunny Lin


From: []
On Behalf Of Jeroen van Dijk
Sent: Wednesday, March 14, 2007 12:24 PM
Subject: [OpenMap Users] Distance between two LatLonPoint's?



Is there a method in OpenMap to calculate the distance between two
LatLonPoint's correctly (for example in kilometers)?







From: []
On Behalf Of Lepkowski, Thomas
Sent: Tuesday, March 13, 2007 8:07 PM
Subject: [OpenMap Users] Lat, Lon Display and CoordMouseMode




I'm trying to get an understanding of how to most efficiently display
Lat, Lon of the current mouse position as it moves over the map. Looks
like CoordMouseMode plays an important part. I'd like to display Lat,
Lon somewhere on the GUI (not necessarily on the "info line". I admit
not fully understanding the architectural details of the various OM
parts. I'd appreciate any guidance.



[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Wed Mar 14 2007 - 14:19:50 EDT

This archive was generated by hypermail 2.3.0 : Tue Mar 28 2017 - 23:25:08 EDT