有人知道在mongodb中存储geojson数据的模式是什么,以便将其显示在传单地图上吗?
这是我的geojson数据的示例:
{
"type": "Feature",
"properties": {
"ESTS_code": "2017-10-23-3907 duplicate",
"Sample_Information": "Shoreline Sediment, goobules, sheen, 0-5 cm",
"Latitude": 53.39232,
"Longitude": -109.34763,
"Sum_TPH_mg_g": 0.0312,
"Sum_alkanes_mg_g": 0.00000488,
"Sum_biomarkers_mg_g": 164,
"Sum_APAHs_mg_g": 0.00000355,
"Sum_PAHS_mg_g": "0.00000024",
"Annee": 2017
},
"geometry": {
"type": "Point",
"coordinates": [
-109.34763,
53.39232
]
}
}
我已经尝试过mongodb的手册,但是它不起作用,当我有多个数据时出现错误
error: Uncaught SyntaxError: Invalid destructuring assignment target
谢谢