GeoCoderGeoCode Method (Int32, String, String, String, String, String, String, String, String, Country) | |
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
)
Public Shared Function GeoCode (
number As Integer,
prefix As String,
bf_type As String,
name As String,
af_type As String,
suffix As String,
city As String,
region As String,
postalCode As String,
country As Country
) As GeocodeAddress()
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:
GeocodeAddressAn 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'.
Telogis.GeoBase.GeocodeAddress[] addr = Telogis.GeoBase.GeoCoder.GeoCode(
18,
String.Empty,
"Boulevard",
"Beau Rivage",
String.Empty,
"Prolonge",
"Antibes",
"Provence-Alpes-Côte D'Azur",
"06600",
Country.France);
if (addr.Length >= 1) {
Console.WriteLine("Found address '{0}' at location '{1}'", addr[0], addr[0].Location);
}
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