I believe you can do it by using the coordinates, but you need to know how latitude and longitude works. For something like that, I believe Google Map support forum is a better place to ask that thing.
After you get the right method, you can use it to query the custom posts or use wpdb if it’s not possible.
I hope this makes sense. Thanks 🙂