Hi, WFS servers, like Geoserver and TinyOWS, can deliver data also as GeoJSON. This query sends the Finnish waste baskets from OSM data as GeoJSON
http://188.64.1.61/cgi-bin/tinyows?service=wfs&version=1.1.0&request=getfeature&typename=tows:osm_point&maxfeatures=10000&filter=%3CFilter%20%20xmlns:ogc=%22http://www.opengis.net/ogc%22%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3Etows:amenity%3C/PropertyName%3E%3CLiteral%3Ewaste_basket%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E&outputformat=application/json All that I have done was to import OSM data with osm2pgsql and publish the resulting PostGIS tables with TinyOWS as WFS feature types. I am sorry about the ugly filter, but it is the OGC way for doing queries. -Jukka Rahkonen- Ander Pijoan wrote: > Hi everyone > > I am currently working with different technologies for showing OSM data in > slippy maps and I noticed that some of those maps would work better with > GeoJSON data format. > > I use Overpass API for downloading data but it doesn't export in GeoJSON > format. The nearest approach would be to ask for it as OSM-JSON, store all > the nodes ids and locations, store all the ways ids and node refs and then > build the relations geometries but it's quite a big pain for browsers. > > I've been looking for some info in OSM wiki but I haven't been able to > find > nothing. Does anyone know if there exists something? > > Thank you very much. > > -- > Ander Pijoan Lamas > Research Assistant, Deustotech > Computer Science Engineer > University of Deusto > > E-mail: [email protected] > Phone: +34 664471228 > in: http://www.linkedin.com/profile/view?id=162888312 > _______________________________________________ > dev mailing list > [email protected] > http://lists.openstreetmap.org/listinfo/dev > _______________________________________________ dev mailing list [email protected] http://lists.openstreetmap.org/listinfo/dev

