Patent ID: 8855665

Claim:
A method comprising: receiving, by a location server, a request from a first device for current location information of a second device at an instance in time; receiving, by the location server, the current location information from the second device, the current location information comprising location coordinates of the second device; accessing by the location server, rules associated with the first device and the second device, the rules comprising (i) permissions for the first device and the second device for dissemination of location information, (ii) granularity of the location information based on a relationship between the first device and the second device, and (iii) a predetermined time duration comprising a start time and a stop time during which the location information can be disseminated; when the first device has permission to access the location information, the second device has permission to share the location information with the first device, and the instance in time is within the start time and the stop time: establishing an active session between the first device and the second device when, based on the location coordinates, a distance between the first device and the second device is within a threshold distance; granting the first device access to the location coordinates of the second device when, based on the rules, the first device satisfies a first relationship with the second device; granting the first device access to general location information of the second device when, based on the rules, the first device satisfies a second relationship with the second device; and restricting the first device from accessing the currently location information of the second device when, based on the rules, the first device satisfies a third relationship with the second device; maintaining the active session and the access to the current location information when the distance is outside the threshold distance; and revoking the access and terminating the active session upon meeting the stop time; when (i) the first device does not have permission to access the location information, (ii) the second device does not have permission to share the location information with the first device, or (iii) the instance in time is outside the time duration: not establishing an active session between the first device and the second device and denying the first device access to the current location information of the second device.