So I am trying to plot routes on a map using leaflet and their routing library, the data I want to use is like this:
var controlLines = [
{
"geometry":{
"type":"Point",
"coordinates":[[-3.182125,51.489367],[-3.20473,51.50113],...]},
"type":"Feature",
"properties":{"User_ID":100329776}
},...
];
I have over 3,000 user id entries and I need to have each one to have its own route using their coordinate data for the waypoints.
My question is what is the best method to import and parse the data for the use of the routing machine, and is it possible to have each user route be its own path?
The result I am trying to get with the parsing should be something looking like this:
'id' = [
L.latLng('lat','lng'),
... ]
// repeated for each user id
Thank you for your time.