![]() Re: A function to calculate distance beetween lat/...
| Tigran Mkrtchya... | 07-06-2005 |
If you were Registered and logged in, you could reply and use other advanced thread options
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!!!
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!!!
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
Diman wrote:
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
> 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,
> 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!!!
>
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
Diman wrote:
Aviation Formulary V1.42
http://williams.best.vwh.net/avform.html
> 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!!!
>
> 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
Diman wrote:
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
> 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!!!
> 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
- mercator distance
- Satellite Navigation
- 2008-06-05
- (very long) FAQ Q5.1 Computing The Distance Between Two Points
- Geographic Information Systems (GIS)
- 2005-04-13
- software recommendations
- Satellite Navigation
- 2006-02-05
- what's the equivalent distance, in m, per 1 arc min at N42 20'?
- Global Positioning System
- 2006-05-01
- Will 60C do timed distance runs?
- Garmin GPS
- 2005-11-11









> 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).