I'm trying to use Google services to get mailing. The idea is to enter the address or zip and load the data street, neighborhood, zip, city and state.
I've been able to get most of the data, but the zip is not being returned in the output. Here is the service call and the result (I changed the key to remove it, it will not work, but the URI is ok):
{
"predictions" : [
{
"description" : "Avenida Embaixador Abelardo Bueno - Barra da Tijuca, Rio de Janeiro - RJ, Brasil",
"id" : "31fc7076c2289ecf1b100f0a769553d5341ac002",
"matched_substrings" : [
{
"length" : 33,
"offset" : 0
}
],
"place_id" : "ElBBdmVuaWRhIEVtYmFpeGFkb3IgQWJlbGFyZG8gQnVlbm8gLSBCYXJyYSBkYSBUaWp1Y2EsIFJpbyBkZSBKYW5laXJvIC0gUkosIEJyYXNpbA",
"reference" : "CmRUAAAAkQ98koLpBb_VEBonelaZ8iCxYEHtJp0sDeH4gtBzgEnkOs4hpwI7Jaxd0Nq7ZAo1pfsWy9YRLWFkIz0D4EyAZC6ncoK-rQ-dTr9lMWVeFqhZTK50x-zweb3LFcb_zAJDEhD7GsVJdIBYX0_ldipY-272GhSqcdx6p9Ml9BgchUoHct1wglHwqQ",
"structured_formatting" : {
"main_text" : "Avenida Embaixador Abelardo Bueno",
"main_text_matched_substrings" : [
{
"length" : 33,
"offset" : 0
}
],
"secondary_text" : "Barra da Tijuca, Rio de Janeiro - RJ, Brasil"
},
"terms" : [
{
"offset" : 0,
"value" : "Avenida Embaixador Abelardo Bueno"
},
{
"offset" : 36,
"value" : "Barra da Tijuca"
},
{
"offset" : 53,
"value" : "Rio de Janeiro"
},
{
"offset" : 70,
"value" : "RJ"
},
{
"offset" : 74,
"value" : "Brasil"
}
],
"types" : [ "route", "geocode" ]
}
],
"status" : "OK"
Is the zip code not returned? Is there any parameter that determines that the zip code needs to be included?