Repository navigation
Use Access Tags, in particular destination - #875
Merged
Merged
Conversation
karussell
reviewed
Nov 17, 2016
| @@ -37,6 +37,9 @@ public class CarFlagEncoder extends AbstractFlagEncoder { | |||
|
|
|||
Member
There was a problem hiding this comment.
Cannot comment on the faundau_destination.osm.xml file somehow ... so here it goes :)
Can we avoid another osm xml? E.g. I found destination tags in krems.osm.gz or north-bayreuth.osm.gz
Member
Author
There was a problem hiding this comment.
Ah nice, haven't seen that before, thanks.
| * @author Peter Karich | ||
| */ | ||
| public class DataFlagEncoder extends AbstractFlagEncoder { | ||
|
|
Member
There was a problem hiding this comment.
The changes here look nice and reasonable to me - would you mind to add a unit test in combination with the GenericWeighting? (not just the integration test)
Member
|
Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I added parsing of the access=destination tag to the CarFlagEncoder, which intents to fix #733.
I also added parsing of access values to the DataFlagEncoder. Right now this happens only for a car like vehicle. I created sort of 3 categories: ACCESSIBLE, EVENTUALLY_ACCESSIBLE, NOT_ACCESSIBLE. Whereas access values like customers, destination, and so on are EVENTUALLY_ACCESSIBLE.
Right now I add a penalty of factor 10 to edges that are EVENTUALLY_ACCESSIBLE. This could be improved if we would add "geospatial knowledge" to the GenericWeighting. For example if an edge is close to a waypoint, the EVENTUALLY_ACCESSIBLE penalty could be very low, whereas if the edge is far from a waypoint the penalty would be comparably high.