The sources are hosted at BitBucket(GIT).
The library provides two important functions:
- Calculate a destination given a starting point, direction, and distance traveled on Earth
- Calculate the distance between two points on Earth
A very similar library exists for Java and C# at Mike Gavaghans website.
Feel free to use it for your project.