bernie-sits
bernie-sits copied to clipboard
Make the form method GET so links to a location are sharable
I'd like to share specific locations, while still pointing people to the site. So when the form is submitted the url might be something like https://bernie-sits.herokuapp.com/?location=niagara%20falls
I guess the drawback is that with sharable links you might get many more requests for duplicate locations and you'd probably want to cache the images for some time, whereas currently visitors are encouraged to download the image and share it themselves.
I'm open to this, though I can say from experience that the google API costs are be the most expensive aspect of deploying this app, and I believe the fact that users can download and share the image did help it get spread quickly! I'm open to this though.
I'd attempt a PR for this but the API token is a bit of a blocker for testing. I'm not familiar with the framework.
I think being able to share images in a way which links back to the site would help the spread too.
Anyway, the moment has probably passed now 😅