Click or drag to resize

GeoCodeFull Class

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Detailed information returned from ReverseGeoCodeFull(LatLon): address, closest point on the nearest StreetLink and the nearest StreetLink.
Inheritance Hierarchy
SystemObject
  Telogis.GeoBaseGeoCodeFull

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

The GeoCodeFull type exposes the following members.

Constructors
  NameDescription
Public methodGeoCodeFull
Initializes a new instance of the GeoCodeFull class
Top
Properties
  NameDescription
Public propertyCrossStreet
The name of the nearest cross street to the reverse geocoded point.
Public propertyCode exampleCrossStreetIntersection
The point at which the CrossStreet intersects this street link.
Top
Methods
  NameDescription
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Fields
  NameDescription
Public fieldAddress
The Address corresponding to the reverse GeoCoded co-ordinate.
Public fieldIntersection
The LatLon point on the StreetLink closest to the geocoded point.
Public fieldLocation
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.
Public fieldStreetLink
The StreetLink representing the link closest to the geocoded point.
Public fieldTimeZone
The TimeZone of this street link. May be null.
Top
Remarks

Related articles: Geocoding Concept.

Examples
C#
// 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));
See Also