【发布时间】:2011-04-03 14:52:34
【问题描述】:
我对 JSON 格式非常陌生,在我阅读的教程中,我不太了解如何使用 php 进行解析。所以我有这个:
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-67.593742,
10.24462
]
},
"properties": {
"id": "669163449",
"accuracyInMeters": 0,
"timeStamp": 1301841780,
"reverseGeocode": "Maracay, Venezuela",
"photoUrl": "https://www.google.com/latitude/apps/badge/api?type=photo&photo=Df7VGy8BAAA.9of56owsf4wI6F4odEQ",
"photoWidth": 96,
"photoHeight": 96,
"placardUrl": "https://g=true&stale=false&lod=4&format=png",
"placardWidth": 56,
"placardHeight": 59
}
}
]
}
我想回显坐标和reverseGeocode。谁能帮我指明正确的方向?
【问题讨论】:
-
这些变量有多个实例。你想要哪些?
-
这个“几何”:{“类型”:“点”,“坐标”:[-67.593742, 10.24462]},
-
还有这个:“reverseGeocode”:“马拉凯,委内瑞拉”,
-
对于哪个
features元素?features是一个数组。