GetInfoOptions.IncludeAddresses Property

GetInfoOptions.IncludeAddresses Property

Indicates whether address information should be returned. The default value is True.


Public IncludeAddresses As System.Boolean = True


[C#]

public System.Boolean IncludeAddresses;

Remarks

  • Address information can be returned from only certain countries or regions within the MapPoint.AP, MapPoint.BR, MapPoint.EU and MapPoint.NA data sources. For more information, see MapPoint.AP Data Source, MapPoint.BR Data Source, MapPoint.EU Data Source, and MapPoint.NA Data Source.

  • If address information is requested, up to four location objects with addresses are returned at the beginning of the array. If no address information is available for the specific latitude and longitude coordinate, no address information is returned.

Note  If address information is requested from the MapPoint.World or MapPoint.WorldRoutable data source, an empty Location.Address property is returned.

Example

[Visual Basic]

'Output possible locations for a user at a specific
'latitude and longitude coordinate, excluding addresses
Dim myLatLong As New LatLong()
myLatLong.Latitude = 47.682
myLatLong.Longitude = -122.132

Dim myOptions As New GetInfoOptions()
myOptions.IncludeAddresses = False

Dim returnedLocations() As Location
returnedLocations = findService.GetLocationInfo(myLatLong, "MapPoint.NA", myOptions)

Dim i As Integer
For i = 0 To returnedLocations.Length - 1
 Console.WriteLine(returnedLocations(i).Entity.DisplayName)
Next



[C#]

//Output possible locations for a user at a specific
//latitude and longitude coordinate, excluding addresses
LatLong myLatLong  = new LatLong();
myLatLong.Latitude = 47.682;
myLatLong.Longitude = -122.132;

GetInfoOptions myOptions  = new GetInfoOptions();
myOptions.IncludeAddresses = false;

Location[] returnedLocations = findService.GetLocationInfo(myLatLong, "MapPoint.NA", myOptions);

for(int i = 0; i < returnedLocations.Length; i++)
{
 Console.WriteLine(returnedLocations[i].Entity.DisplayName);
}


See Also

  GetInfoOptions Class   |   MapPoint.EU DataSource   |   MapPoint.NA DataSource   |   Location.Address Property