Page 1 of 3   1 2 3 > last >>
Bookmark this page: Add A function to calculate distance beetween lat lon pairs to Yahoo MyWeb Add A function to calculate distance beetween lat lon pairs to Google Bookmarks Add A function to calculate distance beetween lat lon pairs to Windows Live Add A function to calculate distance beetween lat lon pairs to Del.icio.us Digg A function to calculate distance beetween lat lon pairs! Add A function to calculate distance beetween lat lon pairs to Netscape
  •  
  • Subject
  • Author
  • Date
If you were  Registered and logged in, you could reply and use other advanced thread options
Posted by Diman on July 5, 2005, 11:56 am
Hi
I looked over som old topics, but none of them suited my needs, or i
just haven't searched hard enough.:-)

I need a function in c#, vb, vb.net or java which computes
a distance in meters beetween two lat / lon pairs.
As received from a GPS device in $GPRMC sentence latitude and longitude
are in "DDD°MM'SS.S" format.

The distance will be calculated beetween small-distance pairs where
first pair of coordinates is always the last one in the previous
calculation, which indicates movement. The calculation
will be made every 500 milliseconds so distance beetween pairs will
never more than a couple hundred meters (a plane) or less ( a car).

Any help would be greatly appreciated!!!

Thanks!!!



Posted by laura halliday on July 5, 2005, 2:02 pm

> (snip...)
> I need a function in c#, vb, vb.net or java
> which computes a distance in meters beetween two
> lat / lon pairs. As received from a GPS device in
> $GPRMC sentence latitude and longitude are in
> "DDD°MM'SS.S" format...so distance beetween pairs will
> never more than a couple hundred meters (a plane) or
> less ( a car).

If the distance is that small you can approximate the
Earth as flat and get Mr. Pythagoras to help you.

Otherwise, calculate great circle distance. All
the usual references (just not this newsgroup).

Laura Halliday VE7LDH "Que les nuages soient notre
Grid: CN89mg pied a terre..."
ICBM: 49 16.05 N 122 56.92 W - Hospital/Shafte



Posted by Robbie on July 5, 2005, 6:48 pm
Diman wrote:
> Hi
> I looked over som old topics, but none of them suited my needs, or i
> just haven't searched hard enough.:-)
>
> I need a function in c#, vb, vb.net or java which computes
> a distance in meters beetween two lat / lon pairs.
> As received from a GPS device in $GPRMC sentence latitude and longitude
> are in "DDD°MM'SS.S" format.
>
> The distance will be calculated beetween small-distance pairs where
> first pair of coordinates is always the last one in the previous
> calculation, which indicates movement. The calculation
> will be made every 500 milliseconds so distance beetween pairs will
> never more than a couple hundred meters (a plane) or less ( a car).
>
> Any help would be greatly appreciated!!!
>
> Thanks!!!
>
Hi Diman,

Take a look at Johan Franson's GPSTools at www.franson.com. I have a
complete VB NET program that is based on GPSTools. My code (not Johan's)
is in the public domain.

Robbie


Posted by Sam Wormley on July 5, 2005, 7:09 pm
Diman wrote:
> Hi
> I looked over som old topics, but none of them suited my needs, or i
> just haven't searched hard enough.:-)
>
> I need a function in c#, vb, vb.net or java which computes
> a distance in meters beetween two lat / lon pairs.
> As received from a GPS device in $GPRMC sentence latitude and longitude
> are in "DDD°MM'SS.S" format.
>
> The distance will be calculated beetween small-distance pairs where
> first pair of coordinates is always the last one in the previous
> calculation, which indicates movement. The calculation
> will be made every 500 milliseconds so distance beetween pairs will
> never more than a couple hundred meters (a plane) or less ( a car).
>
> Any help would be greatly appreciated!!!
>
> Thanks!!!
>

Aviation Formulary V1.42
http://williams.best.vwh.net/avform.html


Posted by Ted Edwards on July 6, 2005, 12:58 am
Diman wrote:
> I need a function in c#, vb, vb.net or java which computes
> a distance in meters beetween two lat / lon pairs.
> As received from a GPS device in $GPRMC sentence latitude and longitude
> are in "DDD°MM'SS.S" format.
>
> The distance will be calculated beetween small-distance pairs where
> first pair of coordinates is always the last one in the previous
> calculation, which indicates movement. The calculation
> will be made every 500 milliseconds so distance beetween pairs will
> never more than a couple hundred meters (a plane) or less ( a car).
>
> Any help would be greatly appreciated!!!

Set your GPS to use UTM instead of Lat/lon and then just use Pythagoras.
UTM gives you coords in meters and great circle vs plane is negligable.

Ted


Page 1 of 3   1 2 3 > last >>