This simulation models the oil supply chain in multiple steps: 1. Crude oil flows through pipelines to refineries 2. Refineries turn crude oil into usable fuel 3. Oil flows from refineries to storage locations, and then to local distributors 4. Tanker trucks deliver oil from distributors to gas stations
Tanker trucks navigate along real roads in this simulation, using the Mapbox Navigation API. Documentation for this can be found here in the Navigation with Mapbox section.
This implementation of continuous resource flow through networks is only one potential method of implementation. See Oil Terminal for an alternate implementation.