Pregunta

I'm trying to tackle this problem about checking whether 2 users are in the same location (could be as big as a region or as small as a suburb) using their addresses. I was just wondering if this is possible?

And if in case I don't have their addresses, can I use GPS to track those two? Is there any API that I could use from Google Maps regarding this?

Cheers.

PS: my app heavily uses PHP and JavaScript.

¿Fue útil?

Solución

You can try to use google geocoding https://developers.google.com/maps/documentation/geocoding/#Geocoding then try to calculate distance between point like it was suggested here: Calculate distance between two points in google maps V3

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top