Pratibha_Pillai
03-20-2009, 01:27 AM
Hi,
I am new to Mappoint web service.My requirement is to get address like city,state,country given the latitude and longitude values.Thus i made use of GetLocationInfo .....but it throws a web exception ...I don't knw whats really the issue.Please help me in resolving this issue.
FindServiceSoap findService = new FindServiceSoap();
LatLong myLatLong = new LatLong();
myLatLong.Latitude = 47.682;
myLatLong.Longitude = -122.132;
Location[] returnedLocations;
returnedLocations = findService.GetLocationInfo(myLatLong, "MapPoint.NA", null); //Throws a Web exception
for(int i = 0; i < returnedLocations.Length; i++)
{
Console.WriteLine(returnedLocations[i].Entity.DisplayName);
}
Thanks in advance.
I am new to Mappoint web service.My requirement is to get address like city,state,country given the latitude and longitude values.Thus i made use of GetLocationInfo .....but it throws a web exception ...I don't knw whats really the issue.Please help me in resolving this issue.
FindServiceSoap findService = new FindServiceSoap();
LatLong myLatLong = new LatLong();
myLatLong.Latitude = 47.682;
myLatLong.Longitude = -122.132;
Location[] returnedLocations;
returnedLocations = findService.GetLocationInfo(myLatLong, "MapPoint.NA", null); //Throws a Web exception
for(int i = 0; i < returnedLocations.Length; i++)
{
Console.WriteLine(returnedLocations[i].Entity.DisplayName);
}
Thanks in advance.