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

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

Jeroen,
 
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: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]
On Behalf Of Jeroen van Dijk
Sent: Wednesday, March 14, 2007 12:24 PM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] Distance between two LatLonPoint's?



Hello,

 

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

 

Thanks,

 

Jeroen

 

________________________________

From: owner-openmap-users_at_bbn.com [mailto:owner-openmap-users_at_bbn.com]
On Behalf Of Lepkowski, Thomas
Sent: Tuesday, March 13, 2007 8:07 PM
To: openmap-users_at_bbn.com
Subject: [OpenMap Users] Lat, Lon Display and CoordMouseMode

 

Hello,

 

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.

 

Thanks.



--
[To unsubscribe to this list send an email to "majdart_at_bbn.com"
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