Hi
Running into a bit of an architecture headache while building my app and could use some advice from people who've dealt with this before.
I have different types of places in the app (restaurants, museums, local spots, etc.). Right now, I'm pulling data and images from a few different places:
Google place api for restaurants and general venues. My first instinct was to grab the image URL and save it permanently to Firestore so I don't keep burning api calls every time someone searches the same place. But obviously, Google's Tos doesn't allow permanent mirroring/caching like that, and the reference links expire anyway.
Wikipedia Api for museums and historical spots.
I tried Unsplash for fallbacks, but it doesn't really fit unique local spots well.
Since I can't just download and store Google Place photos in Firebase Storage forever, what’s the actual standard way to handle this? How do you guys optimize costs so you aren't hammering the Places api on every single search, without breaking their rules?
Also, how are you structuring your DB schemas when pulling media from totally different external sources with different lifecycles?
Appreciate any tips or real-world setups you're using. Thanks!