Good morning people.
I'm consuming an external api and I'm getting the data as follows:
{
"place_id": "151508663",
"licence": "Data © OpenStreetMap contributors, ODbL 1.0. https://osm.org/copyright",
"osm_type": "way",
"osm_id": "348425570",
"lat": "-22.8799486",
"lon": "-43.1023092803839",
"display_name": "Colégio Nossa Sra das Mercês, Travessa Francisca Ribeiro, São Lourenço, Niterói, Microrregião Rio de Janeiro, Região Metropolitana do Rio de Janeiro, RJ, Região Sudeste, 24130-005, Brasil",
"address": {
"school": "Colégio Nossa Sra das Mercês",
"road": "Travessa Francisca Ribeiro",
"suburb": "São Lourenço",
"city": "Niterói",
"county": "Microrregião Rio de Janeiro",
"state_district": "Região Metropolitana do Rio de Janeiro",
"state": "RJ",
"postcode": "24130-005",
"country": "Brasil",
"country_code": "br"
},
"boundingbox": [
"-22.8806171",
"-22.8792948",
"-43.1025817",
"-43.1019949"
]
}
How can I access each item on this node, I have already tried it:
var id = [];
this.id = res.place_id;
More behind me undefined
Can you help me?