Hacking Google Maps and Google Earth (ExtremeTech)

(Dana P.) #1

54 Part I — Basics


The API kit is supplied as a Zip file, which you will need to extract using one of the following:

PKZip, the built-in Zip extractor in Windows XP.
The unzip tool in Unix/Linux.

The built-in or StuffIt Expander applications in Mac OS X.

The Google Web developer’s kit contains the following files and directories:

APIs_Reference.html:Contains the Google Web API documentation and can be
read with any web browser.
 GoogleAPIDemo.java:A sample Java class that you can adapt.

GoogleSearch.wsdl:Contains the WSDL for the entire Google Web API.
 LICENSE.txt:The license for using the kit.

README.txt:A quick guide to the contents.
 dotnet/:Contains samples for the Windows .NET environment.

googleapi.jar:The Java class for accessing the Google API.
javadoc/:Contains Java documentation for the Java class in googleapi.jar.

licenses/:Contains licenses for using different components.
soap-samples/:Contains SOAP XML samples.

As with the Google Maps interface, accessing the Google Web system requires a unique key.
You cannot use the Google Web API without the unique key, and this key must be included in
every application that needs to access or use the Google Web API.

To obtain a key, just visit the Google Web API site (www.google.com/apis) and choose
Create Key. If you already have a Google account, the key will be sent to you automatically. If
you do not already have a Google account, you will need to create one.

If you forget your key, you can ask for another one simply by visiting the Google Web API site
and making a request. Google will then e-mail your key to you.

Using the Google Web API


You must agree to numerous terms and conditions before using the Google Web API. The pri-
mary points to remember are as follows:
Free download pdf