mbradley
Joined: 11 Jul 2009 Posts: 118 Location: California, USA
|
|
Posted: Fri Mar 19, 2010 11:32 am |
|
|
This can not be answered directly, as distance in minutes is closer at the poles than the equator, and only for lon, not lat (I believe the order).
What you need is to know the distance between coordinates.
Here is a super simple formula, and its not accurate, but, well within your 300ft criteria.
Polar Coordinate Flat-Earth Formula
Code: |
a = pi/2 - lat1
b = pi/2 - lat2
c = sqrt(a^2 + b^2 - 2 * a * b * cos(lon2 - lon1)
d = R * c
|
Abstracted from here, 1/4 page down
http://www.movable-type.co.uk/scripts/gis-faq-5.1.html
Also, there was a similar project on hackaday.com, about a week ago. _________________ Michael Bradley
www.mculabs.com
Open Drivers and Projects |
|