Bicycle Map Builder White Paper

Cameron Shorter


1. Introduction
1.1. Why encourage cycling?
1.2. What prevents cyclists from riding?
2. Building bicycle maps
2.1. What is deficient with existing bicycle maps?
2.2. Can a community collectively build quality, comprehensive maps?
2.3. Can you build maps on a shoe string budget?
2.4. How do you prevent users from entering rubbish data?
2.5. Will the Bicycle Map Builder cause upheavals in the Mapping Industry?
2.6. Great technology, but will anyone use it?
3. Bicycle Map Builder Architecture
3.1. Feature editor
3.2. Map viewer
3.3. Business logic
3.4. Transactional Web Feature Service (WFS-T)
3.5. Web Map Service (WMS)
3.6. Geospatial Database
3.7. Map Aggregator
4. Open development
4.1. Why use open standards?
4.2. What is Open Source Software?
4.3. Why use Open Source Software?
4.4. Open maps
5. About the author
A. Glossary

Abstract

Cycling is good for health and great for the environment but many people never ride because of the real and perceived danger of riding on busy roads. However cities are criss-crossed by safe bicycle routes. Knowledge of these routes is stored collectively across hundreds of cyclists.

This paper describes how to collect and publish secret bicycle routes from thousands of people through a Bicycle Map Builder web page.

The aim of this paper is to convince decision makers to support the implementation of a Bicycle Map Builder website which in turn will increase bicycle usage.

1. Introduction

1.1. Why encourage cycling?

Physical inactivity is recognised as an important risk factor for health. Physical activity can contribute to prevention of all of the current National Health Priority Areas, including cardiovascular disease, mental health, cancer and injury, especially in older people.

The use of bicycles contributes to the personal health of the population of NSW. The Government considers it important to promote cycling as a health initiative and to promote community understanding of the opportunities for bicycle use.

Bicycle travel is one of the means that can reduce the demand for motor vehicle travel and consequently, reduce vehicle emissions. Support for cycling and walking is a key part of the NSW Government's 25 year air quality management plan, Action for Air, and of the National Greenhouse Strategy.

Moreover, increased bicycle travel contributes to the environmental quality of our streets and neighbourhoods, by making them quieter and enhancing quality of life.[1]

Figure 1. Cyclists having fun in Sydney. Photo copyright © Moz, 2003-2004

Cyclists having fun in Sydney. Photo copyright © Moz, 2003-2004

1.2. What prevents cyclists from riding?

There are over 2 million bicycle users in NSW. Almost half our households have at least one bike but these are used on average only three or four times a year.[2]The reasons most often given by the community as to why they do not cycle more often, or at all, are that the roads are too dangerous and that there is nowhere safe to ride.[3]

While Sydney's main roads are congested and dangerous for cyclists, large areas of Sydney are covered by back streets, parks and drainage lines ideal for cycling. The problem is that only a few people know about them.

Figure 2. Critical Mass cyclists in Sydney business district. Photo copyright © Moz, 2003-2004

Critical Mass cyclists in Sydney business district. Photo copyright © Moz, 2003-2004

2. Building bicycle maps

2.1. What is deficient with existing bicycle maps?

Knowledge of a city's bicycle routes is spread across THOUSANDS of people. Secret bike routes which include back alleys, drainage lines, and blocked off streets are traded in dingy pubs and on email lists. Many people never consider riding because they don't realise it is possible to cross the city safely on a bicycle. Existing maps suffer from most of the following factors:

  1. The map only covers a local area.

  2. Many bike routes are missed because only a small number of cyclists are interviewed.

  3. Only a certain level of cyclist is catered for - recreational cyclists use different routes to commuters.

  4. Maps are revised infrequently and are usually out of date.

TBD: Expand:

  • Bike maps increase bicycle usage. (Find and quote facts).

  • Sydney contains a latent demand for cycle ways. Is there any research to back this? Maybe the sales of bike maps, or downloads of bike maps from the RTA or council websites?

