I want to use addresses from the Google Place API in my application. Since it is not possible to get the entire database, I wanted to send requests with the maximum radius in each locality and add the name, type and coordinates (or address) to my database.

Is it possible to store such data on an ongoing basis. After searching on the Internet, some people write that you can only store id on a permanent basis, some people write that you can store it for 30 days.

I would like to get specific answers that can be stored (and for how long), and what can not?

Some questions may arise, why you cannot send a request and receive places. Answer: this data will be used for the economic game, so there will be a constant manipulation of this data in the database.

Perhaps you know another building base, but only to have it free

    1 answer 1

    I think it's better to refer to the Google documentation: https://developers.google.com/places/web-service/place-id

    Site IDs are exempt from the caching restrictions specified in section 3.2.4 (a) of the Terms of Use for the Google Maps Platform. Therefore, you can store the location identifier values ​​for later use.

    But

    The place identifier may become obsolete if the business closes or moves to a new location. ... the old id returns a NOT_FOUND answer.

    So you can safely store id. You can store the same data of each place. However, it is necessary to do periodic updates. After all, the data may change.

    • Well, I also read that the identifier can be stored, but you also need to store geographical coordinates and address. Not a word about them. If you store only the identifier in the database, you will have to send the identifier to the service every time with the backend, and there is a limit on a certain number of requests per month - danilshik
    • @danilshik wait, why do you think that there should be recommendations for storing the data on your side? Or am I misunderstanding something? - vasenev.ea
    • The question was about storing data on an ongoing basis. Data includes not only a place identifier, but also other data. Here with them also uncertain is caused. It will be just a shame after developing to lay out the application and Google Play will refuse you. Can someone use this service, or someone already has ready applications with it - danilshik