You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is valid to not provide locations and instead use location_index keys to refer to custom matrices row/columns. In that case:
when no matrix is provided, we issue a relevant error;
if only a durations matrix is provided, it is used for costs too;
if only a costs matrix is provided, we should report an error too.
In the latter situation, we still try to compute the durations matrix using a routing engine but the code crashes since no location is provided. Example when changing durations to costs in example_2 in debug mode:
jcoupey
changed the title
Unhandled error with no location index provided and costs matrix only
Unhandled error with no location provided and costs matrix only
Nov 17, 2022
It is valid to not provide locations and instead use
location_index
keys to refer to custom matrices row/columns. In that case:durations
matrix is provided, it is used forcosts
too;costs
matrix is provided, we should report an error too.In the latter situation, we still try to compute the
durations
matrix using a routing engine but the code crashes since no location is provided. Example when changingdurations
tocosts
inexample_2
in debug mode:Using v1.12.0, the outcome is a bit cleaner but the error message is totally obscure:
The text was updated successfully, but these errors were encountered: