# PICGlobal Positioning SystemIO

http://www.users.bigpond.com/tobbe/dl7aot.htm a 16F84 based project with source code

I've been looking for the equation for finding the distance between two
cities, given the latitude and longitude of both cities. For example: what
is the formula one would use to find the distance between San Francisco
(N37 37' 00" latitude, W122 22' 00" longitude) and Paris (N48 44' 00"
latitude, E02 23' 00" longitude.)

The equation to implement is:

A = LAT1, B = LONG1
C = LAT2, D = LONG2 (all converted to radians: degree/57.29577951)

IF A = C AND B = D THEN DISTANCE = 0;
ELSE

IF [SIN(A)SIN(C) COS(A)COS(C)COS(B-D)] > 1 THEN DISTANCE =
3963.1*ARCOS[1]; /* solved a prob I ran into. I haven't fully
analyzed it yet */
ELSE

DISTANCE=3963.1*ARCOS[SIN(A)SIN(C) COS(A)COS(C)COS(B-D)];

I'm trying to write a program for the 18F452 PIC micro that will include this distance calculation in it.

Any help that members of "The PIC List" can offer would be greatly appreciated.

Elkin Dario Gonzalez Sierra
Bogota (COLOMBIA)
+

 file: /Techref/microchip/gps.htm, 2KB, , updated: 2005/9/26 09:18, local time: 2018/12/9 23:22, TOP NEW HELP FIND:  54.164.198.240:LOG IN

 ©2018 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions?Please DO link to this page! Digg it! / MAKE! /  PIC GPS (Global Positioning System) IO

After you find an appropriate page, you are invited to your to this massmind site! (posts will be visible only to you before review) Just type in the box and press the Post button. (HTML welcomed, but not the <A tag: Instead, use the link box to link to another page. A tutorial is available Members can login to post directly, become page editors, and be credited for their posts.

Attn spammers: All posts are reviewed before being made visible to anyone other than the poster.
 Did you find what you needed? "No. I'm looking for: " "No. Take me to the search page." "No. Take me to the top so I can drill down by catagory" "No. I'm willing to pay for help, please refer me to a qualified consultant" "No. But I'm interested. me at when this page is expanded."

.