Click or drag to resize

LinkEditDatabaseCompile Method

Verizon Connect Logo
Print this page
Learn more about Verizon Connect GeoBase.
Get information about the latest release
Compiles the database into a CompiledLinkEdits object that can be set on a RoutingStrategy object.

Namespace:  Telogis.GeoBase.Routing.LinkEdit
Assembly:  geobase.net (in geobase.net.dll) Version: 4.99.0.0
Syntax
public CompiledLinkEdits Compile()

Return Value

Type: CompiledLinkEdits
A CompiledLinkEdits object representing the edits in the database.
Examples
C#
public MyForm() {
    InitializeComponent();
    // Create a link edit database in local memory...
    Telogis.GeoBase.Routing.LinkEdit.LinkEditDatabase myLinkEditDatabase =
        new Telogis.GeoBase.Routing.LinkEdit.LinkEditDatabase();
    // Then create a link selection. This example specifies a single link.
    Telogis.GeoBase.Routing.LinkEdit.LatLonSelection myLatLonSelection =
        new Telogis.GeoBase.Routing.LinkEdit.LatLonSelection(new LatLon(33.632024, -117.815720));
    // Then create a link edit. Set the link speed to a maximum of 15MPH.
    myLinkEditDatabase.CreateLinkEdit(myLatLonSelection, 15, Telogis.GeoBase.SpeedUnit.MilesPerHour);
    // Compile the link edit database ready to be applied to a routing 
    // strategy using the RoutingStrategy.LinkEdits property.
    Telogis.GeoBase.Routing.LinkEdit.CompiledLinkEdits myCompiledLinksDatabase = myLinkEditDatabase.Compile();
}
See Also