1
I’m using the json_decode
on top of a Geojson file. All I need is to print on the screen a Feature specific to the file, which has the following structure:
var GEOJSON = {
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "ID": "02", "NOME": "xxxxxxxxx", "TIPO": "xxxxxx", " }, "geometry": { "type": "Point", "coordinates": [ -90.00012544789, -47.012254699888 ] } }, (...)
I have several points with the structure shown, but how do I print on the screen a specific value?
I tried to:
echo $tr->features[0]->properties->ID;
But I couldn’t do it.
Thank you so much shoogie!! Solved 100%, I was already days with this question!
– Daniel Gomes Da Silva Moreira
You’re welcome, I’m glad it worked out!!! D
– Caroline Salib