@tobias_conrad and @auludag,
Thank you for your analysis and suggestions. I spent a while looking into this today.
I really want to avoid messing with the checkout fields like adding a street number field since that will likely cause conflicts with other plugins, or would mess up the styling.
Plus, that kind of solution makes the checkout form even more complex, which goes against the whole purpose of this plugin… to make checkout simple and fast.
Please consider that most of the world has the street number at the beginning before the street name, so for most people, they will not run into the issue you demonstrated because they enter their street number in first. I would rather keep it clean and simple for the majority of users.
Anyway, I can see that something needs to be done because you’re not the first to bring this up.
I was digging into the “types” parameter of the Google Places Autocomplete API because according to the docs, it sounds like that should only allow returning of precise addresses.
HOWEVER, after much troubleshooting, it turns out that it’s actually working as Google intended, but not as I envision it. After changing the “types” parameter from “geocoding” to “address”, it now doesn’t show zip codes and cities in the results, but it will still show a street name without a number. Apparently Google classifies that as a precise address???
So, the solution I came up with is to alert the customer if they select an address that is not considered a “street_address” type of place. I released version 1.9.8 which includes this new feature. After you update, you will need to go to the settings page and enter your warning text to enable it.
Let me know what you think about this solution. Thanks.