GPS devices communicate via a NMEA (National Marine Electronic Association) spec which costs about $250.
see also:
Suppliers:
Garmin GPS 16/17 to DB9 PC serial port
interconnect:
Here is a Javascript function to calculate distance in miles. Change the multiplier to equal the number of your preferred units in one mile. For example, to get results in feet the multiplier would be 5280.
function calcDist(lon1,lat1,lon2,lat2) { var r = 3963.0; var multiplier = 1; return multiplier * r * Math.acos(Math.sin(lat1/57.2958) * Math.sin(lat2/57.2958) + Math.cos(lat1/57.2958) * Math.cos(lat2/57.2958) * Math.cos(lon2/57.2958 - lon1/57.2958)); }:
See:
file: /Techref/io/sensor/pos/gps.htm, 3KB, , updated: 2010/7/16 12:03, local time: 2024/11/21 15:18,
18.116.89.8:LOG IN
|
©2024 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? <A HREF="http://sxlist.com/techref/io/sensor/pos/gps.htm"> Global Positioning Systems</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.