The server also gets user location coordinates and stores it in the database and then it calculates the distance between two mobile devices that is two friends or family members based on the coordinates information stored in the database and sends alert message if the friends are nearer to each other.