I’m having the distance cost matrix from the Here Maps API where I’m getting it in the below pattern.
"matrix": {
"numOrigins": 7,
"numDestinations": 7,
"distances": [
0,
1371660,
1095330,
2398157,
1863064,
1057507,
1509647,
1417624,
0,
2470654,
3756006,
862045,
2434034,
2469934,
1104670,
2479180,
0,
1723441,
2909077,
463021,
1844673,
2399422,
3709873,
1713409,
0,
4194674,
1272042,
1970555,
1846938,
853422,
2899968,
4239843,
0,
2862145,
3086316,
1053392,
2432312,
452061,
1273493,
2857799,
0,
1427966,
1509159,
2467407,
1835375,
1971354,
3059758,
1432000,
0
]
How can I use this matrix data and automate it to This format or pickups_and_deliveries_solomon_r101_open.xml or any input format to solve VRP probelm.
In simple terms- How can I use the distance/time cost square matrix input array into jsprit. Is there any code available to automate this task?
Thanks!