Great project inspiration from scott mangiacotti on Hackster.io:
This project uses an Adafruit GPS hat plugged into a Raspberry Pi 2. It uses Windows 10 IoT build 14393 and the class library provided by Adafruit for accessing GPS coordinates and other available data.
The application is based around calculating distance along a sphere (planet Earth is nearly a sphere) from the GPS device to the putting green area of a golf course in southern Arizona, USA.
While the code is based on the sport of golf, the concepts and hard-coded locations can be adapted to any distance calculation needs.
The latitude and longitude values in the code were obtained from Google Maps but could, of course, be acquired from any mapping software and need not be specific to this golf course.
Each Friday is PiDay here at Adafruit! Be sure to check out our posts, tutorials and new Raspberry Pi related products. Adafruit has the largest and best selection of Raspberry Pi accessories and all the code & tutorials to get you up and running in no time!