Beginning Google Maps Applications with PHP and Ajax: From Novice to Professional

Book description

Until recently, building interactive web-based mapping applications has been a cumbersome affair. This changed when Google released its powerful Maps API. Beginning Google Maps Applications with PHP and Ajax was written to help you take advantage of this technology in your own endeavorswhether you're an enthusiast playing for fun or a professional building for profit. This book covers version 2 of the API, including Google's new Geocoding service.

Authors Jeffrey Sambells, Cameron Turner, and Michael Purvis get rolling with examples that require hardly any code at all, but you'll quickly become acquainted with many facets of the Maps API. They demonstrate powerful methods for simultaneously plotting large data sets, creating your own map overlays, and harvesting and geocoding sets of addresses. You'll see how to set up alternative tile sets and where to access imagery to use for them. The authors even show you how to build your own geocoder from scratch, for those high-volume batch jobs.

As well as providing hands-on examples of real mapping projects, this book supplies a complete reference for the Maps API, along with the relevant aspects of JavaScript, CSS, PHP, and SQL. Visit the authors' website for additional tips and advice.

Table of contents

  1. Title Page
  2. Dedication
  3. Contents at a Glance
  4. Contents
  5. Foreword
    1. In the Beginning. . .
    2. The Birth of the Google Maps Mania Blog
  6. About the Authors
  7. About the Technical Reviewer
  8. Acknowledgments
  9. PART 1 Your First Google Maps
    1. CHAPTER 1 Introducing Google Maps
      1. KML: Your First Map
      2. Wayfaring: Your Second Map
      3. What's Next?
    2. CHAPTER 2 Getting Started
      1. The First Map
      2. Basic Interaction
      3. A List of Points
      4. Summary
    3. CHAPTER 3 Interacting with the User and the Server
      1. Going on a Treasure Hunt
      2. Creating the Map and Marking Points
      3. Asking for More Information with an Info Window
      4. Using Google's Ajax Object
      5. Retrieving Markers from the Server
      6. Adding Some Flair
      7. Summary
    4. CHAPTER 4 Geocoding Addresses
      1. Creating an XML File with the Address Data
      2. Using Geocoding Web Services
      3. Caching Lookups
      4. Building a Store Location Map
      5. Summary
  10. PART 2 Beyond the Basics
    1. CHAPTER 5 Manipulating Third-Party Data
      1. Using Downloadable Text Files
      2. Screen Scraping
      3. Summary
    2. CHAPTER 6 Improving the User Interface
      1. CSS: A Touch of Style
      2. Scripted Style
      3. Warning, Now Loading
      4. Data Point Filtering
      5. Summary
    3. CHAPTER 7 Optimizing and Scaling for Large Data Sets
      1. Understanding the Limitations
      2. Streamlining Server-Client Communications
      3. Optimizing Server-Side Processing
      4. Optimizing the Client-Side User Experience
      5. Summary
    4. CHAPTER 8 What's Next for the Google Maps API?
      1. Driving Directions
      2. Integrated Google Services
      3. KML Data
      4. More Data Layers
      5. Beyond the Enterprise
      6. Interface Improvements
      7. Summary
  11. PART 3 Advanced Map Features and Methods
    1. CHAPTER 9 Advanced Tips and Tricks
      1. Debugging Maps
      2. Interacting with the Map from the API
      3. Creating Map Objects with GOverlay
      4. Creating Custom Controls
      5. Adding Tabs to Info Windows
      6. Creating a Custom Info Window
      7. Implementing Your Own Map Type, Tiles, and Projection
      8. Summary
    2. CHAPTER 10 Lines, Lengths, and Areas
      1. Starting Flat
      2. Moving to Spheres
      3. Working with Polylines
      4. What About UTM Coordinates?
      5. Running Afoul of the Date Line
      6. Summary
    3. CHAPTER 11 Advanced Geocoding Topics
      1. Where Does the Data Come From?
      2. Geocoding Based on Postal Codes
      3. Grabbing the TIGER/Line by the Tail
      4. Summary
  12. PART 4 Appendixes
    1. APPENDIX A Finding the Data You Want
      1. Knowing What to Look For: Search Tips
      2. The Cat Came Back: Revisiting the TIGER/Line
      3. More on Airports
      4. The Government Standard: The Geonames Data
      5. Shake, Rattle, and Roll: The NOAA Goldmine
      6. For the Space Aficionado in You
    2. APPENDIX B Google Maps API
      1. class GMap2
      2. class GMapOptions
      3. enum GMapPane
      4. class GKeyboardHandler
      5. interface GOverlay
      6. class GInfoWindow
      7. class GInfoWindowTab
      8. class GInfoWindowOptions
      9. class GMarker
      10. class GMarkerOptions
      11. class GPolyline
      12. class GIcon
      13. class GPoint
      14. class GSize
      15. class GBounds
      16. class GLatLng
      17. class GLatLngBounds
      18. interface GControl
      19. class GControl
      20. class GControlPosition
      21. enum GControlAnchor
      22. class GMapType
      23. class GMapTypeOptions
      24. interface GTileLayer
      25. class GCopyrightCollection
      26. class GCopyright
      27. interface GProjection
      28. class GMercatorProjection
      29. namespace GEvent
      30. class GEventListener
      31. namespace GXmlHttp
      32. namespace GXml
      33. class GXslt
      34. namespace GLog
      35. enum GGeoStatusCode
      36. class GClientGeocoder
      37. class GGeocodeCache
      38. class GFactualGeocodeCache
      39. Functions
  13. Index

Product information

  • Title: Beginning Google Maps Applications with PHP and Ajax: From Novice to Professional
  • Author(s):
  • Release date: August 2006
  • Publisher(s): Apress
  • ISBN: 9781590597071