I am working on a geodjango project and need to iterate over the geojson response from the server with javascript so i can pass it onto google maps. I need only coordinates “25.92” and “-80,…” returned from json iteration. I have tried various scripts with no success hoping someone can give me a quick answer.
{ "crs" : null,
"features" : [ { "geometry" : { "coordinates" : [ 25.924292000000001,
-80.124313999999998
],
"type" : "Point"
},
"id" : 1,
"properties" : { },
"type" : "Feature"
} ],
"type" : "FeatureCollection"
}
Where ‘obj’ is the variable representing this object:
Access like this
Assign like this