Figure 3. Cities are criss-crossed by secret bike routes. Photo copyright © Moz, 2003-2004

Cities are criss-crossed by secret bike routes. Photo copyright © Moz, 2003-2004

2.2. Can a community collectively build quality, comprehensive maps?

Figure 4. Bicycle Map Builder in a web page

Bicycle Map Builder in a web page

Present a web page with a city map to a cyclist. The cyclist enters their favourite bicycle route on top of the map. Click, click, click, ... Submit. After hundreds of cyclists have all entered their favourite routes into the database, you have a comprehensive bicycle map of the city. Using the same process, cyclists can maintain the bicycle routes and the maps will never be outdated.

The expensive, labour intensive collection and validation of geographic data is moved from employees to enthusiastic volunteers, making it possible to build and maintain extensive, quality maps on a shoe-string budget.

Using the same community editing principles, thousands of volunteers have written Wikipedia, an encyclopedia with more entries than Encyclopedia Britannica.

2.3. Can you build maps on a shoe string budget?

The software required by the Bicycle Map Builder is available from vibrant Open Source projects which means the software is free. The software is backed with both volunteer and commercial support.

The bandwidth used to build a city map is negligible. A map for a city the size of Sydney can be built using $5000 worth of bandwidth[4].

The biggest cost would be the purchase of a computer server, installation of software and technical support, all of which could be provided by the sponsoring organisation's existing computer department.

Figure 5. Detailed base maps of Sydney[5]

Detailed base maps of SydneyCadastral base maps are available for free at http://maps.nsw.gov.au/viewer.htm

TBD: Discuss costs of building maps using traditional methods.

2.4. How do you prevent users from entering rubbish data?

The user community will be responsible for self correction. There are a number of processes available to us and they will be trailed during a pilot release of Bicycle Map Builder.

Self correction methods include:

  1. Developing a hierarchy of users, with trusted users given a higher moderation status.

  2. Providing discussion forums (like an email list) to discuss routes.

  3. Providing notifications of updates to interested users to trigger moderation.

  4. Providing a review flag for each feature so that a feature is not available for viewing until it has been reviewed.

  5. Provide a history of previous moderations, and allow users to roll back to previous versions.

2.5. Will the Bicycle Map Builder cause upheavals in the Mapping Industry?

We hope so. Currently many detailed maps are prohibitively expensive and out of reach of average community groups. If our vision materialises, millions of people around world will build comprehensive maps of their local area and give them away for free. Data custodians will need to consider alternative business structures and maps will be given away for free.

The map building development model is the same as the highly successful Open Source software movement where millions of software developers write software and give it away for free. Collectively, Open Source developers have built:

  • Linux, a Unix Operating System which has forced Sun Microsystems to give away it's Solaris Unix Software.

  • Apache, a web server which is used by more servers than all the competing proprietary solutions.

  • GNU-Linux distributions like Mandrake, Redhat and Suse which provide the same functionality as Microsoft Windows and Office for free.

  • And much, much more.

Figure 6. 

2.6. Great technology, but will anyone use it?

A bicycle map the size of Sydney will take approximately 160 volunteers one year.[6] That is one volunteer per 25,000 members of the population. As a comparison, Bicycle NSW has 10,000 voluntary, financial members. Sydney's Critical Mass monthly bicycle ride which advocates better cycling conditions attracts up to 1,000 committed cyclists.

TBD: Collect statements of support from the cycling community.

3. Bicycle Map Builder Architecture

Figure 7. Bicycle Map Builder Network Diagram

Bicycle Map Builder Network Diagram

The Bicycle Map Builder requires a user-friendly interface which allows thousands of non-technical users to update the same geographic data. The user interface is provided by a smart web page and the database is stored on a central server. Communication between the two uses Open Geospatial Standards over the internet. Use of standard protocols means alternative clients can easily be incorporated with Bicycle Mapbuilder.

