Checking distance between lat/long pairs

You need to calculate the distance. Most people use the Haversine formula for that. It’s a pain to set up but it works great.

See this: Calculate distance travelled

Note that that will calculate the distance between two points “as the crow flies.” If you want actual road distance, you’d probably need to use an API call with the Google Maps API.