Discussion:
FindServiceSoap() Method and Zip 5+4 Results
(too old to reply)
az
2009-10-09 18:48:01 UTC
Permalink
I have an address with a zip code missing.

Address = 59 Loring Avenue
City = Salem
State = MA
PostalCode=""

When I make my FindAddress() call, I get the zip 5, but it's not the
correct one (the correct is 01970), instead it's near town Swampscott, MA
which has zip=01907
<Lat_Long>
<Lat>42.4848455620844</Lat>
<Long>-70.9050407173595</Long>
<city>Salem</city>
<state>MA</state>
<postalcode>01907</postalcode>
</Lat_Long>


If I use the wrong city (Swampscott):
Address = 59 Loring Avenue
City = Swampscott
State = MA
PostalCode=""

I get the incorrect result with correct zip code 5 + 4.

<Lat_Long>
<Lat>42.484882</Lat>
<Long>-70.905041</Long>
<city>Swampscott</city>
<state>MA</state>
<postalcode>01907-1257</postalcode>
</Lat_Long>

But local.live.com gives a correct address, city and zip, so there should be
a way to do this.

Any ideas?
Thanks.
Derek Chan
2009-10-12 15:06:10 UTC
Permalink
local.live.com doesn't use the Mappoint Web Service to make their geocodes,
but a different one which unfortunately isn't documented anywhere publicly.

You can give the Bing Geocode Web Service a try to see if it can return you
the 5+4 postal code. You may need to do some parsing of the string to pull
it out though.

Look here for more information:
http://msdn.microsoft.com/en-us/library/cc980922.aspx

You can post on the MSDN Bing Forums if you have any issues with the Bing
Web Services:
http://social.msdn.microsoft.com/Forums/en/vemapcontroldev/threads

Hope that helps,
--
Windows Live Platform MVP
Post by az
I have an address with a zip code missing.
Address = 59 Loring Avenue
City = Salem
State = MA
PostalCode=""
When I make my FindAddress() call, I get the zip 5, but it's not the
correct one (the correct is 01970), instead it's near town Swampscott, MA
which has zip=01907
<Lat_Long>
<Lat>42.4848455620844</Lat>
<Long>-70.9050407173595</Long>
<city>Salem</city>
<state>MA</state>
<postalcode>01907</postalcode>
</Lat_Long>
Address = 59 Loring Avenue
City = Swampscott
State = MA
PostalCode=""
I get the incorrect result with correct zip code 5 + 4.
<Lat_Long>
<Lat>42.484882</Lat>
<Long>-70.905041</Long>
<city>Swampscott</city>
<state>MA</state>
<postalcode>01907-1257</postalcode>
</Lat_Long>
But local.live.com gives a correct address, city and zip, so there should be
a way to do this.
Any ideas?
Thanks.
Loading...