Slandau,
Available API application Bump and has some similar function. When two phones bump into each other, they use their current location to find out which two phones have collided. Thus, their proximity is calculated to some extent. You should study their APIs and see if you can do something like this. I do not think that there is only a standard API for this, as the privacy / security risks should be obvious.
source
share