I am pulling info from zillow and google maps my problem is if a person enters their streert number with out the street I get an error cause google does not have the coordinates in the xml. How can i first search the xml for coordinates
my code
<CFOUTPUT>
<cfset dLatitude = #ListGetAt(xml.kml.Response.Placemark.Point.coordinates.XmlText, 1)#>
<cfset dLongitude = #ListGetAt(xml.kml.Response.Placemark.Point.coordinates.XmlText, 2)#>
</CFOUTPUT>
xml example with coordinates
http://maps.google.com/maps/geo?q=109+high+19382&output=xml
xml with out
http://maps.google.com/maps/geo?q=109+19382&output=xml