Repository navigation
Add entrances to parking lots that are unconnected in OSM - #4666
Conversation
dc0a317 to
fc308e7
Compare
|
cc @hbruch |
optionsome
left a comment
There was a problem hiding this comment.
At least for me, this feels like a generic improvement so I don't think this needs to be put behind a configuration parameter
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev-2.x #4666 +/- ##
=============================================
- Coverage 60.89% 60.87% -0.03%
- Complexity 12327 12337 +10
=============================================
Files 1594 1594
Lines 63761 63828 +67
Branches 6998 6999 +1
=============================================
+ Hits 38827 38855 +28
- Misses 22753 22795 +42
+ Partials 2181 2178 -3 ☔ View full report in Codecov by Sentry. |
Co-authored-by: Hannes Junnila <hannes.junnila@gmail.com>
5e1332b to
1e297a2
Compare
| OSMWithTags entity, | ||
| boolean isCarPark | ||
| ) { | ||
| var geoms = group.areas.stream().map(a -> a.jtsMultiPolygon).toArray(Geometry[]::new); |
There was a problem hiding this comment.
We could store u as geometry or something similar for the AreaGroup here, and not need to recompute it again.
There was a problem hiding this comment.
Don't AreaGroups end up in the graph so this would increase memory, wouldn't it?
There was a problem hiding this comment.
No, AreaGroups is not part of the graph
There was a problem hiding this comment.
They are used only for the input parameter for ParkingProcessor and in buildWalkableAreas.
There was a problem hiding this comment.
I've implemented it. Did you want to store the multipolygon or the union of it?
9809573 to
2dd9293
Compare
67423c6 to
53c2ae9
Compare
Summary
Right now if a parking area is not linked to the street network OTP discards it. However, it's a pretty common occurrence that no entrance ways are mapped.
This PR adds an artificial entrance vertex if none exists in OSM and then lets the street linker do the link to the centroid of the parking facility.
If it turns out that this is an unwanted default I can add a build config parameter.
Issue
Closes #1562
Unit tests
Added.