Overpass API Documentation
Go to file
dancingCycle f729e4e3c8 feat: add relation-bus-lehndorf-watenbuettel.txt 2024-04-17 11:15:25 +02:00
amenity-vending-machine feat: adjust amenity-vending-machine/area-vbn.txt 2024-04-12 09:39:09 +02:00
bus-stop feat: extend folder bus-stop 2024-04-12 11:32:55 +02:00
public-bookcase feat: add folders 2024-02-28 22:05:09 +01:00
query/cli refactor 2023-12-31 13:54:32 +01:00
restaurant feat: add folder restaurant 2024-03-13 15:41:20 +01:00
second-hand feat: adjust second-hand/area-bs-second-hand.txt 2024-03-27 16:13:12 +01:00
tickets-public-transport feat: extend queries 2024-04-12 12:00:08 +02:00
vegan feat: add folders 2024-02-28 22:05:09 +01:00
vegetarian feat: add folders 2024-02-28 22:05:09 +01:00
vending-public_transport_tickets feat: extend queries 2024-04-12 12:00:08 +02:00
vending-public_transport_tickets-nwb feat: add folder vending-public_transport_tickets* 2024-04-02 11:35:10 +02:00
workshop feat: add folders 2024-02-28 22:05:09 +01:00
zero-waste feat: add folders 2024-02-28 22:05:09 +01:00
.gitignore feat: move content from notes here 2023-09-07 15:45:46 +02:00
LICENSE Initial commit 2023-09-05 15:14:08 +02:00
readme.md feat: add query/cli/area-vrb-bike-ride.txt 2023-09-08 15:25:21 +02:00
relation-bus-lehndorf-watenbuettel.txt feat: add relation-bus-lehndorf-watenbuettel.txt 2024-04-17 11:15:25 +02:00

readme.md

overpass-api

Git Repository

Language Documentation

Overpass QL

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

Link

[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>

Examples

Use Bounding Box to limit output

Use Area to limit output

Use Around to limit output