Question: how to calculate distance between two geocodes?
Answer: The distance difference in the longitude direction is EarthRadius * longitude difference * cos(latitude) . We multiply by cos(lat) because the longitude degrees don't make the same km distance if the latitude changes.