Time-based routing – Pitney Bowes MapXtreme User Manual
Page 370

Chapter 20: Routing
Advanced Route Options
MapXtreme v7.1
377
Developer Guide
Avoiding Points
Currently there are two methods to avoid points along the route. You can use the Points property of
the AvoidList class or you can exclude any number of points from a route request using the
PointExclude class.
L
Using the PointExclude class is the recommended method to avoid points.
Avoiding Features
Currently there are two methods to avoid features (road types) along the route. The
TravelPreferences property of the RoutingPreferences class can be used to avoid any road type.
See
for more information on using the TravelPreference property.
The route client also provides another method to avoid highways when calculating routes. This
feature is useful when you want to limit routes to local roads. You can use the Features property of
the AvoidList class and define Highway as the avoid feature.
Avoiding Segments
You can exclude any number of route segments (ID) from a route request using the
SegmentExclude class. The segment ID is a unique identifier assigned to each line, road, or section
of the route data. You can determine the segment ID for a particular section of the route by returning
them in a previous route response. See
for more information on
how segment ID’s are returned in a route response.
L
If the route cannot be calculated or there is no way to get a destination using the avoid or
exclude, then the route directions will not be returned.
Time-Based Routing
Time-based routing is a key component for delivery systems, mobile work forces, and calculating
accurate drive times and routes. You can specify a start or end time for your route or a stop duration
for each intermediate point in a multi-point route. For example, you can specify that the route should
start at location A and pass through locations B, C, and D where you spend five minutes at each
talking to customers or loading your trucks. The route will then end at location E.
Start and End Times
Part of time-based routing is being able to specify the start or end time for a route. Start and end
times in routing are important when other time-of-day preferences are used. For example if the
server is configured with data that represents rush hour traffic patterns, the start or end time for your
route may be of importance for analysis. The start and end time can be set using the TravelTime
class. The following properties are used to control the travel time:
•
DateTime - Specifies the date and time to either start or end a route calculation.