1.8 KiB
1.8 KiB
overpass-api
Endpoints
https://overpass-api.de/api/interpreter
http://overpass-api.de/api/interpreter
https://z.overpass-api.de/api/interpreter
https://overpass.kumi.systems/api/interpreter
https://lz4.overpass-api.de/api/interpreter
Overpass-Turbo
[out:json][timeout:60];
(
node[uic_ref=8000050];nwr[shop=ticket]["tickets:public_transport"!=no](around:500);
node[uic_ref=8000050];nwr[amenity=vending_machine][vending=public_transport_tickets](around:100);
);
out body center qt;
URL Encoding
- URL encoding for e.g. browser
https://overpass-api.de/api/interpreter?data=
- URL encoding for curl
curl -X GET --location '<enter endpoint>' --header 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'data=<enter Overpass QL input>'
- URL encoding for browser
https://overpass-api.de/api/interpreter?data=<enter Overpass QL input>
Wget
wget -O <result file> --post-file=<query file> <endpoint>