Hızlı yanıt: kod örneği
There is a tool Osmosis written in JAVA that can be used for advanced data manipulation in OSM format. For instance you could parse planet.osm and only extract hospitals (geometry and attributes) using:Actually you could pipe output directly to osm2pgsql command and load data to PostGIS database, or convert osm data to format that is more readable by common GIS software.I'm not sure how long will it take to parse planet.osm, but you could start with smaller area and work your way up. Also, you can use osmosis to extract a smaller area of interest from planet.osm, if daily prepared extracts don't satisfy your needs.
osmosis --read-xml input.osm --tag-filter accept-nodes amenity=hospital --write-xml output.osm