Geocoding With Google Maps
From Fishcakes Wiki
A guide to Google Maps Geocoding.
Contents |
Geocoding Tutorial Notes
Notes from Tutorial
-
Geocode UK Postcode — simple tool to Geocode UK Postcodes. Fishcakes Wiki Reference File.
-
Geocode UK Postcode Search — adding Google Maps Search to site. Fishcakes Wiki Reference File.
-
Geocode UK Postcode Caching — caching searches to database (link to file on development server). Fishcakes Wiki Reference File.
Here is an example web page to get you started:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8"/> <title>My Google AJAX Search API Application</title> <link href="http://www.google.com/uds/css/gsearch.css" type="text/css" rel="stylesheet"/> <script src="http://www.google.com/uds/api?file=uds.js&v=1.0&key=ABQIAAAAYBB_NyS1YelEH_91Z4JRxRRC3hDrkNx8wrzil_PArfl5N6KsMxRI90MqNp6JpSAIwTvuCeOZVQmebQ" type="text/javascript"></script> <script language="Javascript" type="text/javascript"> //<![CDATA[ function OnLoad() { // Create a search control var searchControl = new GSearchControl(); // Add in a full set of searchers var localSearch = new GlocalSearch(); searchControl.addSearcher(localSearch); searchControl.addSearcher(new GwebSearch()); searchControl.addSearcher(new GvideoSearch()); searchControl.addSearcher(new GblogSearch()); // Set the Local Search center point localSearch.setCenterPoint("New York, NY"); // Tell the searcher to draw itself and tell it where to attach searchControl.draw(document.getElementById("searchcontrol")); // Execute an inital search searchControl.execute("Google"); } GSearch.setOnLoadCallback(OnLoad); //]]> </script> </head> <body> <div id="searchcontrol">Loading...</div> </body> </html>
Google Maps Geocoding Resources
- Get Google Maps Ajax Key — you need this to geocode UK addresses
- Tom Anthony's Geocoding Tutorial.
Google Maps Links
Official Google Maps Links
- Google Maps Home Page — official site.
- Get Google Maps API Key — you need a key for each domain or sub-domain on which you want to display maps.
- Google Maps API Documentation — concepts and examples.
- Google Maps API Reference — reference guide to all functions.
- Official Google Maps API Blog — good resource for finding out what's new.
- Google Maps Tour — find out what Google Maps can do.
- Google Maps User Guide — understanding how to use Google Maps.
- Google Mashup Editor Getting Started Guide — the place to start when making a Google Maps mashup.
Unofficial Google Maps Links
- Mapki Google Map Parameters — complete list.
- Mapki Get Latitude & Longitude — click for lat/lon.
- www.googlemapsbook.com — Google Maps Book website with blog, links and source code downloads.
- Google Maps Troubleshooting Group
- Integrating Google Maps into Your Web Applications — basic tutorial.
- Complete Google Maps Tutorial — rather techie but quite comprehensive tutorial from Mike Williams.
- List of Google Map Variables — quite useful.
Great Google Maps Sites
- Real Liverpool — excellent site with customised Google Maps.
- Charlottetown Transit Map — excellent Map with full source code available and tutorial on how to implement it.
Other Google Applications
- Google Trends — compare the world's interest in your favourite topics.

