Adding location_index
field in output where the location
field is present
#625
Labels
Milestone
location_index
field in output where the location
field is present
#625
The
location_index
field is relevant whenever custom matrices are used. It plays a similar role as thelocation
field when the routing engine is used. So, all the objects have both of these fields to be used depending on the situation. However, I see that in the output, only thelocation
field is present (in theunassigned
key, and thestep
object).The user-defined matrices and the
location_index
type of fields were introduced in v1.2.0. Do we have any reasons for omitting thelocation_index
type of field from the output, or is it because this field was not required then, so was not added?I feel that it would be better to also add the
location_index
index field in theunassigned
key, and thestep
object in the output. Firstly, it would look more consistent - both thelocation
andlocation_index
fields could be present in the output, depending on whether the custom matrices or the routing engine is used. Secondly, getting the location index of the task in the output might be useful to the users who are using custom matrices. Obviously, the end-users can get the location index of the task manually, but I think it would be easy to do it in the vroom itself without adding any extra complexity.If this looks okay, I would be happy to submit a PR. :-)
The text was updated successfully, but these errors were encountered: