The big task was for starters, just getting the information out of what was being returned to the page. It seemed simple to tear apart yahoo's xml that was returning, but for some reason it took me a couple of hours after the connection failure issues.
What needs to happen:
=========================
1. Get a list of States to query 2. Query the Yahoo service 3. Write the XML File 4. Work with flex in importing that xml into a tree
Sound simple enough?
In this *Pt. 1* section of the yahoo maps geocoder, i'm going to go through how to simply query and put the data into variables, and DUMP them....
First, at the top of the page declare your
Next, create your variables, notice you have to Parse the xml from the cfhttp.filecontent
Now, just dump the variables
i'll continue on this at a later date with example files... it requires quite a bit more complexity as we move through this.
url="http://api.local.yahoo.com/MapsService/V1/geocode"
method="post"
throwonerror="yes"
charset="utf-8"
>
<cfhttpparam
type="url" name="appid"
value="MapToolsV1" />
<cfhttpparam
type="url" name="state"
value="IA" />
</cfhttp>
XmlParse(cfhttp.FileContent)>
<cfset Lat =
xmlObject.XMLRoot.XmlChildren[1].XmlChildren[1]>
<cfset Lng =
xmlObject.XMLRoot.XmlChildren[1].XmlChildren[2]>
<cfset State =
xmlObject.XMLRoot.XmlChildren[1].XmlChildren[5]>
#Lat#<br />
#Lng#<br />
#State#<br />
</cfoutput>
it is showing the message that page can't be displayed
http://api.local.yahoo.com/MapsService/V1/geocode?...