You can now provide an external cost matrix embedded in the request JSON:
"cost_matrices": [
{
"profile": "bike",
"type": "default"
},
{
"profile": "car",
"location_ids": ["gera", "erfurt", "berlin"],
"data": {
"times": [ [ 0, 5000, 4000 ],
[ 5000, 0, 1000 ],
[ 4000, 1000, 0 ]
],
"distances": [ [ 0, 55000, 34000 ],
[ 45000, 0, 11000 ],
[ 34000,11000, 0 ] ]
}
}
]
This is interesting if you need the route optimization for indoor or have better real time information available. Distance and time matrices are necessary. See the full documentation here