Page 1 of 1
PHP Algorithm for Destination.
Posted: Mon Oct 20, 2014 8:37 am
by santi_93
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.
Re: PHP Algorithm for Destination.
Posted: Mon Oct 20, 2014 11:26 am
by pickle
"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?
Re: PHP Algorithm for Destination.
Posted: Sun Nov 02, 2014 1:17 pm
by santi_93
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.
Posted: Sun Nov 02, 2014 3:34 pm
by Celauran
You could create a bounding box and then use the Haversine formula on results inside that box.