An extension of the supply chain model that allows distributors to choose which manufacturer they want to order from based on distance. Distributors then dispatch trucks to deliver goods.
Trucks navigate along real roads by using the Mapbox message handler (enabled in globals.json
) and making Navigation API calls (see truck.js
). Once a truck has reached its destination it will return to the manufacturer which dispatched it.
Coordinate data for the model is contained in the globals.json
file.
This simulation utilizes HASH's in-built geospatial viewer and ability to retrieve directions from Mapbox. You can read more about these features in the docs: