I have a GeoJSON point file for use in navigation. I need to create a line network connecting the points to their corresponding 'neighbors' in the data. I have looked for any sort of plug in or native algorithm but have not found anything that can perform the connection. Is there a way to do this? Here is a sample of the data.
{
"type": "FeatureCollection",
"features": [
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-122.51407721663476,
37.92935472657569
]
},
"properties": {
"id": "n_59d3a0656850d07d450000fc",
"level": "59d39a1a6850d04750000000",
"neighbors": [
"n_59d3a1c66850d07d4500010c",
"n_59d3a1cd6850d07d4500010d",
"n_59d3a7f26850d07d4500015e"
],
"weight": 1
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-122.51377017089081,
37.92918570092726
]
},
"properties": {
"id": "n_59d3a1c66850d07d4500010c",
"level": "59d39a1a6850d04750000000",
"neighbors": [
"n_59d3a0656850d07d450000fc",
"n_59d3a2f66850d07d4500010f"
],
"weight": 1
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-122.51388322052854,
37.92957582123205
]
},
"properties": {
"id": "n_59d3a1cd6850d07d4500010d",
"level": "59d39a1a6850d04750000000",
"neighbors": [
"n_59d3a0656850d07d450000fc"
],
"weight": 1
}
},
{
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
-122.51414818592386,
37.92934461122832
]
},
"properties": {
"id": "n_59d3a7f26850d07d4500015e",
"level": "59d39a1a6850d04750000000",
"neighbors": [
"n_59d3a0656850d07d450000fc",
"n_59d3a0e46850d07d45000106",
"n_59d3a7f66850d07d4500015f",
"n_59f354f824ee960562000000"
],
"weight": 1
}
}
]
}