Click or drag to resize

LocationSearchBulkSearch Method (LocationSearchBaseArgs, Int32, Boolean)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Perform a bulk location search using an array of LocationSearchArgs.

Namespace:  Telogis.GeoBase.Geocoding
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static BulkResponse<LocationSearchResult> BulkSearch(
	LocationSearchBaseArgs[] bulkArgs,
	int batchSize,
	bool abortOnErrors
)

Parameters

bulkArgs
Type: Telogis.GeoBase.GeocodingLocationSearchBaseArgs
The array of arguments for the Location Search operations.
batchSize
Type: SystemInt32
The batch size to use when reverse geocoding. Only applicable in GeoStream mode, that is when using a GeoStreamRepository.
abortOnErrors
Type: SystemBoolean
Set to true to abort the bulk Location Search operation with an exception when any Location Search sub-operation fails. Set to false to continue even when a Location Search sub-operation fails.

Return Value

Type: BulkResponseLocationSearchResult
A BulkResponseTResponse object with the results from the bulk Location Search operation.
Examples
C#
var bulkArgs = new[] {
    new LocationSearchArgs {
        Query = "20 enterprise, aliso viejo",
        Countries = new Country[] { Country.USA },
    }
};
LocationSearchResult[] results = LocationSearch.BulkSearch(bulkArgs).Responses;
Console.WriteLine(results[0].Suggestions[0]);
See Also