home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sources / wanted / 3696 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  859 b 

  1. Xref: sparky comp.sources.wanted:3696 alt.sources.wanted:1262 comp.unix.questions:9294
  2. Path: sparky!uunet!wupost!darwin.sura.net!ukma!psuvax1!rutgers!micro-heart-of-gold.mit.edu!xn.ll.mit.edu!rkc
  3. From: rkc@xn.ll.mit.edu
  4. Newsgroups: comp.sources.wanted,alt.sources.wanted,comp.unix.questions
  5. Subject: earth lat, long -> km
  6. Message-ID: <1992Jul22.155513.24009@xn.ll.mit.edu>
  7. Date: 22 Jul 92 15:55:13 GMT
  8. Organization: MIT Lincoln Laboratory
  9. Lines: 14
  10.  
  11. Does anyone have a "C" routine that converts earth longitude and latitude
  12. coordinates to distance traveled?
  13.  
  14. Ideally the routine would look like this:
  15.  
  16.     DistanceTraveled(StartingLat,StartingLong,EndingLat,EndingLong)
  17.  
  18.  
  19. Note that I am looking for something that takes the earth's ellipsoid shape
  20. into account; I've written the spherical approximation version of this.
  21.  
  22.         Any pointers are appreciated.
  23.  
  24.             -Rob
  25.