Click or drag to resize

StreetLinkFence Constructor (LatLon)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Construct a street link fence around the StreetLink where a specified point lies. The constructor is passed a LatLon which should lie on the desired street.

Namespace:  Telogis.GeoBase.GeoFence
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public StreetLinkFence(
	LatLon PointOnLink
)

Parameters

PointOnLink
Type: Telogis.GeoBaseLatLon
A LatLon used to specify the street link.
Exceptions
ExceptionCondition
ArgumentExceptionThrown if PointOnLink does not translate to a street address when reverse geocoded.
Examples
C#
// Create a fence collection
GeoFenceCollection myFences = new GeoFenceCollection();

// Specify the location of a link
LatLon streetLoc = new LatLon(33.584494, -117.731880);

// Create a StreetLinkFence
StreetLinkFence myLinkFence = new StreetLinkFence(streetLoc);

// Add it to the fence collection
myFences.Add(myLinkFence);
See Also