# Cartesian to lat and lon

Discussion in 'Perl Misc' started by Andrew Rich, Sep 7, 2008.

1. ### Andrew RichGuest

Hello

I have had success going from lat and lon to bearing and distance from a
known point.

Now I have a need to go the other way.

Given a known point, and given the bearing and distance, calculate the lat
and lon.

Ideas ?

Maybe there is a module that does this ?

Andrew

Andrew Rich, Sep 7, 2008

2. ### Mark ClementsGuest

Andrew Rich wrote:
> Hello
>
> I have had success going from lat and lon to bearing and distance from a
> known point.
>
> Now I have a need to go the other way.
>
> Given a known point, and given the bearing and distance, calculate the lat
> and lon.
>
> Ideas ?
>
> Maybe there is a module that does this ?

search.cpan.org

Mark

Mark Clements, Sep 7, 2008

3. ### Zed PobreGuest

Andrew Rich <> wrote:
>
> I have had success going from lat and lon to bearing and distance from a
> known point.
>
> Now I have a need to go the other way.
>
> Given a known point, and given the bearing and distance, calculate the lat
> and lon.
>
> Ideas ?
>
> Maybe there is a module that does this ?

I suspect that what you want is Geo:irection:istance.

If it isn't, searching CPAN for "Geo Distance" should bring up quite a
few other tools.

--
Zed Pobre <> a.k.a. Zed Pobre <>
PGP key and fingerprint available on finger; encrypted mail welcomed.

Zed Pobre, Sep 8, 2008
4. ### Jim GibsonGuest

In article <48c34c6a\$>, Andrew Rich
<> wrote:

> Hello
>
> I have had success going from lat and lon to bearing and distance from a
> known point.
>
> Now I have a need to go the other way.
>
> Given a known point, and given the bearing and distance, calculate the lat
> and lon.
>
> Ideas ?
>
> Maybe there is a module that does this ?

There are several. I wrote one called Geo::Ellipsoid and submitted it
to CPAN. I have been using it for several years. I would be glad to

Other modules that do the same thing are Geo::Forward and
Geo:irection:istance. They all give comparable results, according