Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"View in Street View" didn't bring me to the proper pano #3607

Closed
jonfroehlich opened this issue Aug 3, 2024 · 4 comments · Fixed by #3608
Closed

"View in Street View" didn't bring me to the proper pano #3607

jonfroehlich opened this issue Aug 3, 2024 · 4 comments · Fixed by #3608

Comments

@jonfroehlich
Copy link
Member

jonfroehlich commented Aug 3, 2024

I love the "View in Street View" option that we have; however, I ran into a problem with it this morning.

In Gallery, I was viewing this image:
image

Then I clicked on "View in Street View"
image

But if you click on that link, you get the following with a message "No street view imagery available here":
image

From looking at the image and street intersections, I was able to derive the actual location, which is (Google Maps Link):
image

Any ideas why this might have happened @misaugstad? Is this just a one-off problem or did GSV maybe change their API a bit? Or why can't we access the exact pano? It seems like it does indeed exist here.

@misaugstad
Copy link
Member

Oh that's really weird, I'm not sure what's going on! I just tried this out and managed to reproduce a few times. At least with the ones that I was able to do, the images were at approximately the same location, just from a different period in time. Though from your example it looks like it might be a totally different location.

@jsomeara
Copy link
Collaborator

jsomeara commented Aug 5, 2024

It works when setting the pano parameter to the pano id instead of specifying the viewpoint coordinate.

Example:

https://www.google.com/maps/@?api=1&map_action=pano&heading=100.06115868735137&pitch=-8.92242188029158&pano=-5CroQWZ8xZZl-NGKuIPxQ

Are there any downsides of switching to pano instead of viewpoint? (If not, I can make a PR with the fix)

@misaugstad
Copy link
Member

It works when setting the pano parameter to the pano id instead of specifying the viewpoint coordinate ... Are there any downsides of switching to pano instead of viewpoint? (If not, I can make a PR with the fix)

No idea why we wouldn't have been using the pano ID already, so we would definitely welcome a PR!

@jsomeara
Copy link
Collaborator

jsomeara commented Aug 5, 2024

Made a PR: #3608

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants