0

Wrong Address Quality Returned

e.g. I am using an address:

343 Minor Ct
Charlotte, NC 28215

In this address home number and street name is wrong and when I pass this address in Yahoo PlaceFinder API, it returns the Address Quality Integer as 87 and when I give the correct address in this zipcode and city then also it returns the Address Quality Integer as 87.

So how do I flag an error to the user that the address he/she has entered is wrong when quality integer is same in both the cases.

Please let me know.

Thanks & Regards,
--Seema Gupta

by
1 Reply
  • You need to look at the result.quality element, not the ResultSet.Quality element.  The former element is returned with each specific result that matches your query.  The quality (note the lowercase "q") element indicates how well the result matches the query.  The latter element indicates the best possible quality for the query.  If the query looks like an address (house number, street name, etc), then the Quality element (not the uppercase "Q") will always be 87 regardless of the "rightness" of the query.

    In your example, the first (and only) result has an address quality of 59, indicating the result matched the city but not the home number or street name.

    Eddie Babcock
    Yahoo! Geo Technologies

    QUOTE(Seema @ 3 Sep 2011 6:32 AM)
    e.g. I am using an address:

    343 Minor Ct
    Charlotte, NC 28215

    In this address home number and street name is wrong and when I pass this address in Yahoo PlaceFinder API, it returns the Address Quality Integer as 87 and when I give the correct address in this zipcode and city then also it returns the Address Quality Integer as 87.

    So how do I flag an error to the user that the address he/she has entered is wrong when quality integer is same in both the cases.

    Please let me know.

    Thanks & Regards,
    --Seema Gupta
    0
This forum is locked.

Recent Posts

in PlaceFinder General Discussion