In a CakePHP (v3) application, how can I retrieve the closest results based on passed lat lng values?
I\'d like to have them back as native CakePHP entities, so some
People might want to look at the CakePHP GeoDistance Plugin:
CakePHP-GeoDistance is a CakePHP 3 behavior for querying geocoded data based on cartographic distance using the spherical cosine law. It is great for 'find my nearest X' or 'find Y near me' type queries.
https://github.com/chris48s/cakephp-geodistance
Did the job.