User Tools

Site Tools


api:dk11:python:tatukgis.pdk.tgis_shortestpath

TGIS_ShortestPath class

DK11 for Python | tatukgis.pdk.TGIS_ShortestPath | Classes | Constructors | Methods | Properties | Events

Encapsulation of shortest path algorithm.

Available also on: Delphi | .NET | Java | ActiveX.

Syntax

# Python
class TGIS_ShortestPath( Object ):

Inheritance

→ Object

Constructors

Inherited Overrides Protected
Name Visibility Description
__init__ public Create an instance.

Methods

Inherited Overrides Protected
Name Visibility Description
Find public Find path between two existing nodes.
LoadTheData public Load data from the layer.
Regenerate public Recreate network (including network storage files).
StartPos public Set a start position for the shortest path.
StopPos public Set a stop position for the shortest path and run shortest path.
UpdateTheData public Update the data with geocoded addresses from geocoder

Properties

Inherited Protected
Name Visibility Description
CompassBlocks public Compass divided to a number of blocks (4 by default).
CostModifiers public Cost modifier.
Extent public Path extent.
HeuristicCostModifier public Heuristic cost modifier.
HeuristicMode public Mode of heuristic operation.
HeuristicThreshold public Threshold of starting node seeking area.
Items public Items in the shortest path.
ItemsCount public Number of items in the shortest path.
Layer public Layer assigned to the shortest path.
Network public Instance of Network class (responsible for low level network operations)
OSMRouting public If true the local routing resource is ignored and the requests are send to the TatukGIS online routing service.
RoadLength public Field name used to calculate segment length.
RoadName public Field for the feature name.
StoragePath public Forced storage path.
TotalCost public Total cost of the path.

Events

Inherited Protected
Name Visibility Description
LinkCostEvent published Event which will be fired upon creating a network.
LinkDynamicEvent published Event which will be fired upon traversing link.
LinkLevelEvent published Event which will be fired upon getting the level of the endings of each link.
LinkTypeEvent published Event which will be fired upon getting the type of each link.
NodeHeuristicCostEvent published Event which will be fired upon calculation of heuristic cost.
PathEvent published Event which will be fired on each link of the discovered shortest path.

References

2022/11/30 19:42

Page Tools