In the flocking example, the light from a neighboring footbot is detected as a blob and a vector is created using the distance and angle to that blob. I'm currently modifying this algorithm so that distance and angle between footbots is calculated using their gps coordinates instead.
I calculate distance using the standard distance formula but I'm not sure how to go about calculating angle?