FindResult.FoundLocation Property

FindResult.FoundLocation Property

The location (Location object) found using the Find, FindAddress, FindByID, FindByProperty, FindNearby, FindNearRoute, and FindPolygon methods of the FindServiceSoap class.


Public FoundLocation As Location

[C#]

public Location FoundLocation;

Remarks

  • To set the properties of the Location object that are returned in the FoundLocation property from the the Find, FindAddress, FindByID, FindByProperty, FindNearby, or FindNearRoute methods of the FindServiceSoap class, use the FindOptions.ResultMask property.

  • The FoundLocation property returned by the FindByID, FindByProperty, FindNearby, FindNearRoute, or FindPolygon methods does not contain the Location.BestMapView property.

  • The FoundLocation property returned by the FindByID, FindByProperty, FindNearby, or FindNearRoute methods contains the Location.Address property only if the address is contained in the data source searched and the EntityProperty.Name property matches the corresponding property of the Address class.

  • As a MapPoint Web Service customer, you can upload your own point-of-interest data to a custom data source on the MapPoint Web Service servers. For information about preparing your own data to allow the Entity.Name property and an Address object to be in the results returned by the FindNearby method, see the Help topic Prepare location data for uploading on the MapPoint Web Service Customer Services site. For information about how to access the site, see the information that you received when you enrolled in the service.

    Note The EntityProperty.Name property values for address information in the NavTech.EU and NavTech.NA point-of-interest data sources are mapped to match the names of the Address class properties.

Example

[Visual Basic]

'Output the returned find results
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle, WA"

Dim foundResults As FindResults
foundResults = findService.Find(findSpec)

Dim fr As FindResult
For Each fr In foundResults.Results
 Console.WriteLine(fr.FoundLocation.Entity.DisplayName)
Next



[C#]

//Output the returned find results
FindSpecification findSpec  = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";

FindResults foundResults;
foundResults = findService.Find(findSpec);

foreach(FindResult fr in foundResults.Results)
{
 Console.WriteLine(fr.FoundLocation.Entity.DisplayName);
}


See Also

  FindResult Class   |   Location Class   |   FindServiceSoap Class   |   FindOptions.ResultMask Property   |   Address Class