Here is the exact code minus my password. So it is exactly
like yours except on the action I'm just submitting back to the
same form (the index.cfm).
<cfsilent>
<cfscript>
if (isdefined("form.address") AND len(trim(form.address))) {
geocoder=createObject("webservice","
http://geocoder.us/dist/eg/clients/GeoCoder.wsdl");
// of course you've signed up,right?
geocoder.setUsername("James_H10");
geocoder.setPassword("myPassword");
geocodeResults=geocoder.geocode_address(form.address);
}
</cfscript>
</cfsilent>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN">
<html>
<head>
<title>US Geocoder Test</title>
</head>
<body>
<form action="index.cfm" method="post">
<b>address to geocode</b>: <input type="text"
name="address" value="601 Townsend
St. San Fransico, CA 94103" size="50" maxlength="150">
<input type="submit" value="geocode">
</form>
<cfif isDefined("variables.geocodeResults")>
<hr align="left" width="30%">
<cfoutput>
<cfloop index="i" from="1"
to="#arrayLen(geocodeResults)#">
<!--- what went in, comes out? --->
#geocodeResults.getNumber()# #geocodeResults.getStreet()#,
#geocodeResults.getCity()# #geocodeResults.getState()#
#geocodeResults.getZip()# <b>:::</b> latitude:
#geocodeResults.getLat()#,
longitude: #geocodeResults.get_Long()# <br>
</cfloop>
</cfoutput>
</cfif>
</body>
</html>