Skip to content

Camden Cycling Campaign

Sections
Personal tools
You are here: Home » News » CCC News » How we built the CCC Google Maps

How we built the CCC Google Maps

Document Actions
We used the Google Maps API with Javascript, PHP and MySQL. Report May 2007.

In January 2007, George Coulouris spent some time investigating possibilities for on-line mapping tools. This resulted in a program that generates overlays for Google maps. We announced the first prototype on 1st January, but now (22nd May), we have just released on version 2.0, developed cooperatively by George and Jean.

The system consists of new software that uses the Google Maps API (application programming interface) to display the lines representing the routes as well as all the markers and their information tabs.

We implemented the new software mainly in Javascript with a little bit of PHP to communicate with a MySQL database.

The Javascript functions build the menus and other user interface components (e.g. buttons) by which users can manipulate the routes and interact with the system (e.g. scrolling and zooming). These functions communicate with the Google Maps API in order to display the lines representing the routes and the markers and their information tabs.

All of the data for the routes, the bike stands and the bike shops, as well as the menu definitions is stored in various tables in the MySQL database. The Javascript program sends queries to the database and receives replies from it via the PHP program which runs on the same server as the database.

The PHP program is needed because the database isn't a web service: that is, it's not possible to communicate with it by means of the HTTP protocol used for communicating with web servers. So, PHP understands HTTP and relays the queries and replies between the javasscript program and the database.

We have made a subdomain of camdencyclists.org.uk called maps.camdencyclists.org.uk as a web address for the maps page.

Here is the map showing the LCN+ Routes in Camden, Islington and City as well as a few in Westminster as well as utility and lesiure routes contributed by members, as well as the cycleways on Hampstead Heath.

You can have a look at the map

If you know a good route and would like to give it to us, read about How to contribute

Created by jeandollimore
Last modified 01-Jul-2007 16:41
Upcoming Events
Herts and Beds Ride
Leave from Kentish Town Station,
31-Aug-2008
Marchmont Street Festival
Marchmont Street, WC1N,
06-Sep-2008
Swiss Cottage Festival
Swiss Cottage,
06-Sep-2008
Members Meeting - may be deputation to Town Hall
Probably at Camden Town Hal, Judd Street,
08-Sep-2008
Cycle Maintenance Workshop (Part1)
Velorution, 18 Great Titchfield Street, London W1W 8BD,
20-Sep-2008
« August 2008 »
Su Mo Tu We Th Fr Sa
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31            
04-Aug-2008
18:00-20:30 Richard Ballantine
11-Aug-2008
19:30-21:00 Members Meeting, talk by Paul Braithwaite
31-Aug-2008
10:20-17:00 Herts and Beds Ride