Fred Block
2008-12-23 15:20:59 UTC
Hi All,
I'm working with the MapPoint Web Service and the following call fails when
an address cannot be located (Object reference not set to an instance of an
object.); working in VB 2008:
Address = returnedLocations(0).Address.AddressLine ' Location object.
NOTE: returnedLocations(0) is the first address that would be returned. The
lat/long I'm using that causes the error is: latitude: 41.38232;
longitude: -72.36272.
How can I find the nearest address if one exists? Can someone point me to a
solution and a way to trap this error if an address is not found?
Thanks in advance!
Kind regards - Fred
I'm working with the MapPoint Web Service and the following call fails when
an address cannot be located (Object reference not set to an instance of an
object.); working in VB 2008:
Address = returnedLocations(0).Address.AddressLine ' Location object.
NOTE: returnedLocations(0) is the first address that would be returned. The
lat/long I'm using that causes the error is: latitude: 41.38232;
longitude: -72.36272.
How can I find the nearest address if one exists? Can someone point me to a
solution and a way to trap this error if an address is not found?
Thanks in advance!
Kind regards - Fred