How do you fight against the entropy in the returned xml from google maps geocoding?
<p><a href="http://maps.googleapis.com/maps/api/geocode/xml?address=55124&amp;sensor=false" rel="nofollow">http://maps.googleapis.com/maps/api/geocode/xml?address=55124&amp;sensor=false</a></p>

<p>For example ^ the url above will take the supplied zip code and return approximate lat and lng coordinates and a formatted address along with "address components" containing things like city,state,country and what not.</p>

<p>The question is (if you play with it and enter different types of addresses) how could you write code that would discern the differences in the address components? how could i be sure that the value i'm seeking is in fact the city and not the street?</p>

<p>It doesn't to be reliable xml. There is entropy if i'm not mistaken. Anyone know a way to guarantee a value? </p>
