Click or drag to resize

GeoCoderGeoCode Method (Int32, String, String, String, String, String, String, String, String, Country)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Use forward geocoding to resolve an address (specified as separate fields), city, region, postal code and Country to one or more GeocodeAddresses.

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public static GeocodeAddress[] GeoCode(
	int number,
	string prefix,
	string bf_type,
	string name,
	string af_type,
	string suffix,
	string city,
	string region,
	string postalCode,
	Country country
)

Parameters

number
Type: SystemInt32
An integer representing the street number.
prefix
Type: SystemString
A string representing the street prefix, such as 'chemin' or 'north'.
bf_type
Type: SystemString
A string representing the street type (before), such as 'rue' or 'boulevard'.
name
Type: SystemString
A string representing the street name.
af_type
Type: SystemString
A string representing the street type (after), such as 'street', 'avenue' or 'road'.
suffix
Type: SystemString
A string representing the street suffix, such as 'north', 'central' or 'loop'.
city
Type: SystemString
A string representing the city.
region
Type: SystemString
A string representing the region or state (two character state abbreviations may also be used).
postalCode
Type: SystemString
A string representing the postal code.
country
Type: Telogis.GeoBaseCountry
The Country to perform the GeoCode in.

Return Value

Type: GeocodeAddress
An array of GeocodeAddresses.
Examples
In the example below we will search for '18 Boulevard Beau Rivage, Antibes, Provence-Alpes-Côte D'Azur, 06600, France'.
C#
Telogis.GeoBase.GeocodeAddress[] addr = Telogis.GeoBase.GeoCoder.GeoCode(
   18, // number
   String.Empty, // prefix, for example 'north'
   "Boulevard", // 'before' type (bf_type), for example 'rue' or 'boulevard' 
   "Beau Rivage", // street name
   String.Empty, // 'after' type (af_type), for example 'street' or 'avenue'
   "Prolonge", // street suffix, for example 'west'
   "Antibes", // city
   "Provence-Alpes-Côte D'Azur", // region or state 
   "06600", // postal code
   Country.France); // country

if (addr.Length >= 1) {
   Console.WriteLine("Found address '{0}' at location '{1}'", addr[0], addr[0].Location);
   // Writes the following:
   // Found address '18 Boulevard Beau Rivage, Antibes, Provence-Alpes-Côte 
   // D'Azur, 06600, France' at location '43.601096,7.123644'
}
An example that uses 'af_type' and 'suffix' in North America: '100 King Street West, Kitchener, ON, N2G 1A6, Canada'. This would be entered as number '100', name 'King', af_type 'Street', suffix 'W', city 'Kitchener', region 'ON', postal code 'N2G 1A6', country 'Country.Canada'.
See Also