Open mvpsaraiva opened 3 years ago
Thanks, @mvpsaraiva.
Including saveShapes
as an option in a new networkBuildConfig
would be interesting. Beyond PointToPoint
mode, this could also allow for more precise path display in Conveyal's publishable stakeholder engagement sites. Without saving shapes, these sites fall back to stop-to-stop lines:
I think this constant SAVE_SHAPES
exists because we had the functionality to save shapes and didn't need it for any current use case, but we didn't want to remove the code, expecting we would have use cases in the future. It is just a hardcoded placeholder parameter. It makes sense to me to promote this to a TNBuilderConfig field.
R5 currently doesn’t save shape information into the network.dat, which is useful for
PointToPointQuery
used byr5r
’sdetailed_itineraries()
function. This could be easily changed in this line, by makingSAVE_SHAPES
not final so we could change it at runtime fromr5r
.Perhaps if you prefer a more robust implementation, like passing a parameter via
TNBuilderConfig
(#644), I'm happy to help.