caching of Google Places API results

前端 未结 3 974
花落未央
花落未央 2021-02-20 02:49

I\'m building a mobile app that lists posts, each post has a place attached to it.

I want the list to be able to show distance from the user\'s location. without caching

3条回答
  •  庸人自扰
    2021-02-20 03:25

    Google's page on Places states that Caching of the Places ID is allowed.

    The terms in 10.5.d state that you may store limited amounts of content for no more than 30 calendar days for performance reasons. Since this is what you are trying to do, then I would expect that you are ok to store the ID, location and name.

    As you start to cache more information then you'll breach the terms of the API. It's not too clear what these are but I think as long as you are being reasonable then you'll be OK.

提交回复
热议问题