-
Notifications
You must be signed in to change notification settings - Fork 3
/
constraints.resource.example
54 lines (54 loc) · 1.47 KB
/
constraints.resource.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"id": "constraints",
"values": [
{
# One of: ["name", "numerical", "geometry"]
"keyType": "name",
"key": "wayType",
"availableConstraintType": ["banned"],
"availableValues": [
{
"value": "autoroute",
"field": "acces_vehicule_leger",
"condition": {
# One of ["equal", "inequal", "greater", "greatereq", "less", "lesseq", "like"]
"type": "equal",
"value": "'A péage'"
}
},
{
"value": "tunnel",
"field": "position_par_rappport_au_sol",
"condition": {
# One of ["equal", "inequal", "greater", "greatereq", "less", "lesseq", "like"]
"type": "less",
"value": "0"
}
},
{
"value": "pont",
"field": "position_par_rappport_au_sol",
"condition": {
# One of ["equal", "inequal", "greater", "greatereq", "less", "lesseq", "like"]
"type": "greater",
"value": "0"
}
}
]
},
{
# One of: ["name", "numerical", "geometry"]
"keyType": "geometry",
"key": "exclusionArea",
"availableConstraintType": ["banned"]
# No need for availableValues when geometry
},
{
# One of: ["name", "numerical", "geometry"]
"keyType": "numerical",
"key": "roadWidth",
"availableConstraintType": ["banned"],
"field": "largeur_de_chaussee"
}
]
}