@charles From what I can tell, you are calling https://app.snipcart.com/api/localization/addresses/...
to ālocalizeā the addresses.
But Iām not sure why exactly are you doing that since Google already sends you the local address. No matter where the webshop is, the addresses should be in their native format, and Google provides you with exactly that (formatted_address
is in the correct format).
I guess youāre using Address Component Types to fill the fields for checkout - in that case, the simplest solution would be to compare the formatted_address
with the one you can recreate, and see if its street_number route
(e.g. 226 Rue Saint-Joseph E) or the other way around.