3.1. Feature editor

Typically, a Feature Entry client renders a basemap into a web page and allows a user to add or modify geographic features on the map. The client should be easily accessible to the majority of the user community. This means the client should

  • Be available in a standard web browser without requiring pluggins.

  • Be available to users free of charge.

  • Provide an intuitive interface for non-technical users.

  • Communicate with the server using Open Geospatial Standards.

This functionality is provided by Community Map Builder, a web based Web Map Service and Transactional Web Feature Service client.

3.2. Map viewer

A Map Viewer allows users to view and print collected maps in combination with other base maps. This functionality is provided by a number of open source clients, including:

3.3. Business logic

The business logic layer provides:

  1. User authentication and authorization.

  2. Access control for feature updates.

  3. Business logic for the community editing process.

  4. History of feature updates and rollback capabilities.

  5. Protection of proprietary datasets to ensure they are only accessed by applications and users with the correct privileges.

  6. Metrics collection, like counting the number of users, to prove the success of a site. This data will be useful to monitor the success of the site.

3.4. Transactional Web Feature Service (WFS-T)

A Web Feature Service provides a web interface to a geographic database. It returns features as vectors.

A Transactional Web Feature Service also allows updates, additions and deletions of the geographic database.

Geoserver is an excellent, open source, java based WFS-T and WMS.

3.5. Web Map Service (WMS)

A Web Map Service provides a web interface to a geographic database which returns map raster images (as GIF, PNG, etc).

Geoserver and mapserv are two good Open Source Web Map Service products.

3.6. Geospatial Database

Like a normal database, but tailored to handle geographic features as well. PostGIS provides extensions to Postgresql to produce a powerful open source geospatial database.

3.7. Map Aggregator

A Web Map Service and Web Feature Service client which builds web pages on the server. This can be used to protect proprietary datasets from being accessed by applications without the required privileges.

mapserv is one open source map aggregator - as well as providing a number of other roles as well.

4. Open development

Bicycle Map Builder is built on open standards and can be built for free with open source software.

4.1. Why use open standards?

An open standard is a detailed, descriptive overview of a process, protocol or format. It is formulated through stakeholder consensus. It must be openly published and there should also be no legal or intellectual property restrictions. ...

Open standards are increasingly important for ensuring interoperability among competing vendors. It is therefore good practice for agencies to analyse and understand which open standards may be applicable to specific ICT solutions. Products that comply with open standards are easier to integrate into environments designed to use the same standards. Open standards also make it easier for an agency to terminate its relationship with one vendor (or product) and adopt another, hence reducing the risk of vendor lock-in or product lock-in.

Establishing a vendor or product's compliance with open standards often forms part of an agency's risk assessment and due diligence process. It could also form part of the decision matrix used when identifying prime ICT sourcing options, whether open source or not.[7]

The Bicycle Mapbuilder architecture is build upon Open Geospatial Consortium standards which has wide acceptance in the Geospatial industry. Each component can be replaced or used in conjunction with equivalent components.

4.2. What is Open Source Software?

At present, the primary arbiter of what constitutes open source software is the Open Source Initiative. The Initiative sets out various rights and obligations for developers, distributors and users of OSS. These rules define the basic licence conditions under which software must be released to be considered "open source". These licence conditions give the users of OSS the right to:

  • Use the software for any purpose;

  • Make copies of the software for any purpose;

  • Access or modify the source code of the software for any purpose; and

  • Without payment of a royalty or other fee, distribute copies of:

    • the software (including distributing the software as part of an aggregate distribution containing software from several different sources);

    • a derived or modified form of the software (either in compiled form or as source code), under the same terms as the licence applying to the software.[7]

4.3. Why use Open Source Software?

