CHAPTER 4Geocoding Addresses

As you've probably already guessed, the heart of any mashup is correlating your information with latitudes and longitudes for plotting on your map. Fortunately, geocoding services are available to help you convert postal addresses to precise latitude and longitude coordinates. For locations in the United States and Canada, these services make geocoding addresses relatively easy and quite accurate most of the time. In other parts of the world, the job can become much harder.

In this chapter, while building a store locator map, you'll learn how to do the following:

  • Create an XML file describing a set of locations and details.
  • Request information from geocoding web services and process their responses.
  • Learn the pros ...

Get Beginning Google Maps Applications with PHP and Ajax: From Novice to Professional now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.