Hello,
i want to see all McDonlad´s which got a Pharmacy in an 100 meter Radius. What do i need to write to get only the McDonlad´s within this parameters?
Thanks for your help
Hello,
i want to see all McDonlad´s which got a Pharmacy in an 100 meter Radius. What do i need to write to get only the McDonlad´s within this parameters?
Thanks for your help
Looking at Overpass API/Overpass QL - OpenStreetMap Wiki something like this?
[out:xml][bbox:{{bbox}}];
nwr[amenity=pharmacy]->.pharmacies;
nwr(around.pharmacies:100)[amenity=fast_food][name="McDonald's"];
out center;
How do i search in a area like a Country oder a City?
something like that?
[out:xml];
{{geocodeArea:Barcelona}}->.searchArea;
nwr[amenity=pharmacy](area.searchArea)->.pharmacies;
nwr(around.pharmacies:100)[amenity=fast_food][name="McDonald's"];
out center;
Exactly! On the Map i only see McDonald´s. Is there a way to see both?
More and more complicated for me, i only know the basics
[out:xml];
{{geocodeArea:Barcelona}}->.searchArea;
nwr[amenity=pharmacy](area.searchArea)->.pharmacies;
nwr(around.pharmacies:100)[amenity=fast_food][name="McDonald's"]->.md;
nwr(around.md:100)[amenity=pharmacy]->.ph;
(.md;.ph;);
out center;
{{style:
node[amenity=fast_food] {
color:black;
color-opacy:0.9;
fill-color:red;
fill-opacity:0.3;
}
way[amenity=fast_food] {
color:black;
color-opacy:0.9;
fill-color:red;
fill-opacity:0.3;
}
relation[amenity=fast_food] {
color:black;
color-opacy:0.9;
fill-color:red;
fill-opacity:0.3;
}
node[amenity=pharmacy] {
color:yellow;
color-opacy:0.9;
fill-color:yellow;
fill-opacity:0.3;
}
way[amenity=pharmacy] {
color:yellow;
color-opacy:0.9;
fill-color:yellow;
fill-opacity:0.3;
}
relation[amenity=pharmacy] {
color:yellow;
color-opacy:0.9;
fill-color:yellow;
fill-opacity:0.3;
}
}}