Hello everyone! I search google map for specific places with custom action and using google place api using textsearch method. The test request is working correctly. Further, the found data is saved into a new Collection. But for some reason, only one record is saved to the database, and not all that were found. The next time the button is pressed, only one more entry is created. The Google documentation says about a limit of 20 requests, but not one (((
Please tell me this is Adalo’s features or I’m doing something wrong
I think it’s not possible to save an “array” of records from the Custom action, Adalo always takes only the 1st result.
You can try to use External Collections instead, though constructing the request to Google API will be a bit cumbersome.
But it should be possible - I remember one time I was displaying several pictures from Google Maps Places API, for one place. So in theory same approach could work with places themselves.
Victor, thank you very much for your quick review! I also thought about it today. Maybe I’ll use an external collection like airtable. I will pull data into it using integromat. And then from it to adalo. No code is not looking for easy solutions)))
Such approach is possible: you even don’t need Airtable - you can use Integromat directly to get the records from Google API, then iterate them one-by-one and put to Adalo collection.
I was meaning a bit different thing: you can try to add Google Places as an external collection by itself. If it returns the list of results under some key, it could work. For places’ pictures it worked
The question is how costly it will be in a long-run - I’m unaware of the prices.
Hi Victor! I need help if possible ))) I’m trying to connect the library as you wrote, but I don’t understand which API URL to insert. Maybe you can take a screenshot of your example or can you tell me where you can read this? I read the documentation about Google Place Library, the call goes through Java Script.
I think I used this one: Place Details | Places API | Google Developers
The way it worked was to get the JSON with details from Places API, and pass the query for the place via Auth param in the external collection’s settings.