本帖最后由 pzx521521 于 2020-10-26 17:08 编辑
你说的和python 没有任何关系哦
geojson 就是一个特殊的json 格式
你在features直接再加一个feature就好了 里面就是gps坐标(不知道要不要转换, 像baidu/高德 的, gps 是用的中国的加密标准 要转换的)
如;[JavaScript] 纯文本查看 复制代码 {
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
474.31628465652466,
30.579221088252535
],
[
474.31332349777216,
30.57608054575036
],
[
474.3167352676391,
30.573106173486636
],
[
474.3199753761292,
30.576671714462982
],
[
474.31649923324585,
30.579221088252535
]
]
}
},
{
"type": "Feature",
"properties": {},
"geometry": {
"type": "LineString",
"coordinates": [
[
474.3164348602295,
30.57962750396658
],
[
474.3117141723632,
30.57491667181562
],
[
474.3166708946228,
30.57090766579193
],
[
474.3211984634399,
30.57665324049528
],
[
474.3165850639344,
30.57964597736766
]
]
}
}
]
}
|