主权项 |
1. A method comprising:
by a server, sending at a pre-determined polling frequency an activation signal waking from a sleep mode an application on a mobile computing device and causing the application to activate a location service of the mobile computing device for a time period of a pre-determined sampling duration; by the server, receiving location data from the mobile computing device after the pre-determined sampling duration to determine a travel distance of the mobile computing device; by the server, determining the travel distance of the mobile computing device based on the received location data; and by the server, adaptively adjusting the pre-determined polling frequency and pre-determined sampling duration based at least in part on the determined travel distance of the mobile computing device such that:
when the travel distance is determined to be more than a pre-determined travel distance, increasing the pre-determined polling frequency and decreasing the time period of the pre-determined sampling duration, and sending, by the server, the activation signal with the adjusted pre-determined polling frequency and activating the location service for the adjusted pre-determined sampling duration;when the travel distance is determined to be less than or equal to the pre-determined travel distance, decreasing the pre-determined polling frequency and increasing the time period of the pre-determined sampling duration, and sending, by the server, the activation signal with the adjusted pre-determined polling frequency and activating the location service for the adjusted pre-determined sampling duration; andwhen the determined travel distance is below a measurement accuracy of a global positioning system (GPS) function of the mobile computing device, decreasing the pre-determined polling frequency and increasing the time period of the pre-determined sampling duration. |