DennisOSRM/Project-OSRM — pull request #373 by lonvia (2012-08-20 19:46:32+00:00)
Title: Extended access tag configuration

I played around with bicycle and pedestrian routing and an extended access handling came out of it, maybe it's of use for you.

This adds the ability to handle hierarchical access tags and moves some hard-coded access values into the speed profile configuration to make it less car-centric.

The following configuration options are added to the speed profile:

* *accessTags* - replaces accessTag and is an ordered list of access tags to take into
account. The first tag in the list found will determine the access value.
This allows to model OSM's access hierarchy where a more specific
access tag might override a more general one (e.g. motorcar vs. motor-vehicle vs. vehicle vs. access).
* *accessForbiddenKeys* - unordered list of values that disallow access (similar to
accessRestrictionKeys). Replaces hardcoded values in extractor.
* *accessForbiddenDefault* - unordered list of highway types where access is forbidden unless an
explicit positive access tag is given. Replaces the current hard-coded handling of highway=track.

For example uses see the adapted speed profiles.