Click or drag to resize

LatLonSelection Constructor (LatLon, NullableDouble)

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Creates a LatLonSelection that will select the link at the supplied location with the specified heading. If the link permits travel in both directions then the edit will be applied to just one direction if it is within 20 degrees of the supplied heading. Locations should be chosen such that there is only one link at that location, to prevent ambiguities. For example, it is recommended to avoid specifying a location that is near an intersection between two or more links.

Namespace:  Telogis.GeoBase.Routing.LinkEdit
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public LatLonSelection(
	LatLon loc,
	double? heading
)

Parameters

loc
Type: Telogis.GeoBaseLatLon
The location of the edit.
heading
Type: SystemNullableDouble
The heading of the link, in degrees.
Examples
C#
public MyForm() {
    InitializeComponent();
    // Create a LatLon selection. This specifies a single link at the location
    // and heading in one direction (30 degrees, or north east)..
    Telogis.GeoBase.Routing.LinkEdit.LatLonSelection myLatLonSelection = 
        new Telogis.GeoBase.Routing.LinkEdit.LatLonSelection(
            new LatLon(33.632024, -117.815720), 30);
    // Next, create the link edit using the LinkEditDatabase.CreateLinkEdit method...
}
See Also