RE: [OpenMap Users] How to calculate a lat lon point from a distance

From: Potter, Mark A (UK Rochester) <"Potter,>
Date: Tue, 22 Feb 2005 13:41:03 +0000


I think this is what you need - LatLonPoint.getPoint(..):

 LatLonPoint getPoint(float dist, float az)
          Find a LatLonPoint a distance and direction away from this point, based on the sphercal earth model.

  dist - distance, in radians.
  az - radians of azimuth (direction) east of north (-PI <= Az < PI)

You'll have to apply the conversion routines you have mentioned though (although with a bit of imagination for Azimuth I believe N = 0; S=PI or -PI, E=PI/2, W=-PI/2).

I hope this helps.


-----Original Message-----
From: []On
Behalf Of Laura Paterson
Sent: 22 February 2005 12:11
Subject: [OpenMap Users] How to calculate a lat lon point from a

               *** WARNING ***

This mail has originated outside your organization,
either from an external partner or the Global Internet.
     Keep this in mind if you answer this message.


I am trying to work out how to convert between distances to lat lons.

The user selects a point on the map, and I want to find out the lat/lon that
is a certain distance North,
South, East or West of that point.

The distance may be specified in feet/ metres or miles, although I could do
these conversions programmatically...

I have had a look through the API, and the only way I can see to achive this
is to use the Geo class to do kmToAngle(double km), then
Geo.degrees(<result>) However, I'm not sure if this actually does what I
need or not...

Any suggestions would be great!

This email and any files attached to it are of a confidential nature and
intended for the exclusive use of the individual or entity to whom they are
addressed. If you are not the intended recipient, please be advised that you
have received this email in error and action should be taken to inform the
originator and this email should be deleted immediately and any copies made
should be destroyed. If you are not the intended recipient, any form of
disclosure, distribution, printing, copying or any other use of this email
or the information in it or in any attachments is strictly prohibited and
may be unlawful. Any views, opinions or other information expressed in the
email and any attachments are those of the originator and not given or
endorsed by General Dynamics UK Ltd.In compliance with the various
Regulations and Acts, please be aware that General Dynamics UK Ltd reserves
the right to monitor all emails and email attachments, both inbound and
outbound, allowing legitimate business practice to continue.In addition to
monitoring, General Dynamics UK Ltd also provides appropriate Antivirus
measures scanning all incoming and outgoing email and email attachments.
However, email communications cannot be guaranteed to be secure or free of
errors as information may be intercepted, corrupted, amended, lost,
destroyed or contain viruses. General Dynamics UK Ltd do not accept
liability or responsibility for any such matters or the consequences

[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
[To unsubscribe to this list send an email to ""
with the following text in the BODY of the message "unsubscribe openmap-users"]
Received on Tue Feb 22 2005 - 08:44:08 EST

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