The Bicycle Mapbuilder product can be built with both commercial and/or open source components. Open source components are recommended because:

  • In the geospatial market, open source products are technically equal and in many cases better than commercial equivalents.

  • Source code is provided for free which mitigates the risk of obsolescence from a vendor.

  • This project will benefit from future enhancements to open source components.

  • This project will not be locked into up front or ongoing licensing fees.

  • The open source products being considered are supported commercially as well as by the open source community.

4.4. Open maps

Volunteers are more likely to contribute to a map collection project if maps are given back to the community for free. Consequently the maps created should be stored under an open license. We suggest using one of the Creative Commons licenses.

5. About the author

Cameron Shorter is an enthusiastic cycling advocate and software developer with expertise in Open Geospatial Standards, Community editing, Open Source development and Project Management.

He has invested significant time promoting cycling in Sydney, Australia, giving interviews to the media, building a media fact pack, designing web pages and organising publicity stunts. He likes to ride a bicycle to work.

He is the founder and core developer behind Community Map Builder, a web based, geographic feature entry tool which was written to be a client for the Bicycle Map Builder project.

He is one of the software who developed the activist calendar and news site http://www.active.org.au which allows community editing of calendar entries and news stories.

He has previously worked as Web mapping Manager for Social change Online and is currently improving Software Development and Management processes at ADI Ltd.

He figures he only has another fifty years to live, and is desperately trying to cram as much as he can into his life before he is dead.

A. Glossary

Table A.1. Glossary

TermExpanded AcronymDescription
GISGeographic Information Systems 
GMLGeographic Markup LanguageXML format for describing geographic features.
GPSGeographic Positioning System 
OGCOpen GIS ConsortiumGeographic Standards Body
PortalPortalA collection of web pages targeted at a specific topic.
R&DResearch and Development 
SDDSoftware Design DescriptionA design document as defined by MIL-STD 498.
SRSSpacial Reference SystemSpacial Reference System (as defined by the OGC). An alpha-numeric ID which specifies what coordinate system you are using. Eg: SRS="EPSG:4326".
SVGScalable Vector Graphics 
SLDStyled Layer DescriptorXML document which describes how to draw specific features. Eg, A road line may be drawn in red, 3 pixels wide.
TBDTo Be DecidedPlaceholder put into an incomplete section of a document.
UMLUnified Modeling LanguageA set of diagrams used to describe software pictorially. The diagrams are stored in an XML format.
WidgetWidgetA discrete element of a graphical user interface for displaying information and interacting with a user. Widgets include icons, buttons, scroll bars, windows etc.
WFSWeb Feature ServiceReturn vector data about features in GML format.
WFS-TTransactional Web Feature ServiceA WFS which also allows features to be added or modified.
WMSWeb Map ServerReturn raster map images (like GIF and PNG) and information about points (as HTML, GML, as well as other formats).
XSLExtensible Stylesheet LanguageA language for converting XML to other formats.
XSLTXSL Transform 
XMLExtensible Markup Language 


[4] Estimated cost of bandwidth to build a map the size of Sydney = (Size of Sydney in square kilometers) / (Size of map shown in a web page in square kilometers) * (Size of webpage in Megabytes) * (Cost of bandwidth in $/Megabyte) * (Number of times each square kilometer needs a map refresh)

= 1687 / 1 * 1 * .003 * 1000

= $5061

[5] Cadastral base maps are available for free at http://maps.nsw.gov.au/viewer.htm

[6] Estimated users required to build a map the size of Sydney in one year = (Size of Sydney in square kilometers) / (Size of map shown in a web page in square kilometers) * (Number of times each square kilometer has it's routes updated) * (Time required for update in hours) / (Volunteer commitment in hours/week) / (Weeks in a year)

= 1687 / 1 * 1 * 100 * 0.05 * 1 / 52

= 162 volunteers

= 1 volunteer per 25,000 members of the population.

[7] A Guide to Open Source Software for Australian Government Agencies, Department of Finance and Administration 1 74082 085 1.