wildtreetech / sentinel2-bot

🛰📷🌏 Tweeting pictures taken by the Sentinel 2 satellite.
https://twitter.com/sentinel2bot
MIT License
36 stars 11 forks source link

Add link to maps at location #37

Open kmader opened 5 years ago

kmader commented 5 years ago

https://twitter.com/Sentinel2Bot/status/1161794634454065152?s=20 Particularly for images like this it would be cool to just zoom in and browse around

betatim commented 5 years ago

So far I didn't add a link because it takes up space in the tweet. But I do frequently want to look on OSM or other maps what the world looks like at one of the pictures ... :-/

PR to see what it would look like?

kmader commented 5 years ago

I could try to make a PR, but getting the signs right is so tedious.

https://www.google.com/maps/@?api=1&map_action=map&center=-46.5,-68.3&zoom=12&basemap=satellite

So if you don't mind patronizing google the URL looks like that, but it's a lot of characters for a tweet, twitter automatically uses t.co for links on its page, does the API automatically do that?