PC Review


Reply
Thread Tools Rate Thread

Calculating Distance in MIles

 
 
Dennis Tucker
Guest
Posts: n/a
 
      20th Mar 2010
Lets say I have two locations on the earth surface. These locations are stated as

Location 1

geo:lat=57.64911

geo:lon=10.40744

&

Location 2

geo:lat=58.64911

geo:lon=11.40744

What is the easiest and accurate way to calculate the distance between these locations in miles?

What is the formula?

Dennis

 
Reply With Quote
 
 
 
 
OssieMac
Guest
Posts: n/a
 
      20th Mar 2010
Hello Dennis,

If you Google "distance between coordinates" you will find quite a bit on
this subject. Here is one link.

http://www.movable-type.co.uk/scripts/latlong.html


--
Regards,

OssieMac


"Dennis Tucker" wrote:

> Lets say I have two locations on the earth surface. These locations are stated as
>
> Location 1
>
> geo:lat=57.64911
>
> geo:lon=10.40744
>
> &
>
> Location 2
>
> geo:lat=58.64911
>
> geo:lon=11.40744
>
> What is the easiest and accurate way to calculate the distance between these locations in miles?
>
> What is the formula?
>
> Dennis
>

 
Reply With Quote
 
macropod
Guest
Posts: n/a
 
      20th Mar 2010
Hi Dennis,

For distances at sea level, try:
ACOS(SIN(RADIANS(Lat1))*SIN(RADIANS(Lat2))+COS(RADIANS(Lat1))*COS(RADIANS(Lat2))*COS(RADIANS(Long1-Long2)))*RadiusEarth
where:
Lat1, Lat2, Long1-Long2 are named cells containing the latitudes and longitudes (you could use cell addresses instead).
RadiusEarth = 3956.56 (the average distance in statute miles, but the distance around the equator is longer than around the poles).
You could adjust this for the average distances from the center of the earth for the start and end locations.

--
Cheers
macropod
[Microsoft MVP - Word]


"Dennis Tucker" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
Lets say I have two locations on the earth surface. These locations are stated as

Location 1

geo:lat=57.64911

geo:lon=10.40744

&

Location 2

geo:lat=58.64911

geo:lon=11.40744

What is the easiest and accurate way to calculate the distance between these locations in miles?

What is the formula?

Dennis

 
Reply With Quote
 
Dennis Tucker
Guest
Posts: n/a
 
      20th Mar 2010
Thanks, but I looked over the data on that web page before my questions.
I'm working strictly with Decimal Degrees.

I'm hoping someone has already done this conversion with VBA and is willing
to share it.

Dennis

"OssieMac" <(E-Mail Removed)> wrote in message
news:A34AD1BC-2C50-4E90-B39E-(E-Mail Removed)...
> Hello Dennis,
>
> If you Google "distance between coordinates" you will find quite a bit on
> this subject. Here is one link.
>
> http://www.movable-type.co.uk/scripts/latlong.html
>
>
> --
> Regards,
>
> OssieMac
>
>
> "Dennis Tucker" wrote:
>
>> Lets say I have two locations on the earth surface. These locations are
>> stated as
>>
>> Location 1
>>
>> geo:lat=57.64911
>>
>> geo:lon=10.40744
>>
>> &
>>
>> Location 2
>>
>> geo:lat=58.64911
>>
>> geo:lon=11.40744
>>
>> What is the easiest and accurate way to calculate the distance between
>> these locations in miles?
>>
>> What is the formula?
>>
>> Dennis
>>

 
Reply With Quote
 
Dennis Tucker
Guest
Posts: n/a
 
      20th Mar 2010
Thanks. I will try it out.

Dennis

"macropod" <(E-Mail Removed)> wrote in message
news:OANuLY#(E-Mail Removed)...
> Hi Dennis,
>
> For distances at sea level, try:
> ACOS(SIN(RADIANS(Lat1))*SIN(RADIANS(Lat2))+COS(RADIANS(Lat1))*COS(RADIANS(Lat2))*COS(RADIANS(Long1-Long2)))*RadiusEarth
> where:
> Lat1, Lat2, Long1-Long2 are named cells containing the latitudes and
> longitudes (you could use cell addresses instead).
> RadiusEarth = 3956.56 (the average distance in statute miles, but the
> distance around the equator is longer than around the poles). You could
> adjust this for the average distances from the center of the earth for the
> start and end locations.
>
> --
> Cheers
> macropod
> [Microsoft MVP - Word]
>
>
> "Dennis Tucker" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> Lets say I have two locations on the earth surface. These locations are
> stated as
>
> Location 1
>
> geo:lat=57.64911
>
> geo:lon=10.40744
>
> &
>
> Location 2
>
> geo:lat=58.64911
>
> geo:lon=11.40744
>
> What is the easiest and accurate way to calculate the distance between
> these locations in miles?
>
> What is the formula?
>
> Dennis
>

 
Reply With Quote
 
