Replies: 1 comment
|
Hi,
Shared code plus utility. We are in the process of consolidating everything, see https://github.com/BikeNetKit/BikeNetLib/blob/main/docs/consolidate.md as the first run.
No, just lack of time to harmonize. One definition is planned, we also have issues on this somewhere.
Didn't have time yet to think about it. SortBikeNet is the newest tool, we will have to see how it fits in. First we finish its research paper :) We are very aware of functional overlaps between growbikenet and sortbikenet. Would be nice to harmonize in the future and get rid of code duplicates.
Sure, why not, in the long term. First need to finish the single tools and harmonize them, then we can think about this. |
Uh oh!
There was an error while loading. Please reload this page.
Hi all,
While reviewing GrowBikeNet for JOSS (openjournals/joss-reviews#11446), I read the code of the other BikeNetKit tools to see how GrowBikeNet fits in. That raised a question for the whole family. It's long-term and not part of the review. I only see the code, not the history behind it, so there are probably reasons I'm missing.
What I noticed
The tools are split by city situation: Grow for underdeveloped cities, Link for fragmented networks, Fix for nearly complete ones, Sort for an existing plan. That's a clear story for users. In the code, it shows up as:
pbi→ find candidates → route → rank → export in a ~330-line function. Mainly the candidates and the ranking differ.all_public. The same city gives different street networks per tool.SortBiketakes any graph, can recompute the ranking at each step, and tracks coverage, directness and connectivity. Grow and Fix don't evaluate.An alternative: split the code by stage
The tools would stay as the entry points, on top of a shared core:
Upsides:
Downsides:
An easy experiment: feed GrowBikeNet's candidate network into
SortBikeand see whether it holds up as a shared ranking and evaluation layer.Plans as overlays on a read-only network
If scenarios are to share a network, tools shouldn't modify it. Today GrowBikeNet's reroute step writes
pbi = 1onto the street graph (set_path_to_pbi). Alternatively, a plan could be a small overlay,{osm_edge_id: new_infra_level}per step, on a read-only base network. That would make branching cheap. It would also make a plan a portable object that can be costed, evaluated, passed from one tool to the next, or re-applied to newer OSM data.Questions
SortBike: as its own tool, as a shared layer, or both?Disclosure: I used Claude Code (Claude Opus 5.5) to help explore the codebases and draft text. Findings were checked against the code; the views are my own.
All reactions