I have a custom post type for "locations" and I need to have "users" log in and be able to pick a location that is within a certain distance from them.
I have added some spots to the profile using update_contact_methods() to get an address etc, and the location custom post type I am using the Custom-Metaboxes-and-Fields-for-WordPress to add specific fields for address information etc.
I am simply not sure of how to achieve what I need to and am hoping for some input.
A thought was to have a page that is clickable once user is logged in, that would, upon navigating to it, would need to iterate through each "location" custom post and compare its address as destination and the logged in users address (pulled from profile) as origin, and discard the post if > (greater than) x hours. Does that make sense?
I would really appreciate any help you all may have to give, I have confused myself into a corner.