-
Notifications
You must be signed in to change notification settings - Fork 0
/
overpass_queries_and_style.txt
85 lines (76 loc) · 3.79 KB
/
overpass_queries_and_style.txt
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“crossing=unmarked in Badalona”
*/
[out:json][timeout:35];
// fetch area “Badalona” to search in
{{geocodeArea:Badalona}}->.searchArea;
// gather results
(
// query part for: “crossing=unmarked”
node["crossing"="unmarked"](area.searchArea);
// query part for: “"obstacle:wheelchair"=yes”
node["obstacle:wheelchair"="yes"](area.searchArea);
// query part for: “wheelchair=no and highway=footway”
way["wheelchair"="no"]["highway"="footway"](area.searchArea);
// query part for: “wheelchair=no and shop=*”
node["wheelchair"="no"]["shop"](area.searchArea);
// query part for: “wheelchair=yes and shop=*”
node["wheelchair"="yes"]["shop"](area.searchArea);
// query part for: “wheelchair=limited and shop=*”
node["wheelchair"="limited"]["shop"](area.searchArea);
);
// print results
{{style:
node[crossing=unmarked]{
icon-width: 20;
icon-image: url('https://github.com/yopaseopor/accessibilitat/raw/master/icons/crossing_unmarked.png');
text: name;
}
node[obstacle:wheelchair=yes]{
icon-width: 20;
icon-image: url('https://github.com/yopaseopor/accessibilitat/raw/master/icons/obstacle_wheelchair_yes.png');
text: wheelchair:description;
}
way[wheelchair=no][highway=footway]{
color:red;
opacity:0.5;
text: wheelchair:description;
}
node[wheelchair=no][shop]{
icon-width: 20;
icon-image: url('https://github.com/yopaseopor/accessibilitat/raw/master/icons/wheelchair_no_shop.png');
}
node[wheelchair=yes][shop]{
icon-width: 20;
icon-image: url('https://github.com/yopaseopor/accessibilitat/raw/master/icons/wheelchair_yes_shop.png');
}
node[wheelchair=limited][shop]{
icon-width: 20;
icon-image: url('https://github.com/yopaseopor/accessibilitat/raw/master/icons/wheelchair_limited_shop.png');
text: wheelchair:description;
}
}}
out body;
>;
out skel qt;
=================
CODI MAPA
var icon_crosing_no = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/crossing_no.png';
var icon_unmarked = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/crossing_unmarked.png';
var icon_uncontrolled = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/crossing_uncontrolled.png';
var icon_traffic_signals = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/crossing_traffic_lights.png';
var icon_obstacle_wheelchair = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/obstacle_wheelchair_yes.png';
var icon_shop_no_wheelchair = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/wheelchair_no_shop.png';
var icon_shop_yes_wheelchair = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/wheelchair_yes_shop.png';
var icon_shop_limited_wheelchair = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/wheelchair_limited_shop.png';
var icon_handrails_left = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/handrails_left.png';
var icon_handrails_center = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/handrails_center.png';
var icon_handrails_right = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/handrails_right.png';
var icon_kerb_flush = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/kerb_flush.png';
var icon_kerb_lowered = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/kerb_lowered.png';
var icon_kerb_raised = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/kerb_raised.png';
var icon_ramp = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/ramp.png';
var icon_ramp_stroller = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/ramp_stroller.png';
var icon_ramp_wheelchair = 'https://github.com/yopaseopor/accessibilitat/raw/master/icons/ramp_wheelchair.png';