Rails-Edition Source Code

Can be found here: http://googlemapsbook.com/gmaps_rails_code.zip

PHP-Edition Source Code

Can be found here: http://googlemapsbook.com/gmaps_php_code.tar.gz

Fully working examples and source are available for each listing in the book, which can be browsed by chapter, below. If you’re just interested in checking out some of the sweet stuff covered in the book, definitely check out custom tile overlays, sidebar point browsing, and our Blue Marble map.

Chapter 1: Introduction
Chapter 2: Getting Started
Chapter 3: Interacting with the User and the Server
Chapter 4: Geocoding Addresses
Chapter 5: Manipulating Third-Party Data
Chapter 6: Improving the User Interface
Chapter 7: Optimizing and Scaling for Large Data Sets
Chapter 9: Advanced Tips and Tricks
Chapter 10: Lines, Lengths, and Areas
Chapter 11: Advanced Geocoding Topics

Note Some code on the website may differ slightly from the listings presented in the printed book. Initially we tried to use this site to keep pace with the API changes, and for about a year we didn’t do too badly. In the end though, with the release of API v3 it was hopeless. Most of this code still works very very well, however with API v3 most of it can be done a lot faster, leaner and more maintainably than the code presented here.

To whet your appetite, you can also read a PDF of Chapter 4 in full.


Buy Our Books!

(Here's Why) PHP book Rails book DOM book mashups book