PHP Developers Network

PHP Algorithm for Destination.
Page 1 of 1

Author:  santi_93 [ Mon Oct 20, 2014 8:37 am ]
Post subject:  PHP Algorithm for Destination.

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.

Author:  pickle [ Mon Oct 20, 2014 11:26 am ]
Post subject:  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?

Author:  santi_93 [ Sun Nov 02, 2014 2:17 pm ]
Post subject:  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.

Author:  Celauran [ Sun Nov 02, 2014 4:34 pm ]
Post subject:  Re: PHP Algorithm for Destination.

You could create a bounding box and then use the Haversine formula on results inside that box.

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group