Filter by location

I have two locations and I need to make a filter to see if they are close. They are in lat / long