Desire Lines

Desire Lines are also known as Flow Lines or Hub & Spoke Diagrams. These connect various points (e.g. warehouses) with lines. The line thicknesses are typically proportional to a volume flow between the points. For example, they might be proportional to the number of packages shipped between two warehouses. See the bottom of this page for an example.

Desire lines require two kinds of data view to be defined. The first are the end point locations (aka “hubs”), and the second are the actual connecting lines (aka “spokes”).

Here is an example set of end point locations in Excel:

The input end point ("hub") data points in Excel.

Each location point needs an ID (which will be referenced in the line definitions) and enough information to geocode the point (City, State in this example). You could add further data fields but these will be ignored by the Desire Lines functionality.

Here is a matching set of line definitions:

The line data. Each line has a start and end ID, and the volume (ie. final line thickness)

Each line needs a start and end identifier (ID) and a “volume” value. The IDs refer to the start and end point location IDs, whilst the volume is used to define the line’s thickness. The first line in the above image defines a line of volume 10 from Dallas (1) to Austin (3).

Import the end points as a new data view and then geocode it. Here is the above example imported as a geocoded data view (“Hubs:1”):

The end points imported into a Maptitude data view, and geocoded.

And here it is on a map (points are red squares for clarity):

The geocoded end points plotted on a map as red squares. (Click for larger view)

Here is the line data imported as a data view (“spokes”):

The lines imported into a Maptitude data view

Note that the lines do not have any geocoding information. Instead we draw the lines with the Desire Lines dialog box. First select the end point layer (Hubs:1) as the current working layer. Then select Tools->Geographic Analysis->Desire Lines on the main Maptitude menu to display the Desire Lines dialog box:

Maptitude's Desire Lines dialog box

Enter the name for the new desire line layer in the New Layer Name box. Here we use Hubs and Spokes. Next we enter the Input Table information. The Name is the name of the line data view we imported above (spokes in this example). We want to plot all the lines, so the Selection is set to All Records. Next we defined the fields. We set the From & To ID Fields to the ID fields in the input data view. The line thickness is set using the Volume Field. Press OK to create the new desire line layer.

The default is to draw the lines using a grey colour and the default thicknesses might be a bit thick. These are set using a Scaled Symbol theme on the desire line layer, and can be easily adjusted. For this example we use a blue colour and thinner lines. Here is the resulting map:

The final desire line (hub&spoke) map. The line theme has been adjusted from the default grey to use blue, and the line thicknesses narrowed (click for larger view)

Note that we do not have to use all of the end points - a number of the points above (e.g. Shreveport and Indianapolis) are not used.

Desire Lines are popular in the logistics industry, and are much easier to create in Maptitude than with products such as MapPoint or Google Maps.

The Flow Lines Tool Add-in

An alternative approach is to use the free Flow Lines Tool Add-in published by Caliper. To use this add-in, you need to import your start and end locations as two different point layers, before starting the add-in. Volumes (line thicknesses) are then added by modifying the resulting line layer’s theme. One advantage of this approach is that you do not need to work directly with feature ID values.

Acknowledgments

Thanks to Kirsten Tisdale of Aricia Ltd and Paul Lucassen of Lucassen Consulting for background information for this page.