Iso routing (drive-time and drive-distance) – Pitney Bowes MapXtreme User Manual

Page 371

Advertising
background image

Chapter 20: Routing

Iso Routing (Drive-Time and Drive-Distance)

MapXtreme v7.1

378

Developer Guide

TimeZone - Specifies the time zone used in the travel time. The time zone is defined using an
hour offset value from Greenwich Mean Time (GMT).

TravelTimePreference - Specifies if the travel time defined is a start or end time. The two
members are defined using StartTravel or EndTravel.

The following code example shows how to set the travel time for the route. This example includes
the StartTravel preference, defining the start time (year, month, day, hour (24 hour clock), minute,
second) and time zone:

Public Shared Sub New_TravelTime()
Dim startTime As DateTime = New DateTime(2005, 5, 1, 14, 0, 0)
Dim timeZone As MapInfo.Routing.TimeZone = _

New MapInfo.Routing.TimeZone(-4)

Dim travelTime As MapInfo.Routing.TravelTime = _

New MapInfo.Routing.TravelTime(startTime, _
TravelTimePreference.StartTravel, timeZone)

End Sub

Stop Times

At any intermediate point during a route you can specify a stop time. This time is added to the overall
time along the route. The stop time is particularly useful for defining time that the user is going to
spend at a particular location along the route (for example, loading and unloading time of a delivery
truck) for a multi-point route. A stop can be added to the ViaPoint class by specifying a Stop and a
StopTime property:

Stop - You can specify whether to stop at a viapoint. By default no stops are calculated at
viapoints (false). You can specify if you want to stop at the viapoint by defining the Stop equal to
true.

StopTime - Adds a stop time to any viapoint along the route. The stop time is defined by the
TimeSpan, and will be added to the total time for the route. The default stop time is 0 (zero). A
TimeSpan can be represented as a string in the format "[-]d.hh:mm:ss.ff" where "-" is an optional
sign for negative TimeSpan values, the "d" component is days, "hh" is hours, "mm" is minutes,
"ss" is seconds, and "ff" is fractions of a second. For example, a TimeSpan defined as
"11.13:46:40" is equivalent to 11 days, 13 hours, 46 minutes, and 40 seconds.

Iso Routing (Drive-Time and Drive-Distance)

IsoChrones and isoDistances can be extremely valuable information for making decisions. An
isoChrone is a polygon or set of points representing an area that can be traversed in a network from
a starting point in a given amount of time. An isoDistance is a polygon or set of points representing
the area that is a certain distance from the starting point. They can be used to determine a drive-time
or drive-distance boundary from a location. Users in retail, banking, and insurance, can use this
service to determine the potential market or risk for any given asset. These boundaries may then be
used for further analyses such as determining which prospects in a mailing list are within an iso
boundary so they may be notified of new services available or a new store opening.

Advertising