I am creating a mobile application that lists messages, each post has a place attached to it.
I want the list to be able to show the distance from the user's location. without caching anything that would be required to store a location link for each message, and listing the location geometry from the Google Places API, this sounds like a very bad idea.
I was able to save the place id, link, name and geometry in my db and pass it using my API? it is only for performance purposes
Another implementation may be to cache this data in a local sqlite database on a mobile device, but then the user will have to download information for each undisclosed location, so for a list of X different places, the client will make X api calls, sounds slow and battery loss.
Am I allowed to have a central cache in my db in a table that will be updated every time and evicted if it will not be available if you say 30 days?
source share