My favorites | Sign in
Project Logo
             
New issue | Search
for
| Advanced search | Search tips
Issue 992: Feature Request: Geocoder should return structure representing parsed address
3 people starred this issue and may be notified of changes. Back to list
Status:  Acknowledged
Owner:  ----
ApiType-Geocoder
Type-Enhancement
Internal-1580640


Sign in to add a comment
 
Reported by patterson.ar, Jan 13, 2009
The HTTP Geocoder currently discards any entered unit information when
returning the result. This is problematic for any situation where the
geocoder is being used for address normalization or correction where the
unit information needs to be preserved.

Repro:

Attempt to geocode any address with unit information, eg, "710 2nd Ave Ste
600, Seattle, WA, 98104":

http://maps.google.com/maps/geo?client=YourClientString&sensor=false&output=xml&key=YourKey&q=710+2nd+Ave+Ste+600%2C+Seattle%2C+WA+98104

Expected:

Returned result keeps unit information in the <address> and
<ThoroughfareName> elements.

Actual:

Return result discards unit information:

<kml>
    <Response>
        <name>710 2nd Ave Ste 600, Seattle, WA 98104</name>
        <Status>
            <code>200</code>
            <request>geocode</request>
        </Status>
        <Placemark id = "p1">
            <address>710 2nd Ave, Seattle, WA 98104, USA</address>
            <AddressDetails Accuracy = "8">
                <Country>
                    <CountryNameCode>US</CountryNameCode>
                    <CountryName>USA</CountryName>
                    <AdministrativeArea>
                        <AdministrativeAreaName>WA</AdministrativeAreaName>
                        <Locality>
                            <LocalityName>Seattle</LocalityName>
                            <Thoroughfare>
                                <ThoroughfareName>710 2nd
Ave</ThoroughfareName>
                            </Thoroughfare>
                            <PostalCode>
                                <PostalCodeNumber>98104</PostalCodeNumber>
                            </PostalCode>
                        </Locality>
                    </AdministrativeArea>
                </Country>
            </AddressDetails>
            <ExtendedData>
                <LatLonBox
                    north = "47.6062693"
                    south = "47.5999741"
                    east = "-122.3301057"
                    west = "-122.3364009"/>
            </ExtendedData>
            <Point>
                <coordinates>-122.3332533,47.6031217,0</coordinates>
            </Point>
        </Placemark>
    </Response>
</kml>


*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************
Comment 1 by pamela.fox, Jan 13, 2009
The structured data isn't intended for normalization; it's intended to tell you what
we know about the matching address that we found in our database. Our data does not
include unit information, so we're not going to return that in the structured data. 
Status: WontFix
Comment 2 by patterson.ar, Jan 13, 2009
But it's clear your parser recognizes it as unit information, and this is a feature
request, not a bug request. It seems very bad that the returned data should just
throw away this piece of input entirely; there should at least be an element that
contains that portion of the input that that is clearly being parsed out.
Comment 3 by pamela.fox, Jan 13, 2009
Would it make sense then to change this feature request to return a structure that
represents the parsed address? (As opposed to the result address?)

Comment 4 by patterson.ar, Jan 13, 2009
Yes, that would actually be perfect (and more than I was hoping for) :-)
Comment 5 by pamela.fox, Jan 13, 2009
Well, both are feature requests, but I think that'd make more sense given the meaning
of our current returned structure.

Changing and filing. Thanks for discussing with me.
Summary: Feature Request: Geocoder should return structure representing parsed address
Status: Accepted
Labels: Internal-1580640
Comment 6 by andrew.leach.1, Jan 17, 2009
Pamela asked: "Would it make sense then to change this feature request to return a 
structure that represents the parsed address? (As opposed to the result address?)"

I'd suggest "in addition to" instead of "as opposed to". Add the parsed structure 
but don't change existing behaviour with placemark "p1" etc.

That probably means that the parsed structure should either be the LAST placemark, 
with a suitable id value; or it shouldn't be a placemark at all and some other KML 
element is needed. I don't know what's available in KML. I'm just concerned not to 
break anything that depends on the existing result structure when accommodating an 
enhancement request.

Andrew
Comment 7 by glennfmaynard, May 07, 2009
Just a note about normalizing addresses: if it's for a shipping address, be careful.
 In general, you should use shipping addresses as specified, not normalize them.

For example, I include both a street address (for Fedex) and a PO box (for USPS) in
my mailing address.  Normalizing will inevitably remove the PO box.  (9-digit ZIP
codes don't help here, I've had mail held doing that--postal workers with poor
eyesight, I think.)  Also, my street address is of the form "123 N 62nd St.", and the
"N" is important (N and S aren't connected), but the map doesn't know that and
geocoding only returns "123 62nd St."

This is tangental but probably important to some people reading this; I've had too
many mail delivery problems due to shippers who think they know better than I do what
my mailing address is.

Comment 8 by pamela.fox, May 24, 2009
Changing status of "Accepted" issues to "Acknowledged", to clarify their 
state.

We may not be able to resolve all bugs or fulfill all feature requests, but 
we do thank you for filing them, and we will continually revisit all 
acknowledged issues and evaluate their feasibility. Thanks!

Status: Acknowledged
Sign in to add a comment

Hosted by Google Code