ThinkGeo.MapSuite.Routing.RoutingEngine
Note: The page was created before Map Suite 10. Map Suite 10.0 organized many classes into new namespaces and assemblies as well as had a few minor breaks in compatibility. The majority of previously built code should work without modification assuming the new namespaces are added. For guidance on upgrading your existing code, please check out MapSuite 10 Upgrade Guide.
This class is for finding a route.
Inheritance Hierarchy
Members Summary
Public Constructors
RoutingEngine()
The default settings are: RoutingSource is null, routingAlgorithm is Dijkstra, FeatureSource is null, GeographyUnit is DecimalDegree, DistanceUnit is Kilometer.
Parameters
RoutingEngine(RoutingSource)
The default settings are: RoutingSource is null, routingAlgorithm is Dijkstra, FeatureSource is null, GeographyUnit is DecimalDegree, DistanceUnit is Kilometer.
Parameters
RoutingEngine(RoutingSource,FeatureSource)
The default settings are: RoutingSource is null, routingAlgorithm is Dijkstra, FeatureSource is null, GeographyUnit is DecimalDegree, DistanceUnit is Kilometer.
Parameters
RoutingEngine(RoutingSource,RoutingAlgorithm)
The default settings are: RoutingSource is null, routingAlgorithm is Dijkstra, FeatureSource is null, GeographyUnit is DecimalDegree, DistanceUnit is Kilometer.
Parameters
RoutingEngine(RoutingSource,RoutingAlgorithm,FeatureSource)
The default settings are: RoutingSource is null, routingAlgorithm is Dijkstra, FeatureSource is null, GeographyUnit is DecimalDegree, DistanceUnit is Kilometer.
Parameters
RoutingEngine(RoutingSource,RoutingAlgorithm,FeatureSource,GeographyUnit)
The default settings are: RoutingSource is null, routingAlgorithm is Dijkstra, FeatureSource is null, GeographyUnit is DecimalDegree, DistanceUnit is Kilometer.
Parameters
RoutingEngine(RoutingSource,RoutingAlgorithm,FeatureSource,GeographyUnit,DistanceUnit)
The default settings are: RoutingSource is null, routingAlgorithm is Dijkstra, FeatureSource is null, GeographyUnit is DecimalDegree, DistanceUnit is Kilometer.
Parameters
Protected Constructors
Public Methods
GetRouteSegments(String,String)
This method for users who don't know the feature source. If the user knows the feature source, they should use GetRoute to get more information. This method is one of the most common routing requirements for a simple path, wherein a customer inputs two feature IDs that represent routeSegments and then finds a route. The route will be calculated from a specified start routeSegment to a specified end routeSegment.
Return Value
Parameters
GetRoute(PointShape,PointShape)
This method generates turn-by-turn driving directions for any route. It cannot be changed by overriding GetRouteCore. This method is for users who know the feature source. If the user does not know the feature source, they should use GetRouteSegments instead. This method is one of the most common routing requirements for a simple path, wherein a customer inputs two points and then finds a route. The route will be calculated from a specified start point to a specified end point.
Return Value
Parameters
GetRoute(PointShape,IEnumerable<PointShape>)
Return Value
Parameters
GetRoute(PointShape,IEnumerable<PointShape>,Int32)
Return Value
Parameters
iterations
Type:Int32
Description:N/A
GetRoute(PointShape,PointShape,IEnumerable<PointShape>)
Return Value
Parameters
GetRoute(PointShape,PointShape,IEnumerable<PointShape>,Int32)
Return Value
Parameters
iterations
Type:Int32
Description:N/A
GetRoute(String,IEnumerable<String>)
Return Value
Parameters
startFeatureId
Type:String
Description:N/A
stopFeatureIds
Type:IEnumerable<String>
Description:N/A
GetRoute(String,IEnumerable<String>,Int32)
Return Value
Parameters
startFeatureId
Type:String
Description:N/A
stopFeatureIds
Type:IEnumerable<String>
Description:N/A
iterations
Type:Int32
Description:N/A
GetRoute(String,String)
This method generates turn-by-turn driving directions for any route. It cannot be changed by overriding GetRouteCore. This method is for users who know the feature source. If the user does not know the feature source, they should use GetRouteSegments instead. This method is one of the most common routing requirements for a simple path, wherein a customer inputs two feature IDs that represent routeSegments and gets back a route. The route will be calculated from a specified start routeSegment to a specified end routeSegment.
Return Value
Parameters
GetRoute(String,String,IEnumerable<String>)
Return Value
Parameters
startFeatureId
Type:String
Description:N/A
endFeatureId
Type:String
Description:N/A
stopFeatureIds
Type:IEnumerable<String>
Description:N/A
GetRoute(String,String,IEnumerable<String>,Int32)
Return Value
Parameters
startFeatureId
Type:String
Description:N/A
endFeatureId
Type:String
Description:N/A
stopFeatureIds
Type:IEnumerable<String>
Description:N/A
iterations
Type:Int32
Description:N/A
GenerateServiceArea(PointShape,TimeSpan)
Return Value
Parameters
drivingTime
Type:TimeSpan
Description:N/A
GenerateServiceArea(PointShape,TimeSpan,Double,GeographyUnit)
Return Value
Parameters
drivingTime
Type:TimeSpan
Description:N/A
gridSize
Type:Double
Description:N/A
GenerateServiceArea(String,TimeSpan)
Return Value
Parameters
centerFeatureId
Type:String
Description:N/A
drivingTime
Type:TimeSpan
Description:N/A
GenerateServiceArea(String,TimeSpan,Double,GeographyUnit)
Return Value
Parameters
centerFeatureId
Type:String
Description:N/A
drivingTime
Type:TimeSpan
Description:N/A
gridSize
Type:Double
Description:N/A
GenerateServiceArea(Double,Double,TimeSpan,Single,SpeedUnit)
You can define service ranges based on limits of speed and time. A service area is a region that encompasses all accessible routes (such as streets). The default geography unit for a feature source is decimal degrees. The default distance unit for the average speed is kilometers. For example, the 5-minute service area for a point includes all the streets that can be reached within five minutes from that point.
Return Value
Parameters
GenerateServiceArea(PointShape,TimeSpan,Single,SpeedUnit)
You can define service ranges based on limits of speed and time. A service area is a region that encompasses all accessible routes (such as streets). The default geography unit for a feature source is decimal degrees. The default distance unit for the average speed is kilometers. For example, the 5-minute service area for a point includes all the streets that can be reached within five minutes from that point.
Return Value
Parameters
GenerateServiceArea(PointShape,TimeSpan,Single,SpeedUnit,Double,GeographyUnit)
Return Value
Parameters
drivingTime
Type:TimeSpan
Description:N/A
averageSpeed
Type:Single
Description:N/A
gridSize
Type:Double
Description:N/A
GenerateServiceArea(String,TimeSpan,Single,SpeedUnit)
You can define service ranges based on limits of speed and time. A service area is a region that encompasses all accessible routes (such as streets). The default geography unit for a feature source is decimal degrees. The default distance unit for the average speed is kilometers. For example, the 5-minute service area for a point includes all the streets that can be reached within five minutes from that point.
Return Value
Parameters
GenerateServiceArea(String,TimeSpan,Single,SpeedUnit,Double,GeographyUnit)
Return Value
Parameters
centerFeatureId
Type:String
Description:N/A
drivingTime
Type:TimeSpan
Description:N/A
averageSpeed
Type:Single
Description:N/A
gridSize
Type:Double
Description:N/A
ToString()
Return Value
Type:String
Description:N/A
Parameters
Equals(Object)
Return Value
Type:Boolean
Description:N/A
Parameters
obj
Type:Object
Description:N/A
GetHashCode()
Return Value
Type:Int32
Description:N/A
Parameters
GetType()
Return Value
Type:Type
Description:N/A
Parameters

GetAngleBetweenTwoLines(LineShape,LineShape)
Return Value
Parameters

GetDrivingDirection(LineShape,LineShape)
Return Value
Parameters
Protected Methods
GetRouteCore(String,String,IEnumerable<String>,Int32)
Return Value
Parameters
startFeatureId
Type:String
Description:N/A
endFeatureId
Type:String
Description:N/A
stopFeatureIds
Type:IEnumerable<String>
Description:N/A
iterations
Type:Int32
Description:N/A
GetRouteCoreWithPoints(PointShape,PointShape,IEnumerable<PointShape>,Int32)
Return Value
Parameters
iterations
Type:Int32
Description:N/A
OnGettingRouteViaVisitStops(GettingRouteViaVisitStopsRoutingEngineEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
OnGeneratingServiceArea(GeneratingServiceAreaRoutingEngineEventArgs)
Return Value
Type:Void
Description:N/A
Parameters
Finalize()
Return Value
Type:Void
Description:N/A
Parameters
MemberwiseClone()
Return Value
Type:Object
Description:N/A
Parameters
Public Properties
RoutingAlgorithm
Gets or sets a value that represents the routingAlgorithm used for finding the route.
Return Value
RoutingSource
Gets or sets a routingSource object for finding the route.
Return Value
GeographyUnit
Gets or sets a value that represents the geography unit of the FeatureSource.
Return Value
DistanceUnit
Gets or sets a value that represents the distance unit of the route.
Return Value
FeatureSource
Gets or sets a value that represents the FeatureSource used for finding the route.
Return Value
RoutingResultsType
Gets or sets a value that represents how much data is returned in the routing results.
Return Value
Protected Properties
Public Events
GeneratingServiceArea
This event is called during the generating service area.
This event is called during the generating service area. It wil be called many times during call the GenerateServiceArea method.
Event Arguments:GeneratingServiceAreaRoutingEngineEventArgs
GettingRouteViaVisitStops
This event is called during the calculating best visit sequence