Technology »

  • Share
Underwritten by John S. and James L. Knight Foundation

Idea Lab is a group blog by innovators who are reinventing community news for the Digital Age.

Read more about Idea Lab »

  • Check out Idea Lab Sponsorship opportunities!

  • Follow us on Twitter »
  • Each Idea Lab blogger is a winner of the Knight News Challenge grant to reshape community news.

    Learn more about the Knight News Challenge »

    TileMill Opens Up a World of Mapping Possibilities With OpenStreetMap

    Knight 2010 News Challenge Winner

    One of our favorite collaborative open data projects is OpenStreetMap. We've talked before about the project's goals, how its free and open nature is advantageous for non-profit and commercial applications alike, and how its open and near-real-time editing process is a major advantage in rapidly changing situations, from city construction projects to natural disasters. The map's coverage continues to grow and become increasingly accurate and complete as more people discover it and contribute.

    The project's main feature is not the interactive "slippy map," but the thousands of other possibilities the underlying data provides. Since OpenStreetMap is open and freely available, many niche spinoffs highlight specific areas of interest, like good bicycle routes, details important to sailing and marine navigation, and information about wheelchair accessibility. OpenStreetMap is an excellent resource of data for creating custom maps with TileMill, our open-source map design studio which we've written about here before.

    Bike paths and schools in Portland

    Above is a custom map created in TileMill using data from OpenStreetMap. It pulls information about bike paths out of the OpenStreetMap database and highlights them with pink lines. The map also shows schools, which are the purple dots. Instead of cluttering the map with labels, we're using TileMill's interactivity feature in this example to show school names when the mouse cursor hovers over them.

    Getting Data

    With so much information in the OpenStreetMap database, working with all of it at once can be a challenge requiring a lot of time and hardware. But often, you will only need data for a particular region, and in these cases there are simpler options than cloning the full database. CloudMade and Geofabrik are two companies that provide extracts of the OSM database that are broken up into more manageable chunks based on countries, states and provinces. The data is available in a variety of formats suited for different needs, many of which work well in TileMill. (Browse CloudMade's files at http://downloads.cloudmade.com and Geofabrik's at http://download.geofabrik.de/osm.)

    Some of the data extracts can be easily imported into a PostGIS database, which recent versions of TileMill can connect to. PostGIS is an extension for PostgreSQL databases that provides features for working with geographic data, and is used to power the maps for OpenStreetMap.org, open.MapQuest.com, and many other online maps.

    TileMill editing a PostGIS layer

    TileMill editing a PostGIS layer

    For those less familiar with working with spatial databases, shapefiles are probably the simpler route. TileMill comes with an example road map project that uses shapefiles from CloudMade. The actual shapefiles it uses cover just Washington, D.C. However, because all the shapefiles from CloudMade use the same data table layout, it's possible to apply the same style sheet to any area they have shape files for. With a few small tweaks, the same style could also be used with OpenStreetMap shapefiles from Geofabrik. 

    Whichever route you take, hopefully TileMill will make working with open geographic data sources such as OpenStreetMap easy and flexible, and encourage creative results.

    You can download TileMill at TileMill.com and find support documentation for how to use it to create online, interactive, custom maps at support.mapbox.com.

    Further Reading

    Rate this entry

    • Currently 0/5
    • 1
    • 2
    • 3
    • 4
    • 5

    Rating: 0/5 (0 votes cast)

    Check out MediaShift Sponsorship opportunities! mediashift mixer collabspace promo.jpg

    Featured Comment

    I guess that combining the fixed rules for audio, video, image and text will be significant, as are the "open" intuitive based rules that the user contributes.

    jerry
    Zeega: Algorithm Isn't Just Another Word for Automation

    Monthly Archives