Location services can consume smartphone batteries very quickly when left to run in the background. Therefore, the system…