Hi guys;
As part of a project I need to design some sort of algorithm which will search the closest match (Destination), however I am unsure as to what data I need and which specific algorithms or code will be needed.
PHP Algorithm for Destination.
Moderator: General Moderators
Re: PHP Algorithm for Destination.
"Destination" isn't a data type, so it's hard to help. Is that a set of lat/long co-ordinates? Street address? Cartesian co-ordinates?
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: PHP Algorithm for Destination.
I am creating a system which will help users find local business for certain categories. In the sign up page the users must enter in there full address which includes House number/address, city, town and postcode. So I need to creae/find an algorithm that will use these details to find the most local business.
Re: PHP Algorithm for Destination.
You could create a bounding box and then use the Haversine formula on results inside that box.