What is the purpose of the $location service?
Also, what is the purpose of the $location service in AngularJS?
$location is an AngularJS service that exposes the current browser URL (obtained from window. location ) through a well-defined API. Besides that, it keeps itself and the URL in sync.
Also question is, should I turn Location Services on or off?
Our recommendation is to use High accuracy mode when you need location services unless you see a significant loss in battery life. And remember, you can always turn location services Off if you would rather not let apps know where you are, but the apps may not work correctly.
Location-based services (LBS) use real-time geo-data from a mobile device or smartphone to provide information, entertainment or security. Some services allow consumers to "check in" at restaurants, coffee shops, stores, concerts, and other places or events.