The last year or so has been an incredibly exciting time for web developers. New tools have come out that make web development easier, more productive, and more fun. A slew of new APIs are available that let you glue together data and services in interesting ways. As develop- ers, we are more empowered with new and interesting technologies than ever before. This book focuses on one API that has had a particularly profound impact: the Google Maps API. Since you have this book in hand, you’re probably already convinced of Google Maps’ importance | THE EXPERT S VOICE IN OPEN SOURCE Beginning Google gapSIII Applications Wit Rails and Ajax From Novice to Professional Build awesome Rails-driven mapping applications using the powerful Google Maps API Andre Lewis Michael Purvis Jeffrey Sambells and Cameron Turner Aprcss Beginning Google Maps Applications with Rails and Ajax From Novice to Professional Andre Lewis Michael Purvis Jeffrey Sambells and Cameron Turner Apress Beginning Google Maps Applications with Rails and Ajax From Novice to Professional Copyright 2007 by Andre Lewis Michael Purvis Jeffrey Sambells and Cameron Turner All rights reserved. No part of this work may be reproduced or transmitted in any form or by any means electronic or mechanical including photocopying recording or by any information storage or retrieval system without the prior written permission of the copyright owner and the publisher. ISBN-13 pbk 978-1-59059-787-3 ISBN-10 pbk 1-59059-787-7 Printed and bound in the United States of America 9 8 7 6 5 4 3 2 1 Trademarked names may appear in this book. Rather than use a trademark symbol with every occurrence of a trademarked name we use the names only in an editorial fashion and to the benefit of the trademark owner with no intention of infringement of the trademark. Lead Editor Jason Gilmore Technical Reviewer Sam Aaron Editorial Board Steve Anglin Ewan Buckingham Gary Cornell Jason Gilmore Jonathan Gennick Jonathan Hassell James Huddleston Chris Mills Matthew Moodie Dominic Shakeshaft Jim Sumser Matt Wade Project Manager Sofia Marchant Copy Edit Manager Nicole Flores Copy Editor Jennifer Whipple Assistant Production Director Kari Brooks-Copony Production Editor Laura Cheu Compositor Kinetic Publishing Services LLC Proofreader April Eddy Indexer Beth Palmer Artist April Milne Cover Designer Kurt Krames Manufacturing Director Tom Debolski Distributed to the book trade worldwide by Springer-Verlag New York Inc. 233 Spring Street 6th Floor New York NY 10013. Phone 1-800-SPRINGER fax .