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
 
[out:xml][timeout:240];
{{geocodeArea:Luxembourg, Luxembourg, Luxembourg}}->.searchArea;
(
  way["highway"="primary"](area.searchArea);
  way["highway"="primary_link"](area.searchArea);
  way["highway"="secondary"](area.searchArea);
  way["highway"="secondary_link"](area.searchArea);
  way["highway"="trunk"](area.searchArea);
  way["highway"="trunk_link"](area.searchArea);
)->.etatique;
way(around.etatique:50)(area.searchArea)[highway][highway!~"^(footway|path|secondary|primary)$"][maxspeed~"^(30|20|10)"]->.zone30;
 
node[highway=crossing](area.searchArea)->.allzebra;
//node[highway=crossing](w.etatique);
node[highway=crossing](w.zone30)->.zebra;
node(w.etatique)(w.zone30)->.croisements;
node.zebra(around.croisements:40)->.zebranearcroisements;
 
//node.croisements(around.zebranearcroisements:40)->.croisementsnearzebra;
//(.croisements; - .croisementsnearzebra;);
 
// print results
 
(
//  .croisements;  
  .zebranearcroisements;
);
 
out meta;
 
// crossing:marking = no
// crossing:marking = red
 
{{style:
 
 
node
{ color:cyan; fill-color:cyan; }
 
node[highway=crossing]
{ color:magenta; fill-color:magenta; }
 
node[crossing=unmarked]
{  icon-image: url('https://osm.janmichel.eu/osmc/generate.pl?osmc=:orange:::!‽?:white&size=20');
icon-width: 20;
}
 
node[crossing:marking=red]
{ icon-image: url('https://osm.janmichel.eu/osmc/generate.pl?osmc=:red:::////:white&size=20'); icon-width: 20;
}
 
node[crossing:marking=no]
{ icon-image: url('https://osm.janmichel.eu/osmc/generate.pl?osmc=:grey:::////:white&size=20'); icon-width: 20;
}
}}
500 m
Leaflet © OpenStreetMap contributors
1