Location.Entity Property
Location.Entity Property
The geographic entity (Entity object) for the location.
Public Entity As Entity
[C#]
public Entity Entity;
Remarks
If any other Location property conflicts with the Entity property, the Entity property takes precedence.
The Entity property is required if both the Address property andLatLong property are null.
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
Location Class | Entity Class | Location.Address Property | Location.LatLong Property