by Ciantic · 4y ago · 0 comments
I would prefer the routing algorithm as WASM module so that routing apps can be done as static web sites. It's not that expensive algorithm after all.
Only hard part was splitting the dataset as static files, but it was neatly tiled already so it shouldn't be too hard.
BRouter works by relying on segments (relevant extracts from the OSM data, in a custom format) of 5x5 latitude/longitude degrees. See https://github.com/abrensch/brouter/blob/f3895791766dfcd7cd0... for their creation (full doc https://github.com/abrensch/brouter/blob/1765ec45230e337319c...).
From my knowledge of the BRouter codebase and past contributions, it should not be a big deal to move from 5x5 to something more web tractable (as 1x1 latitude/longitude).