Displaying StreetViewPanorama

Finally, we have reached the last, and one of the most exciting parts of this chapter. In this section, we are going to learn how to launch Street View for our Android application.

We need to use the google.streetview keyword.

The format should be as follows:

google.streetview:cbll=latitude,longitude&cbp=0,bearing,0,zoom,tilt
google.streetview:panoid=id&cbp=0,bearing,0,zoom,tilt

Now, let's discuss the parameters. They are as follows:

  • cbll: This parameter is compulsory. This parameter is used to specify the latitude and longitude as comma separated values. One thing to note is that Google Maps will display the panorama nearest to the specified location.
  • cbp: The cbp parameter is an optional one. This takes five values. This ...

Get Learning Android Google Maps now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.