Please do not mind if this question sounds a little silly!
I'm trying to learn more about the Google Places API. I'm interested in an implementation similar to airbnb.com (check the search function at the top, it shows "powered by google" in autosuggest).
In our address form, we planned to use the autoplay function provided by the Google Places API to fill in the city, region and country (for example, https://www.airbnb.com/rooms/new )
Questions
1) When someone selects a place in the "City" field, what exactly are we allowed to store in our database from the selected Google data? Can we keep the name of the city, its region, country, coordinates, etc. In our database?
2) What about the urls? When viewing numbers, the URLs created on the airbnb website are in the CITY-REGION format (for example, www.airbnb.com/s/Auckland - New-Zealand).
We would like to do something similar. For this, too, do we need to store a unique URL (based on some formula) for each selected location?
3) In our project, we would even like to create breadcrumbs. for example you are here: Oceania> New Zealand> Otago> Queenstown
When we take a city, can we save its region and administrative areas?
4) What is a unique identifier for any Google Place, whether it is an identifier or a link, it is not too clear from the documentation https://developers.google.com/maps/documentation/javascript/places#place_details_results
Any database schemes of such sites will be truly appreciated!
Thanks!
google-places-api geocoding
user3302879
source share