caching of Google Places API results

前端 未结 3 889
死守一世寂寞
死守一世寂寞 2021-02-20 02:45

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:45

    As per the current policy, the Place Id is exempt from the caching restriction.

    Pre-Fetching, Caching or Storage of contents

    Pre-Fetching, Caching, or Storage of Content Applications using the Directions API are bound by the Google Maps Platform Terms of Service. Section 3.2.4(a) of the terms states that you must not pre-fetch, cache, index, or store any Content except under the limited conditions stated in the terms.

    Note that the place ID, used to uniquely identify a place, is exempt from the caching restriction. You can therefore store place ID values indefinitely. Place ID values are returned in the place_id field in Directions API responses.

提交回复
热议问题