I’m creating an application that allows customers to search for users who can help them with a specific problem. I want it to be location-based, so it only shows the best suited users nearby.
I will ask the customer for an address, and therefore I can use geocoding to turn that info into lang and longitude. But from here I’m stuck, I have no clue as to what’s the best solution for calculating distance, and showing the nearest results.
I’ve looked at Mongo’s feature $near - but I feel like i need to do some work on the data before I can use it?
Thanks in advance!