Using navigation
Till now, we have only learned about displaying locations, and searching for places of interest such as restaurants, beach resorts, and fuel filling stations using the native Google Maps application. Now, we are moving a step further. We are going to learn about navigation using the Google Maps application. It is a tedious task to design our own navigation application from scratch. So, if we want to develop and deploy an application as fast as possible, we can use the native Google Maps application. Let's learn about this in the forthcoming sections.
To search and display a location, we used the keyword geo
in the Intent request. Similarly, now we need to use the google.navigation
keyword.
Two parameters can be passed, they are:
q
mode
The street address, or the latitude and longitude coordinates, can be passed through the q
parameter. The navigation modes can be passed through the mode
parameter. Three values can be given to the mode parameter as follows:
d
indicates drivingw...