Add pedestrian-profile files

This commit is contained in:
Pieter Vander Vennet 2020-10-15 20:27:37 +02:00
parent c9a106abfb
commit 3fb6c0f83e
3 changed files with 128 additions and 0 deletions

View file

@ -0,0 +1,78 @@
{
"name": "pedestrian.legal_access",
"description": "Gives, for each type of highway, whether or not someone can enter legally.\nNote that legal access is a bit 'grey' in the case of roads marked private and permissive, in which case these values are returned ",
"unit": "'designated': Access is allowed and even specifically for pedestrian\n'yes': pedestrians are allowed here\n'permissive': pedestrians are allowed here, but this might be a private road or service where usage is allowed, but could be retracted one day by the owner\n'destination': walking is allowed here, but only if truly necessary to reach the destination (e.g. a service road)\n'private': this is a private road, only go here if the destination is here\n'no': do not walk here",
"$default": "no",
"value": {
"$firstMatchOf": [
"anyways:foot",
"anyways:access",
"anyways:construction",
"foot",
"access",
"service",
"highway"
],
"value": {
"access": {
"no": "no",
"customers": "private",
"private": "private",
"#": "Note that we leave out 'yes', as it is meaningless - the default assumption is that everything on OSM is accessible! This forces to fall through to the road type, in order to force `highway=motorway; access=yes` as not to trigger access for bicycles",
"permissive": "permissive",
"destination": "destination",
"delivery": "destination",
"service": "destination",
"permit": "destination"
},
"highway": {
"pedestrian": "designated",
"footway": "designated",
"living_street": "designated",
"steps": "yes",
"corridor": "designated",
"residential": "yes",
"service": "yes",
"services": "yes",
"track": "yes",
"crossing": "yes",
"construction": "permissive",
"path": "yes",
"primary": "yes",
"primary_link": "yes",
"secondary": "yes",
"secondary_link": "yes",
"tertiary": "yes",
"tertiary_link": "yes",
"unclassified": "yes",
"road": "yes"
},
"service": {
"parking_aisle": "permissive",
"driveway": "private",
"alley": "yes",
"bus": "no"
},
"foot": {
"yes": "yes",
"no": "no",
"use_sidepath": "no",
"designated": "designated",
"permissive": "permissive",
"private": "private",
"official": "designated",
"dismount": "dismount",
"permit": "destination"
},
"anyways:foot": "$id",
"anyways:access": {
"no": "no",
"destination": "destination",
"yes": "yes"
},
"anyways:construction": {
"yes": "no"
}
}
}
}

View file

@ -0,0 +1,45 @@
{
"name": "pedestrian",
"description": "Profile for someone who is walking",
"vehicletypes": [
"vehicle",
"foot"
],
"metadata": [
"name",
"bridge",
"tunnel",
"colour",
"ref",
"status",
"network"
],
"access": "$pedestrian.legal_access",
"oneway": "both",
"speed": "#defaultSpeed",
"priority": {
"#timeNeeded": "$speed",
"#distance": "$distance",
"#slow_road_preference": "$pedestrian.slow_road_preference",
"#trespassingPenalty": "$clean_permission_score"
},
"defaults": {
"#defaultSpeed": 4,
"#maxspeed": 6,
"#timeNeeded": 0,
"#distance": 0,
"#slow_road_preference": 0,
"#trespassingPenalty": 1
},
"behaviours": {
"shortest": {
"description": "The shortest route, independent of of speed",
"#distance": 1,
"#leastSafetyPenalty": 2
},
"slow_roads": {
"description": "A route prefering pedestrian-oriented infrastructure",
"#slow_road_preference": 1
}
}
}

View file

@ -0,0 +1,5 @@
access,oneway,speed,priority,highway
no,,,,,
designated,both,4,2,pedestrian,
designated,both,4,1.8,footway
yes,both,4,1,residential,
1 access,oneway,speed,priority,highway
2 no,,,,,
3 designated,both,4,2,pedestrian,
4 designated,both,4,1.8,footway
5 yes,both,4,1,residential,