GeoCoderBulkGeoCode Method (GeoCodeArgs, Int32, Boolean) |
Namespace: Telogis.GeoBase
public static BulkResponse<GeocodeAddress[]> BulkGeoCode( GeoCodeArgs[] bulkArgs, int batchSize, bool abortOnErrors )
// 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'