I wrote this Python script four years ago to make a camera automatically take pictures of me based on the coordinates I was in using a GPS antenna. This code runs on a Linux micro-computer and calculates the distance between the coordinates that I am in and the coordinates I want to be in. If I am within a specified threshold, the script triggers the camera to take a picture. The script uses the haversine formula hav(Θ) to calculate the distance between two points over the Earth’s surface.