Click or drag to resize

StreetLinkFence Constructor (StreetLink)

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 that contains a specified address.

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

Parameters

sl
Type: Telogis.GeoBaseStreetLink
The StreetLink to build a fence around.
Examples
C#
// Create a fence collection
GeoFenceCollection myFences = new GeoFenceCollection();

// Find the link the address lies upon
   StreetLink myStreetLink = GeoCoder.ReverseGeoCodeFull(
      GeoCoder.GeoCode("20 Enterprise, Aliso Viejo, Los Angeles", 
   Country.USA)[0].Location).StreetLink;

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

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