Click or drag to resize

GeoCoderBulkGeoCode Method (GeoCodeArgs, Int32, Boolean)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Bulk geocode an array of addresses to one or more GeocodeAddresses, using the given GeoCodeArgs.

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

Parameters

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

Return Value

Type: BulkResponseGeocodeAddress
A BulkResponseTResponse object with the results from the bulk geocoding operation.
Examples
C#
// Geocode using StructuredGeoCodeArgs arguments. Max returned results = 5
var addressesToGeoCode = new[] {
    new StructuredGeoCodeArgs {
        Address = "17 West Ryley Court",
        City = "Aliso Viejo",
        Region = "California",
        PostalCode = "92656",
        MaxResults = 5,
        Country = Country.USA
    }
};
GeocodeAddress[][] addr = GeoCoder.BulkGeoCode(addressesToGeoCode, 50).Responses;
// Write out the first address in the array
Console.WriteLine("Found address {0}", addr[0][0]);
// Prints 'Found address 17 W Ryley Ct, Aliso Viejo, California, 92656, USA'
See Also