I'm using PHP to construct a URL to google maps, a really simple little thing. I am doing it like this right now, which only falls short because it takes two clicks to get to street view (click once on link, then when arriving, click on the thumbnail of the streetview):
$map_link = '<a href="https://maps.google.com?q=' . $address_string . '">' . $name . '</a>';
However, I'd really like the link to go straight to the default streetview in full screen without having to click the thumbnail. Looking here (https://developers.google.com/maps/documentation/urls/guide#street-view-action) they say I can use this:
https://www.google.com/maps/@?api=1&map_action=pano¶meters
where for parameters I need to include at least one or the other of viewpoint or pano. I'm not looking for a specific image, I just want the default view, so not going to be using pano. But I don't have this info. Google already knows the viewpoint (latitude/longitude) specific to an address, because it appends it to the URL automatically when you search by JUST the address! So why do they want ME to tell THEM the information THEY are the ones in possession of? Clearly there's got to be a simple way to do this without some complicated look-up process?
I feel like I should be able to obtain this view from google by passing only the address, since that is sufficient for Google to uniquely identify the address and they display the street view already on the page we land on, but I just want it to fill the screen, to save a click when arriving there. This is for an admin page, not to be accessed by end-user. If there's a way to do this not documented in the obvious place, please someone enlighten me! Thanks!