Wednesday, November 10, 2010

[Google Maps API v2] Same address can return different responses

A link to my map page is: http://test.ecosearch.emergeknowledge.com/ecosearch

The problem I've found is that the same address string can return
different result sets.

For example, if I search with location "140 West Us30, 46375,
Schererville, IN, USA", I get two potential results back from the maps
api. The first kind of result returns only one placemark with an
accuracy of 6. The second results returns 3 placemarks with an
accuracy of 8, 6, 6. I've attached the xml responses to the bottom of
this post.

I noticed this issue because I'm trying to import some locations into
the system but during testing I'm not getting consistent results from
the import. I understand the address I've shown as an example isn't
well formatted, but I'm thinking a poorly formatted address should
still return the same result set.

I tried this same location search at maps.google.com and I observed
the same behaviour where the same address would return different
result sets. Any info on this issue would be appreciated as I need to
be able to ensure that the same address, regardless of how well it is
formed, will tend to always return the same result.
Thanks,

Hudson

<kml xmlns="http://earth.google.com/kml/2.0"><Response>
<name>140 West Us30, 46375, Schererville, IN, USA</name>
<Status>
<code>200</code>
<request>geocode</request>
</Status>
<Placemark id="p1">
<address>U.S. 30, Schererville, IN 46375, USA</address>
<AddressDetails Accuracy="6"
xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:
2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</
CountryName><AdministrativeArea><AdministrativeAreaName>IN</
AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>Lake</
SubAdministrativeAreaName><Locality><LocalityName>Schererville</
LocalityName><Thoroughfare><ThoroughfareName>U.S. 30</
ThoroughfareName></Thoroughfare><PostalCode><PostalCodeNumber>46375</
PostalCodeNumber></PostalCode></Locality></SubAdministrativeArea></
AdministrativeArea></Country></AddressDetails>
<ExtendedData>
<LatLonBox north="41.4912505" south="41.4815280"
east="-87.4339740" west="-87.4882160" />
</ExtendedData>
<Point><coordinates>-87.4609530,41.4903820,0</coordinates></Point>
</Placemark>
</Response></kml>

or

<kml xmlns="http://earth.google.com/kml/2.0"><Response>
<name>140 West Us30, 46375, Schererville, IN, USA</name>
<Status>
<code>200</code>
<request>geocode</request>
</Status>
<Placemark id="p1">
<address>U.S. 30, Schererville, IN 46375, USA</address>
<AddressDetails Accuracy="6"
xmlns="urn:oasis:names:tc:ciq:xsdschema:xAL:
2.0"><Country><CountryNameCode>US</CountryNameCode><CountryName>USA</
CountryName><AdministrativeArea><AdministrativeAreaName>IN</
AdministrativeAreaName><SubAdministrativeArea><SubAdministrativeAreaName>Lake</
SubAdministrativeAreaName><Locality><LocalityName>Schererville</
LocalityName><Thoroughfare><ThoroughfareName>U.S. 30</
ThoroughfareName></Thoroughfare><PostalCode><PostalCodeNumber>46375</
PostalCodeNumber></PostalCode></Locality></SubAdministrativeArea></
AdministrativeArea></Country></AddressDetails>
<ExtendedData>
<LatLonBox north="41.4912505" south="41.4815280"
east="-87.4339740" west="-87.4882160" />
</ExtendedData>
<Point><coordinates>-87.4609530,41.4903820,0</coordinates></Point>
</Placemark>
</Response></kml>

--
You received this message because you are subscribed to the Google Groups "Google Maps API V2" group.
To post to this group, send email to google-maps-api@googlegroups.com.
To unsubscribe from this group, send email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate