How to take clickable 360 degree tour to explore the area I know how to take 360 view photos on android like this one.

But I am not getting how can take 360 pictures which will allow me to click on various location in that picture and after clicking on any location, it opens up another 360 picture, something like this.

Note that first one is simple 360 picture which you can rotate spherically, but you cannot click anywhere in that picture to open new 360 picture taken at that location. While you can do this in second picture.

I am able capture 360 degree photo like the first one. But, how do I capture pictures like second one on Android? Is there any official googleapp?
This appears to be a feature of Google Maps/Street View which has some guidelines for that effect:

From Publish and connect 360 photos with the Street View app:

Step 2: Connect your photos

Your photos may be automatically connected within 24 hours if:


You’ve made and published a set of 360 photos according to these spacing recommendations.
"Geotag 360 photos" is turned on.
You've earned and activated the trusted badge in the Street View app.
You’ve used auto-capture to make indoor 360 photos within two small steps of each other (1 m / 3 ft).
You’ve used auto-capture to make outdoor 360 photos within five steps of each other (3 m / 10 ft).


You can also have the Street View app suggest the five closest 360 photos that you can connect.


Open a published photo.
In the top right, tap More [the three dots]  and then Connect nearby photos.


OR

Connect Photos Yourself


Open the Street View app.
On the "Profile" tab, find a photo and tap Select.
Pick the photos you want:


Choose two photos: Tap the ones that you want to connect.
Choose all photos: In the top right, tap More [three dots] and then Select all.

In the top right, tap More [three dots] and then Connect 360 photos.
Your photos will show up on the map as numbered markers.
Tap and drag each photo to the correct location. Swipe left and right on the photo to see all directions.
To try your new connection, open your photo in the "Profile" tab and tap the white arrow.