Click or drag to resize

GeoCoder Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
The GeoCoder allows you to convert a map coordinate to/from an address.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBaseGeoCoder

Namespace:  Telogis.GeoBase
Assembly:  geobase.net (in geobase.net.dll) Version: 4.83.0.0
Syntax
public class GeoCoder

The GeoCoder type exposes the following members.

Constructors
  NameDescription
Public methodGeoCoder
Initializes a new instance of the GeoCoder class
Top
Methods
  NameDescription
Public methodStatic memberCode exampleBulkGeoCode(GeoCodeArgs)
Bulk geocode an array of addresses to one or more GeocodeAddresses, using the given GeoCodeArgs.
Public methodStatic memberCode exampleBulkGeoCode(GeoCodeArgs, Int32)
Bulk geocode an array of addresses to one or more GeocodeAddresses, using the given GeoCodeArgs.
Public methodStatic memberCode exampleBulkReverseGeoCode(LatLon)
Reverse geocode an array of LatLon to an array of corresponding street addresses.
Public methodStatic memberCode exampleBulkReverseGeoCode(LatLon, Int32)
Reverse geocode an array of LatLon to an array of corresponding street addresses.
Public methodStatic memberCode exampleBulkReverseGeoCodeFull(ReverseGeoCodeArgs)
Reverse geocode an array of ReverseGeoCodeArgs to a street address and retrieve additional information specific to the StreetLink the point was closest to.
Public methodStatic memberCode exampleBulkReverseGeoCodeFull(ReverseGeoCodeArgs, Int32)
Reverse geocode an array of ReverseGeoCodeArgs to a street address and retrieve additional information specific to the StreetLink the point was closest to.
Public methodEquals (Inherited from Object.)
Public methodStatic memberCode exampleGeoCode(ExtendedStructuredGeoCodeArgs)
Geocode an address to one or more GeocodeAddresses, using the given ExtendedStructuredGeoCodeArgs. Note that external geocoding is not supported when using ExtendedStructuredGeoCodeArgs.
Public methodStatic memberCode exampleGeoCode(OneLineGeoCodeArgs)
Geocode an address to one or more GeocodeAddresses, using the given OneLineGeoCodeArgs.
Public methodStatic memberCode exampleGeoCode(StructuredGeoCodeArgs)
Geocode an address to one or more GeocodeAddresses, using the given StructuredGeoCodeArgs.
Public methodStatic memberCode exampleGeoCode(String, Country)
Geocode a string address to one or more GeocodeAddresses, within the given Country.
Public methodStatic memberCode exampleGeoCode(String, Country, Int32)
Geocode a string address to one or more GeocodeAddresses, within the given Country.
Public methodStatic memberCode exampleGeoCode(String, String, String, String, Country)
Geocode from address components.
Public methodStatic memberCode exampleGeoCode(String, String, String, String, Country, Int32)
Geocode from address components.
Public methodStatic memberCode exampleGeoCode(Int32, String, String, String, String, String, String, String, String, Country)
Use forward geocoding to resolve an address (specified as separate fields), city, region, postal code and Country to one or more GeocodeAddresses.
Public methodStatic memberCode exampleGeoCode(Int32, String, String, String, String, String, String, String, String, Country, Int32)
Use forward geocoding to resolve an address (specified as separate fields), city, region, postal code and Country to one or more GeocodeAddresses.
Public methodStatic memberGetCrossStreetDistance Obsolete.
Return the maximum distance to search for a cross street when doing a reverse geocode full.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberCode exampleLengthenState
Convert a two-letter state abbreviation to the state's full name. Given "NC" LengthenState(String, Country) will return "North Carolina".
Public methodStatic memberCode exampleReverseGeoCode
Reverse geocode from a LatLon to a street Address. This method will return null if an address could not be found.
Public methodStatic memberCode exampleReverseGeoCodeFull(LatLon)
Reverse geocode a LatLon to a street address and retrieve additional information specific to the StreetLink the point was closest to.
Public methodStatic memberCode exampleReverseGeoCodeFull(ReverseGeoCodeArgs)
Reverse geocode a ReverseGeoCodeArgs to a street address and retrieve additional information specific to the StreetLink the point was closest to.
Public methodStatic memberCode exampleReverseGeoCodeToLink
Reverse geocode a ReverseGeoCodeArgs to find the closest LogicalStreetLink.
Public methodStatic memberSetCrossStreetDistance Obsolete.
Set the maximum distance to search for a cross street when doing a full reverse GeoCode.
Public methodStatic memberCode exampleShortenState
Convert a given state to its two-letter abbreviation. Given "Texas" ShortenState will return "TX".
Public methodToString (Inherited from Object.)
Top
Remarks

Forward geocoding takes physical address information in string form, and returns an array of GeocodeAddress objects (containing LatLon coordinates, regional information and information about the geocoding process) representing potential matches. Use a GeoCode Overload method to perform a forward geocode.

Reverse geocoding takes a LatLon coordinate and returns physical address information. Use the ReverseGeoCode(LatLon) method to obtain an Address object (street name, suburb, city and other regional information). For more detailed information about the map coordinate consider using a ReverseGeoCodeFull Overload to obtain a GeoCodeFull object (this includes an Address object, but also provides information about the nearest street section and the timezone of the map coordinate).

Related articles: Geocoding Concept, Address Interpolation and Point Address Data, Searching for a Location, Common Concepts, Creating a Route, Routing and Directions.

Examples
C#
GeocodeAddress[] geocodeExample = GeoCoder.GeoCode("20 Enterprise, Aliso Viejo, CA", Country.USA);
if (geocodeExample.Length > 0) {
    Console.WriteLine("Found address {0} at LatLon {1}", geocodeExample[0], geocodeExample[0].Location);
    // 'Found address 20 Enterprise, Aliso Viejo, California, 92656, USA at LatLon 33.584444,-117.731874'
} else {
    Console.WriteLine("Is USA map data installed?");
}
See Also