@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.