LocationSearchSourceHandledResultTypes Property |
Namespace: Telogis.GeoBase.Geocoding
This property is checked prior to calling IsApplicableToSearch(LocationSearchBaseArgs). If there are no types in common between the search arguments' result types and the value of this property, then IsApplicableToSearch(LocationSearchBaseArgs) is not called and the source will not be searched.
It is preferable to design search sources so that they only handle a minimal number of result types, instead splitting sources into multiple sources when supporting different types. This is desirable because if any types are excluded by GetIgnoredTypesForApplicableSearches(LocationSearchBaseArgs) or GetIgnoredTypesForMatchingSearches(LocationSearchBaseArgs), a source will still be searched if any of its handled types are not excluded. Any results from these sources that have excluded types may still be included, since there is no requirement that result types specified in search arguments as the same types used in results.