GPS Helper
Here is the start of a GPS helper libray used to calculate various things based on GPS Latitude and Longitude.
With this library you are able to calculate things like distance between two points, bearing between to points and see if a locaiton is inside a polygon boundary.
A lot if the maths comes from this very good site: Calculate distance and bearing between two Latitude/Longitude points using haversine formula in JavaScript