This may or may not help

<cffunction name="isValidAddress" output="No">
        <cfargument name="data" type="xml" />
        <cfscript>
                var node = arguments.data.kml.response.status.code.xmltext
EQ 200;
                return node;
        </cfscript>
</cffunction>

<cffunction name="getLatLong" output="No">
        <cfargument name="data" type="xml" />
        
        
        <cfscript>
                var valid = arguments.data.kml.response.status.code.xmltext
EQ 200;
                var returnData = structNew();
                var coords = "";
                returnData.Lat = "";
                returnData.Long = "";
                returnData.result = false;
                if (valid) {
                        coords =
listToArray(arguments.data.kml.response.Placemark.Point.coordinates.xmlText)
;
                        returnData.Lat = coords[2];
                        returnData.Long = coords[1];
                        returnData.result = true;
                        }
                
                
                return returnData;
        </cfscript>
</cffunction>


<cfhttp
url="http://maps.google.com/maps/geo?q=#Address#&output=xml&key=#APIKey#";></
cfhttp>

<cfset GeoCode = getLatLong(xmlParse(CFHTTP.FileContent)) />
 

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Josen Ruiseco
Sent: Thursday, 6 September 2007 12:14 AM
To: [email protected]
Subject: [farcry-dev] Re: Google Maps - How to retrieve lon/lat dynamically?





Jeff Coughlin wrote:
> 
> 
> Just use Ray's Google Geocode CFC and it will get you where you need 
> http://googlegeocode.riaforge.org/.
> 
> 

Good ol' Ray. The community owes him so much gratitude for his efforts.

Josen

--
View this message in context:
http://www.nabble.com/Google-Maps---How-to-retrieve-lon-lat-dynamically--tf4
383707s621.html#a12498849
Sent from the FarCry - Dev mailing list archive at Nabble.com.





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"farcry-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/farcry-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to