The first thing that a user needs to know when he opens the map is where he is on the map. Getting the user's current location helps him to get an idea of his location, nearby places, and points of interest. To respect the user's privacy, apps can't get the user's current location without the user granting them access to it. In this section, we will see how to ask for permission to access location services and display the current location to the user.
To help display the current location, perform the following steps: