Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
In Google Places, each place has a specific placeId. We store this placeId and use it to retrieve information about the place as needed. For this approach to work, we need to confirm:
- Is each placeId unique?
- Does Google ever re-use a placeId?
- Does Google ever delete a place from it's places database?
- If they don't delete a place, do they just mark it as "permanently_closed"?
Thanks in advance for any/all help!
Yes, each place has a unique ID.
No google do not re-use IDs. For each place in this world google have unique id for it.
- Depends. Here, what google says,
A place can only be deleted if: 1. It was added by the same application
as is requesting its deletion. 2. It has not successfully passed through
the Google Maps moderation process, and is therefore visible only to
the application that added it.
- "INVALID_REQUEST" is what you get if you search for a place that has been deleted
Also for more info, here is a small notice from Google:
Note: The id and reference fields are deprecated as of June 24, 2014. They are replaced by the new place ID, a unique identifier that can be used to compare places and to retrieve information about a place. The Places API currently returns a place_id in all responses, and accepts a placeid in the Place Details and Place Delete requests. Soon after June 24, 2015, the API will stop returning the id and reference fields in responses. Some time later, the API will no longer accept the reference in requests. We recommend that you update your code to use the new place ID instead of id and reference as soon as possible.
I hope I answered your questions, for more help, kindly comment, I'll reply.
Reference:
https://developers.google.com/places/documentation/search