Show/Hide Toolbars

Ultra Mileage

Navigation: Examples: MileCharter

Example: Using a Custom Road Speed Profile

Scroll Prev Top Next More

This example demonstrates how to use the Ultra Pre-Processor to calculate a new road pack with a custom road speed profile. It is based on the Finding Distances between Cities example which uses the TXLA.xlsx worksheet in the MileCharter examples file:

 

https://www.ultra-mileage.com/downloads/examples_ultra.zip

 

The original example produced the following chart of distances between cities in Texas and cities in Louisiana:

 

ex_txla_result_d

 

 

The calculated travel times (hours:minutes:seconds) look like this:

 

ex_custom_txla_origtime

 

We will create a new road profile with faster road speeds. Do this by starting the Ultra Pre-Processor:

 

ex_custom_preprocessor

 

Set the Input OSM File to use the Contiguous USA PBF file that was downloaded by the Ultra Download Manager. Set Output Data File to a new name for the output file. If you use an existing name and location (e.g. "usa-contig-fastest.umg") then the existing road pack will be overwritten. Here we have chosen usa-contig-fastest_mod.umg.

 

Next press Edit Config to set the configuration options and road profile:

 

ex_custom_config_fast

 

Here we have set the configuration settings from the existing usa-fastest.umg by pressing the Load Config button. We have then gone through and deliberately set some very fast speeds. For example, motorway (i.e. Interstate) has been set to 90mph. These speeds are very unrealistic, but they are useful as a demonstration. We have also replaced the Description with a comment to help us identify what this road pack is. Once you have set all the required road speeds, press OK to keep this configuration.

 

The Processing box is used to filter orphan road segments. These are short disconnected segments of road, such as alleys in pedestrianized town centers. Removing these will improve Ultra Mileage's ability to match start and end locations with the main road network. Removing all orphan road segments less than 1 mile long is the default.

 

Then press Start on the main panel to start the pre-processing. Most countries will take 30 minutes to an hour to pre-process. The USA road network is very large, and will typically take a few hours to process.

 

ex_custom_running

 

When we run the Texas-Louisiana sample with the new road pack, the travel times are now quite a bit quicker:

 

ex_custom_txla_results

 

As expected, the travel times of these routes are shorter due to the faster road speeds that we used.