我有GeoJSON数据类型Point。我需要每年保存此数据。我能否将GeoJSON数据的价值作为2019年的关键要素?还可以将Year添加为键将其存储在MongoDB中作为GeoJSON吗?
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -84.948674,40.658322 ]
},
"properties": {
"County":"Adams",
"StopName":"Berne County ",
"DateCompleted":"08.07.2019 "
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -85.054285,41.081241 ]
},
"properties": {
"County":"Allen",
"StopName":"Multiple events ",
"DateCompleted":"02.19.2019 "
}
}]
}
以2019年为关键的JSON数据
{ "2019":{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [ -84.948674,40.658322 ]
},
"properties": {
"County":"Adams",
"StopName":"Berne County Chamber Luncheon",
"DateCompleted":"08.07.2019 "
}
}]
}