This simulation models the oil supply chain in multiple steps:
- Crude oil flows through pipelines to refineries
- Refineries turn crude oil into usable fuel
- Oil flows from refineries to storage locations, and then to local distributors
- 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.
This simulation features in one of our Moving to HASH tutorials. Feel free to follow along!