GeoCoder Class |
Namespace: Telogis.GeoBase
The GeoCoder type exposes the following members.
Name | Description | |
---|---|---|
BulkGeoCode(GeoCodeArgs) |
Bulk geocode an array of addresses to one or more GeocodeAddresses,
using the given GeoCodeArgs.
| |
BulkGeoCode(GeoCodeArgs, Int32, Boolean) |
Bulk geocode an array of addresses to one or more GeocodeAddresses,
using the given GeoCodeArgs.
| |
BulkReverseGeoCode(LatLon) |
Reverse geocode an array of LatLon to an array of corresponding
street addresses.
| |
BulkReverseGeoCode(LatLon, Int32, Boolean) |
Reverse geocode an array of LatLon to an array of corresponding
street addresses.
| |
BulkReverseGeoCodeFull(ReverseGeoCodeArgs) |
Reverse geocode an array of ReverseGeoCodeArgs to a street address
and retrieve additional information specific to the
StreetLink the point was closest to.
| |
BulkReverseGeoCodeFull(ReverseGeoCodeArgs, Int32, Boolean) |
Reverse geocode an array of ReverseGeoCodeArgs to a street address
and retrieve additional information specific to the
StreetLink the point was closest to.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GeoCode(ExtendedStructuredGeoCodeArgs) |
Geocode an address to one or more GeocodeAddresses,
using the given ExtendedStructuredGeoCodeArgs. Note that external geocoding is not supported
when using ExtendedStructuredGeoCodeArgs.
| |
GeoCode(OneLineGeoCodeArgs) |
Geocode an address to one or more GeocodeAddresses,
using the given OneLineGeoCodeArgs.
| |
GeoCode(StructuredGeoCodeArgs) |
Geocode an address to one or more GeocodeAddresses,
using the given StructuredGeoCodeArgs.
| |
GeoCode(String, Country) |
Geocode a string address to one or more GeocodeAddresses, within the given Country.
| |
GeoCode(String, Country, Int32) |
Geocode a string address to one or more GeocodeAddresses,
within the given Country.
| |
GeoCode(String, String, String, String, Country) |
Geocode from address components.
| |
GeoCode(String, String, String, String, Country, Int32) |
Geocode from address components.
| |
GeoCode(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.
| |
GeoCode(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.
| |
GetCrossStreetDistance | Obsolete.
Return the maximum distance to search for a cross street when doing a reverse geocode full.
| |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
LengthenState |
Convert a two-letter state abbreviation to the state's full name. Given "NC" LengthenState(String, Country) will return "North Carolina".
| |
ReverseGeoCode | ||
ReverseGeoCodeFull(LatLon) |
Reverse geocode a LatLon to a street address
and retrieve additional information specific to the
StreetLink the point was closest to.
| |
ReverseGeoCodeFull(ReverseGeoCodeArgs) |
Reverse geocode a ReverseGeoCodeArgs to a street address
and retrieve additional information specific to the
StreetLink the point was closest to.
| |
ReverseGeoCodeToLink |
Reverse geocode a ReverseGeoCodeArgs to find the closest
LogicalStreetLink.
| |
SetCrossStreetDistance | Obsolete.
Set the maximum distance to search for a cross street when doing a full reverse GeoCode.
| |
ShortenState |
Convert a given state to its two-letter abbreviation. Given "Texas" ShortenState will return "TX".
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
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.
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?"); }