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!
Make a robot friend with Adafruit’s CRICKIT – A Creative Robotics & Interactive Construction Kit. It’s an add-on to our popular Circuit Playground Express, FEATHER and other platforms to make and program robots with CircuitPython, MakeCode, and Arduino. Start controlling motors, servos, solenoids. You also get signal pins, capacitive touch sensors, a NeoPixel driver and amplified speaker output. It complements & extends your boards so you can still use all the goodies on the microcontroller, now you have a robotics playground as well.