Getting OSM data
Two options for getting OSM data in the app:
- serve the data from a PostGIS DB prepared with osm2pgsql
- get the data directly from overpass-turbo
The latter is the easiest and would fit with the requirement of the project (dev of a POC)
Here's an overpass query to look after bicycle ramp (a way tagged with ramp:bicycle=*) around railway platforms in Belgium:
[out:json][timeout:600];
{{geocodeArea:Belgium}}->.searchArea;
(
(
(
nwr["railway"="station"]["station"!="subway"]["tram"!="yes"](area.searchArea);
nwr["railway"="halt"]["station"!="subway"]["tram"!="yes"](area.searchArea);
);
nwr(around:100)["railway"="platform"]["tram"!="yes"]["subway"!="yes"];
);
);
way(around:10)["ramp:bicycle"];
out body;
>;
out skel qt;
In the export functionalities of overpass-turbo.eu, this can be exported as the following standalone url:
https://overpass-api.de/api/interpreter?data=[out:json][timeout:600];area(id:3600052411)-.searchArea;(((nwr["railway"="station"]["station"!="subway"]"tram"!="yes";nwr["railway"="halt"]["station"!="subway"]"tram"!="yes";);nwr(around:100)["railway"="platform"]["tram"!="yes"]["subway"!="yes"];););way(around:10)["ramp:bicycle"];out body;>;out skel qt;>