Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow for importing edge length from osm.pbf input #3

Open
zneedell opened this issue Feb 10, 2024 · 0 comments
Open

Allow for importing edge length from osm.pbf input #3

zneedell opened this issue Feb 10, 2024 · 0 comments

Comments

@zneedell
Copy link

For BEAM we use osmnx to clean up an OSM network before reading it into R5. This simplifies the network by removing some intermediate nodes and not keeping link geometries. So, estimating link length based on the distance between start and end node can lead to a big underestimate of total length.

Here:

int edgeLengthMillimeters = getEdgeLengthMillimeters(nodes);
the edge length is calculated based on straight line distance. We should update it to first look for a "length" tag in the edge and only calculate the length if that doesn't exist.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant