문제

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.

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top