LinkEditDatabaseCompile Method |
Namespace: Telogis.GeoBase.Routing.LinkEdit
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(); }