alle Schulen: als nodes, areas (polygons oder multipolygon) objects?
Geschrieben von tagtheworld (Gast) am 13. Juni 2014 13:49:11: [flux]
Hallo Community,
Ein OSM Overpass API Beispile mit PHP SimpleXML;
update: hab die bounding-box nochmals geaendert - so muesste es gehen
<?php /** *␣OSM␣Overpass␣API␣with␣PHP␣SimpleXML␣/␣XPath * *␣PHP␣Version:␣5.4␣-␣Can␣be␣back-ported␣to␣5.3␣by␣using␣5.3␣Array-Syntax␣(not␣PHP␣5.4's␣square␣brackets) */
// //␣1.)␣Query␣an␣OSM␣Overpass␣API␣Endpoint //
$query␣=␣'node ["addr:postcode"~"RM12"] (51.5557914,0.2118915,51.5673083,0.2369398); node (around:1000) ["amenity"~"fast_food"]; out;'; $context␣=␣stream_context_create(['http'␣=>␣[ 'method'␣␣=>␣'POST', 'header'␣=>␣['Content-Type:␣application/x-www-form-urlencoded'], 'content'␣=>␣'data='␣.␣urlencode($query), ]]);
Manche Schulen sind als nodes, andere als areas (polygons oder multipolygons), oder beides abgelegt.
Wie kann ich alle Schulen bekommen?
Wenn ich mehr schreiben soll, dann lasst es mich bitte wissen.
Antworten:
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · Harald Hartmann (Gast) · 13.06.2014 14:21 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · rayquaza (Gast) · 13.06.2014 15:01 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · tagtheworld (Gast) · 13.06.2014 15:54 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · Marqqs (Gast) · 16.06.2014 21:05 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · tagtheworld (Gast) · 17.06.2014 07:56 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · tagtheworld (Gast) · 17.06.2014 18:22 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · Marqqs (Gast) · 20.06.2014 07:22 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · tagtheworld (Gast) · 21.06.2014 08:51 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · stephan75 (Gast) · 22.06.2014 12:00 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · Marqqs (Gast) · 22.06.2014 12:44 [flux]
- Re: alle Schulen: als nodes, areas (polygons oder multipolygon) objects? · tagtheworld (Gast) · 22.06.2014 16:57 [flux]