FindFilter.EntityTypeName Property

FindFilter.EntityTypeName Property

A string representing the name of the entity type (EntityType.Name property) that the results returned from the point-of-interest and polygon find methods must match.


Public EntityTypeName As System.String


[C#]

public System.String EntityTypeName;

Remarks

  • The EntityTypeName property is required; otherwise, a SOAP fault is returned from the FindByID, FindByProperty, FindNearby, FindPolygon, and FindNearRoute methods.

  • For data sources with a type hierarchy (such as Acxiom, NavTech.EU, and NavTech.NA data sources), all types derived from the specified type are also returned. For example, in the NavTech.EU data source, if you specify EntityType="SICInd581" (Eating and Drinking Places), SIC5800 (Restaurant) and SIC5813 (Nightlife) are also returned.

Example

[Visual Basic]

'Output a property value (the phone number) for each 
'MapPoint.FourthCoffeeSample store nearby
Dim findNearbySpec As New FindNearbySpecification()
findNearbySpec.DataSourceName = "MapPoint.FourthCoffeeSample"
findNearbySpec.Distance = 1
findNearbySpec.LatLong = New LatLong()
findNearbySpec.LatLong.Latitude = 47.6
findNearbySpec.LatLong.Longitude = -122.33
findNearbySpec.Filter = New FindFilter()
findNearbySpec.Filter.EntityTypeName = "FourthCoffeeShops"

Dim foundResults As FindResults
foundResults = findService.FindNearby(findNearbySpec)

Console.WriteLine("Fourth Coffee Shop Store List")
Dim fr As FindResult
For Each fr In foundResults.Results
 Console.WriteLine(fr.FoundLocation.Entity.Name + ": " _
  + fr.FoundLocation.Entity.Properties(6).Value.ToString())
Next



[C#]

//Output a property value (the phone number) for each 
//MapPoint.FourthCoffeeSample store nearby
FindNearbySpecification findNearbySpec  = new FindNearbySpecification();
findNearbySpec.DataSourceName = "MapPoint.FourthCoffeeSample";
findNearbySpec.Distance = 1;
findNearbySpec.LatLong = new LatLong();
findNearbySpec.LatLong.Latitude = 47.6;
findNearbySpec.LatLong.Longitude = -122.33;
findNearbySpec.Filter = new FindFilter();
findNearbySpec.Filter.EntityTypeName = "FourthCoffeeShops";

FindResults foundResults;
foundResults = findService.FindNearby(findNearbySpec);

Console.WriteLine("Fourth Coffee Shop Store List");
foreach(FindResult fr in foundResults.Results)
{
 Console.WriteLine(fr.FoundLocation.Entity.Name + ": "
  + fr.FoundLocation.Entity.Properties[6].Value.ToString());

}


See Also

  FindFilter Class   |   EntityType.Name Property   |   FindServiceSoap Class