Entity.TypeName Property
Entity.TypeName Property
A string representing the categorization of an entity (EntityType.Name property).
Public TypeName As System.String
[C#]
public System.String TypeName;
Remarks
For more information about names and definitions for geographic entity types in the MapPoint.AP, MapPoint.BR, MapPoint.EU, MapPoint.NA, and MapPoint.World data sources, see MapPoint Data Sources.
For more information about names and definitions for point-of-interest entity types in the MapPoint.NAICS, NavTech.EU, and NavTech.NA data sources, see the following topics:
Example
[Visual Basic]
'Output the Entity type of each found location
Dim findSpec As New FindSpecification()
findSpec.DataSourceName = "MapPoint.NA"
findSpec.InputPlace = "Seattle, WA"
findSpec.Options = New FindOptions()
findSpec.Options.ThresholdScore = 0
Dim foundResults As FindResults
foundResults = findService.Find(findSpec)
Console.WriteLine("Entity Type List")
Dim fr As FindResult
For Each fr In foundResults.Results
Console.WriteLine("The Entity type of " + fr.FoundLocation.Entity.Name _
+ " is " + fr.FoundLocation.Entity.TypeName)
Next
[C#]
//Output the Entity type of each found location
FindSpecification findSpec = new FindSpecification();
findSpec.DataSourceName = "MapPoint.NA";
findSpec.InputPlace = "Seattle, WA";
findSpec.Options = new FindOptions();
findSpec.Options.ThresholdScore = 0;
FindResults foundResults;
foundResults = findService.Find(findSpec);
Console.WriteLine("Entity Type List");
foreach(FindResult fr in foundResults.Results)
{
Console.WriteLine("The Entity type of " + fr.FoundLocation.Entity.Name
+ " is " + fr.FoundLocation.Entity.TypeName);
}
See Also
Entity Class | EntityType.Name Property