Skip to content

Use Access Tags, in particular destination - #875

Merged
karussell merged 6 commits into
graphhopper:masterfrom
boldtrn:issue_733
Nov 22, 2016
Merged

karussell merged 6 commits into
graphhopper:masterfrom
boldtrn:issue_733

Conversation

@boldtrn

@boldtrn boldtrn commented Nov 17, 2016

Copy link
Copy Markdown
Member

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.

@karussell karussell left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice - thanks!

@@ -37,6 +37,9 @@ public class CarFlagEncoder extends AbstractFlagEncoder {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice, haven't seen that before, thanks.

* @author Peter Karich
*/
public class DataFlagEncoder extends AbstractFlagEncoder {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes sure, added a test.

@karussell karussell added this to the 0.9 milestone Nov 17, 2016
@karussell

Copy link
Copy Markdown
Member

Thanks!

@karussell
karussell merged commit 64174e5 into graphhopper:master Nov 22, 2016
@boldtrn
boldtrn deleted the issue_733 branch October 6, 2017 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for restriction value 'destination' for car

2 participants