Skip to content

Instantly share code, notes, and snippets.

@karussell
Last active May 10, 2021 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save karussell/c0bf614e77102e7a446d7a929e4be9d5 to your computer and use it in GitHub Desktop.
Save karussell/c0bf614e77102e7a446d7a929e4be9d5 to your computer and use it in GitHub Desktop.
{
"priority": [{
"if": "road_class == MOTORWAY && in_near_cottbus == false",
"multiply_by": 0
}],
"areas": {
"near_cottbus": {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [[
[ 13.84826, 51.6137 ],
[ 13.9746, 51.61375 ],
[ 13.97323, 51.82983 ],
[ 13.84963, 51.83323 ],
[ 13.84826, 51.6137 ]
]]
}
}
}
}
{
"priority": [{
"if": "in_cottbus",
"multiply_by": 0
}],
"areas": {
"cottbus": {
"type": "Feature",
"properties": {},
"geometry": {
"type": "Polygon",
"coordinates": [[
[ 14.31, 51.75 ],
[ 14.34, 51.75 ],
[ 14.34, 51.77 ],
[ 14.31, 51.77 ],
[ 14.31, 51.75 ]
]]
}
}
}
}
{
"priority": [{
"if": "toll != NO",
"multiply_by": 0.1
}]
}
{
"priority": [{
"if": "road_environment == TUNNEL",
"multiply_by": 0.01
}]
}
{
"speed": [{
"if": "true",
"limit_to": 110
}],
"priority": [{
"if": "road_class == MOTORWAY || road_class == SECONDARY",
"multiply_by": 0.4
}]
}
{
"priority": [{
"if": "road_class == STEPS",
"multiply_by": 0
}]
}
{
"priority": [{
"if": "max_width < 1.5",
"multiply_by": 0
}, {
"if": "road_class == PRIMARY",
"multiply_by": 0.2
}]
}
{
"speed": [{
"if": "road_class == MOTORWAY",
"limit_to": 100
}],
"priority": [{
"if": "road_class == RESIDENTIAL",
"multiply_by": 0.5
}]
}
{
"distance_influence": 120,
"speed": [{
"if": "road_class == MOTORWAY",
"limit_to": 110
},{
"if": "road_class == PRIMARY || road_class == SECONDARY",
"limit_to": 70
}],
"priority": [{
"if": "road_class == RESIDENTIAL || road_class == TERTIARY",
"multiply_by": 0.5
}]
}
{
"distance_influence": 120
}
{
"priority": [{
"if": "max_speed >= 50",
"multiply_by": 0.1
}, {
"if": "bike_network == MISSING",
"multiply_by": 0.9
}]
}
{
"speed": [{
"if": "road_class == PEDESTRIAN",
"multiply_by": 0.7
}]
}
{
"priority": [{
"if": "hazmat == NO || hazmat_water == NO",
"multiply_by": 0
}, {
"if": "hazmat_tunnel == D || hazmat_tunnel == E",
"multiply_by": 0
}, {
"if": "max_width < 3 || max_weight < 3.5 || max_height < 4",
"multiply_by": 0
}]
}
{
"priority": [{
"if": "road_environment == FERRY",
"multiply_by": 0.1
}, {
"else_if": "road_class == RESIDENTIAL || road_class == TERTIARY",
"multiply_by": 0.3
}, {
"else_if": "road_class == TRACK",
"multiply_by": 0
}]
}
{
"priority": [{
"if": "foot_network == MISSING",
"multiply_by": 0.5
}]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment