feat: move content from notes here
This commit is contained in:
parent
586304fb51
commit
b3849d84a5
|
@ -0,0 +1 @@
|
|||
*-rsp.txt
|
|
@ -0,0 +1,5 @@
|
|||
[out:json][timeout:60];
|
||||
relation(4189512);
|
||||
map_to_area;
|
||||
nwr[railway=station][train=yes](area);
|
||||
out body center qt;
|
|
@ -0,0 +1,3 @@
|
|||
[out:json][timeout:60];
|
||||
nwr[railway=station][train=yes](around:5000,52.2915287,12.9845109);
|
||||
out body center qt;
|
|
@ -0,0 +1,4 @@
|
|||
[out:json][timeout:60];
|
||||
node[uic_ref=8000050];
|
||||
node[public_transport=station][railway=station](around:2);
|
||||
out body center qt;
|
|
@ -0,0 +1,10 @@
|
|||
[out:json][timeout:60];
|
||||
(
|
||||
node[uic_ref=8000050];nwr[highway=bus_stop](around:200);
|
||||
node[uic_ref=8000050];nwr[amenity=bicycle_parking](around:200);
|
||||
node[uic_ref=8000050];nwr["park_ride"!="no"]["park_ride"](around:200);
|
||||
node[uic_ref=8000050];nwr[shop=ticket]["tickets:public_transport"!=no](around:500);
|
||||
node[uic_ref=8000050];nwr[amenity=taxi](around:200);
|
||||
node[uic_ref=8000050];nwr[amenity=vending_machine][vending=public_transport_tickets](around:100);
|
||||
);
|
||||
out body center qt;
|
|
@ -0,0 +1 @@
|
|||
[out:json][timeout:60];node[uic_ref=8000050];nwr[shop=ticket]["tickets:public_transport"!=no](around:500);out body center qt;
|
|
@ -0,0 +1,4 @@
|
|||
[out:json][timeout:60];
|
||||
node[uic_ref=8000050];
|
||||
nwr[amenity=vending_machine][vending=public_transport_tickets](around:40);
|
||||
out body center qt;
|
|
@ -0,0 +1,9 @@
|
|||
[out:json]
|
||||
[timeout:60];
|
||||
[bbox:52.13011607781287,9.8822021484375,52.41414736782131,11.174468994140625];
|
||||
(
|
||||
node["zero_waste"="yes"];
|
||||
way["zero_waste"="yes"];
|
||||
relation["zero_waste"="yes"];
|
||||
);
|
||||
out center;
|
|
@ -0,0 +1,8 @@
|
|||
[out:json][timeout:60];
|
||||
[bbox:52.13011607781287,9.8822021484375,52.41414736782131,11.174468994140625];
|
||||
(
|
||||
node["zero_waste"="yes"];
|
||||
way["zero_waste"="yes"];
|
||||
relation["zero_waste"="yes"];
|
||||
);
|
||||
out center;
|
|
@ -0,0 +1,73 @@
|
|||
# overpass-api
|
||||
|
||||
[Git Repository](https://github.com/drolbr/Overpass-API)
|
||||
|
||||
[Language Documentation](https://wiki.openstreetmap.org/wiki/Overpass_API)
|
||||
|
||||
[Overpass QL](https://wiki.openstreetmap.org/wiki/Overpass_API/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](https://overpass-turbo.eu/)
|
||||
|
||||
```
|
||||
[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
|
||||
|
||||
* [zero-ware](./query/cli/bounding-box.txt)
|
||||
|
||||
### Use `Area` to limit output
|
||||
|
||||
* [train stations inside area VRB](query/cli/area-vrb.txt)
|
||||
|
||||
### Use `Around` to limit output
|
||||
|
||||
* [train stations around coordinate](query/cli/around-coord-nwr.txt)
|
||||
* [multiple features around UIC station code](query/cli/around-nwr-multiple.txt)
|
||||
* [nodes around UIC station code](query/cli/around-node.txt)
|
||||
* [nwr's for amenities around UIC station code](query/cli/around-nwr.txt)
|
||||
* [nwr's for shops around UIC station code](query/cli/around-nwr-shop.txt)
|
Loading…
Reference in New Issue