GeoCodeFull Class |
Namespace: Telogis.GeoBase
The GeoCodeFull type exposes the following members.
Name | Description | |
---|---|---|
GeoCodeFull | Initializes a new instance of the GeoCodeFull class |
Name | Description | |
---|---|---|
CrossStreet |
The name of the nearest cross street to the reverse geocoded point.
| |
CrossStreetIntersection |
The point at which the CrossStreet intersects this street link.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
Address |
The Address
corresponding to the reverse
GeoCoded co-ordinate.
| |
Intersection |
The LatLon point on the StreetLink
closest to the geocoded point.
| |
Location |
The LatLon point suitable for displaying the reverse geocoded address on a map.
For a street address using point address data, this will be the display point for the point address at this location.
For other street addresses, this will typically be a location slightly offset from the street. The Location value is
not suitable for some operations such as routing or further reverse geocoding, as it's not guaranteed that the point
will reverse geocode to the same address again.
| |
StreetLink |
The StreetLink representing the link closest
to the geocoded point.
| |
TimeZone |
The TimeZone of this street link. May be null.
|
Related articles: Geocoding Concept.
// Set a location to reverse geocode (Los Angeles, Ca) LatLon target = new LatLon(33.588799, -117.755851); // Reverse geocode the location GeoCodeFull myResult = GeoCoder.ReverseGeoCodeFull(target); // Retrieve the address at the location Address theAddress = myResult.Address; Console.WriteLine("The found address is {0}", theAddress); // Retrieve the location of the closest intersection LatLon closestIntersection = myResult.Intersection; Console.WriteLine("The intersection nearest this address is at {0}, {1} miles away", closestIntersection, myResult.Intersection.QuickDistanceTo(target, DistanceUnit.MILES).ToString("0.0")); // Retrieve the closest street link StreetLink closestStreetLink = myResult.StreetLink; Console.WriteLine("The street link nearest this address is {0} on the following street:", closestStreetLink.LinkId); for (int i = 0; i < closestStreetLink.Names.Length; i++) { Console.WriteLine("- {0}", closestStreetLink.Names[i]); } // Write the current time at the location Console.WriteLine("The time at this address is {0}", myResult.TimeZone.Value.ConvertTime(DateTime.UtcNow));