我得到了以下Json:
"geometries": [
{
"type": "Polygon",
"coordinates": [
[
[
4.8979805,
52.3798389
],
[
4.8982922,
52.3801447
],
[
4.9027811,
52.378504
]
]
]
},
{
"type": "Point",
"coordinates": [
4.7622823,
52.3095072
]
},
{
"type": "Polygon",
"coordinates": [
[
[
4.4665891,
51.9253793
],
[
4.4700603,
51.926059
],
[
4.4707517,
51.9247593
],
[
4.4706054,
51.9247303
]
]
]
}
]
}
哪个可以有Polygons
和Points
。我正在使用spring for android来解析Json。但是因为它们geometries
有不同的coordinates
类型(双数组数组或双数组数组),我不知道该怎么做。
Json 如果来自外部来源,那么对此无能为力。
谁能帮我?
提前致谢