[Geomoose-users] v2.0.1 and geocode oddities
Johan Forsman
Johan.Forsman at LA.GOV
Mon Nov 16 09:10:18 EST 2009
Hello All.
I am running Geomoose 2.0.1 of the MS4W persuasion, patched from the 2.0.0 release. Everything appears to be functioning well, except I have a bit of trouble convincing the geocoding function to display the results in the Information tab.
I have used Firebug to inspect the data returned by the scripts and it looks quite odd to me. I have attached the complete output from a single geocode request. As you can see there is an entire SimpleXML object in there, not just the results at the bottom. What you see in the attachment is exactly how it looks in the Firebug output and in my copy of Notepad++. I'll freely admit I do not know what it's supposed to look like, but I compared the output to that which is returned on the beautiful Klamath sample Brian Fischer demonstrated last week and in that example only the last part beginning with the <results> tag and including the CDATA is returned. In that application the geocoded link is successfully displayed in the Information tab.
>From what I can tell the address is successfully geocoded, but nothing is displayed in the Information tab. No errors, no info, just blank.
Where do I start looking?
Additionally, my application uses UTM coordinates and the geocode returns latlon, do I need to make additional changes to accommodate this?
Thanks for the advice and the excellent work of the Geomoose creators/maintainers.
Respectfully,
Johan.
----------------------
Johan Forsman
Geologist
Safe Drinking Water Program
Louisiana Department of Health and Hospitals
Office of Public Health
Telephone: 225.342.7309
Telefax: 225.342.7303
-------------- next part --------------
SimpleXMLElement Object
(
[Response] => SimpleXMLElement Object
(
[name] => 628 N. 4th Street, Baton Rouge, LA
[Status] => SimpleXMLElement Object
(
[code] => 200
[request] => geocode
)
[Placemark] => SimpleXMLElement Object
(
[@attributes] => Array
(
[id] => p1
)
[address] => 628 N 4th St, Baton Rouge, LA 70802, USA
[AddressDetails] => SimpleXMLElement Object
(
[@attributes] => Array
(
[Accuracy] => 8
)
[Country] => SimpleXMLElement Object
(
[CountryNameCode] => US
[CountryName] => USA
[AdministrativeArea] => SimpleXMLElement Object
(
[AdministrativeAreaName] => LA
[SubAdministrativeArea] => SimpleXMLElement Object
(
[SubAdministrativeAreaName] => East Baton Rouge
[Locality] => SimpleXMLElement Object
(
[LocalityName] => Baton Rouge
[Thoroughfare] => SimpleXMLElement Object
(
[ThoroughfareName] => 628 N 4th St
)
[PostalCode] => SimpleXMLElement Object
(
[PostalCodeNumber] => 70802
)
)
)
)
)
)
[ExtendedData] => SimpleXMLElement Object
(
[LatLonBox] => SimpleXMLElement Object
(
[@attributes] => Array
(
[north] => 30.4559715
[south] => 30.4496763
[east] => -91.1840472
[west] => -91.1903424
)
)
)
[Point] => SimpleXMLElement Object
(
[coordinates] => -91.1871851,30.4528242,0
)
)
)
)
-91.1871851,30.4528242,0<results><script><![CDATA[var p = new OpenLayers.Geometry.Point(-91.1871851,30.4528242);OpenLayers.Projection.transform(p,new OpenLayers.Projection('WGS84'),Map.getProjectionObject());GeoMOOSE.zoomToPoint(p.x,p.y,100);GeoMOOSE.addPopup(p.x,p.y,150,50,'<b>Address Resolved To:</b> <br/> 628 N. 4th Street, Baton Rouge, LA');]]></script><html><![CDATA[<b>Address Resolved To:</b> <br/> 628 N. 4th Street, Baton Rouge, LA]]></html></results>
More information about the Geomoose-users
mailing list