AspectedRouting/Examples/bicycle/bicycle.json

59 lines
1.2 KiB
JSON
Raw Normal View History

2021-01-27 16:14:10 +01:00
{
"name": "bicycle",
"description": "Profile for a normal bicycle",
2021-01-27 16:24:55 +01:00
2021-01-27 20:08:30 +01:00
"vehicletypes":["vehicle","bicycle"],
"metadata":["name",
"bridge",
"tunnel",
"colour",
"cycle_network_colour",
"cycle_network_ref",
"ref",
"status",
"network" ],
2021-01-27 16:24:55 +01:00
"defaults": {
2021-01-27 20:08:30 +01:00
"#defaultSpeed": 15,
2021-01-27 16:24:55 +01:00
"#timeNeeded": 0,
"#distance": 0,
2021-01-27 20:08:30 +01:00
"#comfort": 0
2021-01-27 16:24:55 +01:00
},
2021-01-27 16:14:10 +01:00
"access": "$bicycle.legal_access",
"oneway": "$bicycle.oneway",
"speed": {
2021-01-27 16:24:55 +01:00
"$min": [
"$legal_maxspeed_be",
"#defaultSpeed"
2021-01-27 16:14:10 +01:00
]
},
2021-01-27 16:24:55 +01:00
2021-01-27 16:14:10 +01:00
"behaviours": {
"fastest": {
"description": "The fastest route to your destination",
2021-01-27 20:08:30 +01:00
"#timeNeeded": 1
2021-01-27 16:14:10 +01:00
},
"shortest": {
"description": "The shortest route, independent of of speed",
2021-01-27 20:08:30 +01:00
"#distance": 1
2021-01-27 16:14:10 +01:00
},
"comfort": {
"description": "A comfortable route preferring well-paved roads, smaller roads and a bit of scenery at the cost of speed",
"#comfort": 1
2021-01-27 20:08:30 +01:00
},
"electric":{
"description": "An electrical bicycle",
"#defaultSpeed": 25,
"#comfort":1,
"#timeNeeded": 5
2021-01-27 16:14:10 +01:00
}
2021-01-27 16:24:55 +01:00
},
"priority": {
"#comfort": "$bicycle.comfort",
"#timeNeeded": "$speed",
2021-01-27 20:08:30 +01:00
"#distance": "$distance"
2021-01-27 16:14:10 +01:00
}
}