Shohreh
(Shohreh)
1
Hello,
I’d like to find all the OV-Fiets bike rentals in the Netherlands.
This query only returns six nodes:
[out:json][timeout:25];
//NL = 47796
rel(47796);map_to_area -> .searchArea;
(
node["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
way["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
relation["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
);
out body;
>;
out skel qt;
Either very few people in the NL bothered adding those locations, or I’m using the wrong query. Any idea?
Thank you.
–
Edit: Turns out 47796 is the State of the NL, while 2323309 is the country. But the latter also returns only six nodes.
AdVerburg
(Ad Verburg)
2
Just change the way to define the searchArea, (this is coming from the query wizard).
{{geocodeArea:Nederland}}->.searchArea;
and remove the timeout.
The whole query looks:
/*
This has been generated by the overpass-turbo wizard.
The original search was:
“amenity=bicycle_rental and name="OV-Fiets" in Nederland”
*/
[out:xml];/*fixed by auto repair*/
// fetch area “Nederland” to search in
{{geocodeArea:Nederland}}->.searchArea;
// gather results
(
// query part for: “amenity=bicycle_rental and name="OV-Fiets"”
node["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
way["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
relation["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
);
// print results
out meta;/*fixed by auto repair*/
>;
out meta qt;/*fixed by auto repair*/
Shohreh
(Shohreh)
3
Thanks, but I’m still only getting six nodes:
[out:xml];
{{geocodeArea:Nederland}}->.searchArea;
(
node["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
way["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
relation["amenity"="bicycle_rental"]["name"="OV-Fiets"](area.searchArea);
);
out meta;
>;
out meta qt;
*Loaded – nodes: 6, ways: 0, relations: 0
Displayed – pois: 6, lines: 0, polygons: 0
*
Hard to believe no one in NL would be interested in contributing those important data to OSM.
–
Edit: Even stranger that NS seems to offer no map of the whole network:
http://www.ov-fiets.nl/huurlocaties
AdVerburg
(Ad Verburg)
4
Indeed.
Without the exact [“name”=“OV-Fiets”] there are found a lot more.
With [“name”~“OV”] this is somewhat limited again. (25)
And yes, here it is not seen that urgent.
Locations can be found at: http://www.ns.nl/en/door-to-door/ov-fiets
Shohreh
(Shohreh)
5
Thanks. I was looking for a map of all the stations in the whole country.