Click or drag to resize

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

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,
	int maxResults
)

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.
maxResults
Type: SystemInt32
The maximum number of results to return.

Return Value

Type: GeocodeAddress
An array of GeocodeAddresses.
Remarks

See also here.

Examples
C#
// Geocode an address
GeocodeAddress[] addr = GeoCoder.GeoCode(29500, "via", "null", "alto cero", "null", "null", "laguna niguel", "California", "92677", Country.USA, 5);
// Write out the first address in the array
Console.WriteLine("Found address {0}", addr[0].ToString());
// Prints 'Found address 29500 Via Alto Cerro, Laguna Niguel, California, 92677, USA'
See Also