GeoChatter / GeoChatter-Summary

GeoChatter game summary pages
https://geochatter.tv/results/
Apache License 2.0
0 stars 0 forks source link

Provide google maps links for embeds to cover for empty/broken panoids #10

Open ghost opened 2 years ago

ghost commented 2 years ago

Some panoids may be incorrect or empty for both guesses and the round data.

If everything is sent and works as expected:

If panoid is empty or unusable:

s0er3n commented 2 years ago

i added in #15 a link to google maps in case there is no photosphere but i am not sure if we need an extra link to google maps or the street view if the panoid is provided. image you can get both links from the embeded street view

ghost commented 2 years ago

i added in #15 a link to google maps in case there is no photosphere but i am not sure if we need an extra link to google maps or the street view if the panoid is provided. image you can get both links from the embeded street view

You can try using the following link formats:

When streetview is not available, google maps location from coordinates:

https://www.google.com/maps/@?api=1&map_action=pano&viewpoint=${coordinates}

If streetview is available by pano, not entirely sure if we can have the share button in the embed. We can probably figure out from google maps site it links to and add our own direct link.