It's better to use the geocoding web service for this kind of functionality
rather than try to scrub the web page.
Just look for the "warning" attribute in the "Result" element in the xml:
Documentation can be found here:
] On Behalf
Sent: Wednesday, June 13, 2007 8:51 AM
Subject: [yws-maps] Pleaase Advise
We take an address and zip code from our database to create the URL
for Yahoo maps....
$fp = fopen("http://maps.
urlencode($rs["address"]) . "&csz=" . $rs["zipcode"] . "&country=us",
$fp becomes a file pointer to the source code of the Yahoo map page.
Then we search the Yahoo! source code for something that indicates
that the address could not be found in that zip code.
Yahoo! used to display the follow message: "The specific address could
not be found, but here is the area." And if we found that we knew the
address was bad.
Yahoo! no longer displays that message, it just displays the
city/state with a general, centered, location
Can some one tell me how I might point to something with Yahoo!Maps so
that I'll know it is a bad address?
Thanks very much...
[Non-text portions of this message have been removed]