lundi 10 septembre 2018

How to group objects based on longitude/latitude proximity using laravel/php

I have a group of users. The user count could be 50 or could be 2000. Each should have a long/lat that I have retrieved from Google Geo api.

I need to query them all, and group them by proximity and a certain count. Say the count is 12 and I have 120 users in the group. I want to group people by how close they are (long/lat) to other people. So that I wind up with 10 groups of people who are close in proximity.

I currently have the google geo coding api setup and would prefer to use that.

TIA.



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2Ml8DRY
via IFTTT

Aucun commentaire:

Enregistrer un commentaire