helene and gabor
Guest
Posts: n/a
 
      20th Mar 2010
Hello Dennis,

The latitudes can be North or South, the longitudes East or West.

Best Regards

Gabor Sebo

Have program.

-----------------------------------------------------------------------------------------------------------------------------------------------------
"Dennis Tucker" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
Lets say I have two locations on the earth surface. These locations are stated as

Location 1

geo:lat=57.64911

geo:lon=10.40744

&

Location 2

geo:lat=58.64911

geo:lon=11.40744

What is the easiest and accurate way to calculate the distance between these locations in miles?

What is the formula?

Dennis

 
Reply With Quote
 
Chip Pearson
Guest
Posts: n/a
 
      20th Mar 2010
See http://www.cpearson.com/excel/latlong.aspx . It has a formula for
calculating the great circle distance of two points, given latitude
and longitude for each point. A great circle is the shortest path
between two points on a sphere.

Cordially,
Chip Pearson
Microsoft Most Valuable Professional,
Excel, 1998 - 2010
Pearson Software Consulting, LLC
www.cpearson.com



On Fri, 19 Mar 2010 20:34:33 -0700, "Dennis Tucker"
<(E-Mail Removed)> wrote:

>Lets say I have two locations on the earth surface. These locations are stated as
>
>Location 1
>
>geo:lat=57.64911
>
>geo:lon=10.40744
>
>&
>
>Location 2
>
>geo:lat=58.64911
>
>geo:lon=11.40744
>
>What is the easiest and accurate way to calculate the distance between these locations in miles?
>
>What is the formula?
>
>Dennis

 
Reply With Quote
 
helene and gabor
Guest
Posts: n/a
 
      20th Mar 2010
Hello Dennis,

My Excel program says the distance is:

78.1216 miles.

Best Regards,


Gabor Sebo

--------------------------------------------------------------------------
--------------------------------------------------------------------------
"Dennis Tucker" <(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
Lets say I have two locations on the earth surface. These locations are stated as

Location 1

geo:lat=57.64911

geo:lon=10.40744

&

Location 2

geo:lat=58.64911

geo:lon=11.40744

What is the easiest and accurate way to calculate the distance between these locations in miles?

What is the formula?

Dennis

 
Reply With Quote
 
Dana DeLouis
Guest
Posts: n/a
 
      20th Mar 2010
Hmmmm.. Getting away from it all for the weekend? :>)

http://maps.google.com/maps?ll=57.64...z=19&t=h&hl=en

Looks like a pretty drive... in the summer.

= = = = =
Dana DeLouis



On 3/19/10 11:34 PM, Dennis Tucker wrote:
> Lets say I have two locations on the earth surface. These locations are
> stated as
>
> Location 1
>
> geo:lat=57.64911
>
> geo:lon=10.40744
>
> &
>
> Location 2
>
> geo:lat=58.64911
>
> geo:lon=11.40744
>
> What is the easiest and accurate way to calculate the distance between
> these locations in miles?
>
> What is the formula?
>
> Dennis
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculating Miles per Degree Longitude - Check my Math Please Joseph Geretz Microsoft C# .NET 12 12th Dec 2007 04:45 AM
Calculating miles per gallon Access 2007 =?Utf-8?B?Rmx5IEJveSA1?= Microsoft Access Database Table Design 6 1st Oct 2007 12:51 AM
Calculating Time from Speed and Distance? John Microsoft Excel Worksheet Functions 3 21st Jun 2007 08:50 PM
Calculating distance with radians =?Utf-8?B?RGF2aWQgTWNLbmlnaHQ=?= Microsoft Access Queries 11 25th Jul 2006 11:27 PM
calculating distance =?Utf-8?B?QWFyb24=?= Microsoft Access 5 16th Dec 2005 11:13 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:49 AM.