Panoramic API ID for the Google Maps API

The URL of previous implementations of photosphere panoramas contained a panorama identifier, which made it easy to embed a specific panorama in an iframe. I can’t track the identifier in the new Google Maps. Is there a way to identify an identifier for the photosphere without resorting to Javascript?

+2
source share
3 answers

I can find the ID twice. Here is an example:

www.google.de/maps/place/Magdeburg/@52.1285424,11.6312738,3a,75y,98h,90t/data=!3m8!1e1!3m6!1s _k_6ZCbrOuYAAAQo8TPM1w ! 2e0! 3e2! 6s% 2F% 2Fgeo3.ggpht.com% 2Fcbk% 3Fpanoid% 3D _k_6ZCbrOuYAAAQo8TPM1w % 26output% 3Dthumbnail% 26cb_client% 3Dmaps_sv.tactile.gps% 26thumb% 3D2% 26w% 3D203% 2695% 3D28% 3D953% 98fwa 7i13312 8i6656 4m2 3M1 1s0x47a5f5ff55daea5b: !!!!!! 0x4236659f8071060 6m1 1e1

I got the url by clicking hte yellow guy (in the lower right bottom corner) and clicking one of the orange spots of the panorama

0
source

You can use chrome or other browser DOM verification tools.

  • Open the link for the photosphere / url in chrome.
  • You will see a thumbnail gallery below, your panorama will be one of them with a 360 icon
  • Right click on this thumbnail and click on “inspect” and the chief inspector will open
  • Keep expanding the DOM tree until you reach this DIV with class = "widget-runway-card-background-flicker-hack-wrapper"
  • You will see the image element inside, copy its image URL. This is the same as the photosphere thumbnail that you are viewing in the gallery.

The URL will be one of the following formats (these are dummy)

Case A:
https://lh4.googleusercontent.com/ -HXKCf8vxJ-s / Ve_c7LX8HyI / XXXXXAAxtg / J4tLscU2d6g / w203-h101-nk-no /

Case B:
https://geo0.ggpht.com/cbk?cb_client=maps_sv.tactile&authuser=0&hl=nl&output=thumbnail&thumb=2&w=200&h=150&pitch=0&ll=55.2399803333%2C1.851848888888867&panoidJOAWOAWOJOQOAWOFOWOFOWA

For case A: Add "F:" to the bold line and you will get the final panoID, i.e.

F: -HXKCf8vxJ-s / Ve_c7LX8HyI / XXXXXAAxtg / J4tLscU2d6g

For case B, this is very obvious, FEpIAbSgOzoAAAQJOQCL3w.

0
source

Complete the following from the developer tool console by viewing the panorama on Google Maps.

"F:".concat(window.location.href.split("!1s")[1].split("!2e")[0]).replace('%2F','/') 
0
source

Source: https://habr.com/ru/post/986122/


All Articles