I have a web site where I need to generate link to Google Maps in Street View mode. I have available the coordinates to generate the URL.
When I try this URL in a desktop browser, it does what I want, and takes me to a street in Norway, and activating street view:
When I try exaclty the same URL in a mobile browser, it just ignores the parameters, and redirects to http://maps.google.com . When I try another link that is not streetview, it works.
I noticed it first in an iPad, and then tried in a Samsung Galaxy using Firefox, and same there.
I even tried using Firefox on desktop using the mobile device emulator plugin emulating an iPad, and same there. So it is Google that does this if the user agent reports itself as a mobile device.
Then I tried to navigate to a specific location in Google Maps on the mobile device, and clicked on the street view icon. Then a new window was opened with this URL:
This works for this location, but I need to generate the URL based on coordinates, so I don't have a valid panoid to use. Is panoid the only way to use url parameters for displaying street view on mobile device? If so, is there any API available for generating a panoid based on coordinates?