OSM filtering

Fox

Active Member
Licensed User
Longtime User
Hello,

i work with the OSM lib... and would filter just hospitals or doctors...
how can i filter an osm map with just hospitals for example?
 

warwound

Expert
Licensed User
Longtime User
If you're using OSMDroid then you have an option to display tiles from your own or any other OSM compatible tile server.

Are you looking at covering a small area or a large country or continent (or even the entire world)?

Tiles for a small area could be made into an offline tile archive and stored on the device's external memory, giving your map users a map without requiring an internet connection.
But a complete set of tiles for a large area would be masive and not really suitable for an offline map archive.

Google is your friend: https://www.google.co.uk/search?q=osm+render+custom+tiles&ie=UTF-8&oe=UTF-8
And this link tells you what you (basically) need to know: https://help.openstreetmap.org/questions/136/how-do-i-render-my-own-maps-for-my-website

In theory you'd set up a tile server and import the existing OSM vector data into the tile server database.
Next you have to create rendering rules that dictate which features from the original OSM vector data you want your tile server to render on to the raster tiles that it serves.
So you'd have a rendring rule to display basic map data (town,cities roads rivers etc) and hospitals and doctors.

Back in OSMDroid you now configure OSMDroid to fetch tiles from your tile server or use an offline tile archive.

In theory it's straightforward, in practive there's many hurdles and the cost of running such a fast tile server is high.

First thing you need to be able to do is take the OSM raw vector data and create a tile server which can be configured with a rendering rule.
I recently followed this tutorial: switch2osm*|* Building a tile server from packages
I created a virtual linux pc using VMWare Workstation - not a 'real' pc.
The tile server worked, i managed to import OSM data and render my own tiles, but i haven't yet learnt how to customise the rendering rules.
Endless searches didn't find a simple 'how to customise the rendering rules' tutorial and as i don't have endless hours to learn how the mapnik rendering engine works i put the project on hold.

Or as suggested in the second link above there is CloudMade tiles.
CloudMade have usage limits and other terms and conditions of use, they also allow you to create your own custom styled map.
Whether you can create a suitable custom styled map (for free) with CloudMade is something you'd have to investigate.
(OSMDroid supports CloudMade tiles so no problems there.)

Your question has many solutions but not a single simple solution i think.

Martin.
 
Upvote 0
Top