WAM135 - Using the Google Static Maps API


This exercise provides a very simple example of using address information to display a street map using the Google Static Map API. The Google Maps facility can be used in many more sophisticated ways. This example is intended to illustrate that provided you have good address data, a static map can quite easily be displayed.

The information to build this example was taken from:


See the following URL for full documentation:


The supplied example shows how the following <img> tag will display a street map around the Brooklyn Bridge, New York.

<img src=http://maps.googleapis.com/maps/api/staticmap?center=Brooklyn+Bridge,New+York,NY&zoom=14&size=512x512&maptype=roadmap


A simple employee enquiry will display a static street map for the employee's address.

To meet this objective you will complete the following:

Step 1. Create an Employee Enquiry WAM

Step 2. Add logic to set up URL to Google Map Service


Before You Begin

Complete the introductory exercises, WAM005, WAM010, WAM015 and WAM020.