Not working on my end either: https://imgur.com/a/Ka8orgt
It just populates the ZIP Code. I know Google Places return funky values for their API, sometimes it works, sometimes it doesn’t. For instance, on this request, this is the Places Response
/**/_xdc_._hegq57 && _xdc_._hegq57( {
"html_attributions" : [],
"result" : {
"address_components" : [
{
"long_name" : "1290",
"short_name" : "1290",
"types" : [ "street_number" ]
},
{
"long_name" : "Rua Jandiroba",
"short_name" : "R. Jandiroba",
"types" : [ "route" ]
},
{
"long_name" : "Patamares",
"short_name" : "Patamares",
"types" : [ "sublocality_level_1", "sublocality", "political" ]
},
{
"long_name" : "Salvador",
"short_name" : "Salvador",
"types" : [ "administrative_area_level_2", "political" ]
},
{
"long_name" : "Bahia",
"short_name" : "BA",
"types" : [ "administrative_area_level_1", "political" ]
},
{
"long_name" : "Brasil",
"short_name" : "BR",
"types" : [ "country", "political" ]
},
{
"long_name" : "41680-040",
"short_name" : "41680-040",
"types" : [ "postal_code" ]
}
],
"formatted_address" : "R. Jandiroba, 1290 - Patamares, Salvador - BA, 41680-040, Brasil",
"geometry" : {
"location" : {
"lat" : -12.9532368,
"lng" : -38.4066948
},
"viewport" : {
"northeast" : {
"lat" : -12.9519433697085,
"lng" : -38.4053713697085
},
"southwest" : {
"lat" : -12.9546413302915,
"lng" : -38.4080693302915
}
}
}
},
"status" : "OK"
}
)
It’s not a trivial task, but if you allow each developer to input their data for their location, maybe in time you can build something that works? I have no ideia how Shopify manages to get it right every damn time.