You can determine distance by using the Haversine formula. There are several topics on it so I suggest searching the forums.
Here’s one example: