DaniloArg Member Mar 6, 2023 #1 Hi guys. I am new in b4a. Testing the Erel example for google api autocomplete app, I found that many valid addresses are not found by this api. The code: Dim country As String = "country:"&Main.glb_default_country j.Download2("https://maps.googleapis.com/maps/api/place/autocomplete/json", _ Array As String("input",New,"language","es","components",country,"types","address","key",GoogleApiKey)) but I can't find the error in usage of this api. Question: Could it be that I use the constraints on the array incorrectly and that's why it doesn't find many addresses? Thanks in advance
Hi guys. I am new in b4a. Testing the Erel example for google api autocomplete app, I found that many valid addresses are not found by this api. The code: Dim country As String = "country:"&Main.glb_default_country j.Download2("https://maps.googleapis.com/maps/api/place/autocomplete/json", _ Array As String("input",New,"language","es","components",country,"types","address","key",GoogleApiKey)) but I can't find the error in usage of this api. Question: Could it be that I use the constraints on the array incorrectly and that's why it doesn't find many addresses? Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2023 #2 Please use [code]code here...[/code] tags when posting code. What is the value of New? Upvote 0
DaniloArg Member Mar 7, 2023 #3 Hi Erel. I think my problem has to do with place names having accents and other special characters. My question now is can the api be configured to ignore accents in search predictions? Have you ever done it? Example: <components> or something similar. Thanks Erel. Upvote 0
Hi Erel. I think my problem has to do with place names having accents and other special characters. My question now is can the api be configured to ignore accents in search predictions? Have you ever done it? Example: <components> or something similar. Thanks Erel.
Erel B4X founder Staff member Licensed User Longtime User Mar 8, 2023 #4 I don't see an option to ignore accents but I haven't looked too much in Google's documentation. It is here: https://developers.google.com/maps/documentation/places/web-service/autocomplete Upvote 0
I don't see an option to ignore accents but I haven't looked too much in Google's documentation. It is here: https://developers.google.com/maps/documentation/places/web-service/autocomplete
DaniloArg Member Mar 30, 2023 #5 Erel said: I don't see an option to ignore accents but I haven't looked too much in Google's documentation. It is here: https://developers.google.com/maps/documentation/places/web-service/autocomplete Click to expand... Thank you very much Erel. You are very helpful Upvote 0
Erel said: I don't see an option to ignore accents but I haven't looked too much in Google's documentation. It is here: https://developers.google.com/maps/documentation/places/web-service/autocomplete Click to expand... Thank you very much Erel. You are very helpful