Question

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.

Was it helpful?

Solution

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top