Port Traffic Emissions Management and Optimization: A Digital Twin Approach for Road-Freight Using Bentley iTwin Platform
Welcome to PTEMO!
This project harnesses the power of digital twins to revolutionize logistics and emissions management at one of the UKโs busiest transport hubs, the Port of Dover.
Note
Local Installation Recommended: The Vercel app deployment is currently non-functional. To ensure the full functionality of the PTEMO platform, please follow the installation instructions below to run the application locally. A branch/pull request is open to resolve this issue in future developments.
- Develop scalable digital twin models for constrained environments.
- Simulate and analyze traffic flow and emissions hotspots.
- Build an intuitive user interface (UI) for scenario-based operational analysis.
- Emissions Dashboard: Real-time insights with cumulative area charts and filters.
- Data Analytics: Metrics on idle times, vehicle density, and emissions.
- InteractiveMap: Visualize road networks with zooming, filtering, and simulation toggling.
- VehicleTrackingPanel: Track vehicle statuses, idle times, and emissions data.
- SimulationControlPanel: Run scenario-based simulations with dynamic playback options.
- React.js & TypeScript: Dynamic and modular UI development.
- Tailwind CSS: Customizable styling for a seamless user experience.
- Recharts: Responsive visualizations for traffic and emissions data.
- Bentley iTwin Platform: 3D/4D modeling for simulation and analysis.
- Mock datasets for vehicles, emissions, and road networks sourced via OpenStreetMap APIs.
- JSON/CSV data formats aligned with Bentleyโs default global coordinate system.
- Node.js: Install via Node.js Package Manager.
git clone https://github.com/AlexandruRO45/PTEMO.git
cd PTEMOnpm install- Create a
.envfile in the root directory. - Copy and configure the following variables:
# ---- Authorization Client Settings ----
# Follow this tutorial on web service deployment available on Bentley iTwin platform: https://developer.bentley.com/tutorials/web-application-quick-start/
IMJS_AUTH_CLIENT_CLIENT_ID=
IMJS_AUTH_CLIENT_REDIRECT_URI=
IMJS_AUTH_CLIENT_LOGOUT_URI=
IMJS_AUTH_CLIENT_SCOPES=
IMJS_AUTH_AUTHORITY="https://ims.bentley.com"
# ---- Test IDs ----
# Taken directly from 'My iTwins tab'. For this project, select the template iModel called Stadium for full support.
IMJS_ITWIN_ID=
IMJS_IMODEL_ID=
# ---- Map Settings ----
# API key for Azure service: https://learn.microsoft.com/en-us/azure/azure-maps/quick-demo-map-app
# Access token for Map Box service: https://docs.mapbox.com/help/getting-started/access-tokens
# Access token for Cesium service: https://cesium.com/learn/ion/cesium-ion-access-tokens
IMJS_AZURE_MAPS_KEY=
IMJS_MAP_BOX_KEY=
IMJS_CESIUM_ION_KEY=
# Advanced CRA Config
# Advanced CRA Config: https://create-react-app.dev/docs/advanced-configuration/
# Advanced iTwin.js CRA Config: https://github.com/imodeljs/create-react-app/blob/imodeljs/packages/react-scripts/README-imodeljs.md
SKIP_PREFLIGHT_CHECK=true
USE_FAST_SASS=true
USE_FULL_SOURCEMAP=true
TRANSPILE_DEPS=false
USING_NPM=true- Build the project:
npm run build
- Serve the application locally (install
serveif prompted):npm install -g serve serve -s build
- Access the application via:
- Local:
http://localhost:3000 - Network:
http://<network-ip>:3000
- Local:
- Simulation Insights: Pinpointed emissions hotspots and inefficiencies via heatmaps.
- Scalability: Demonstrated a replicable model for other transport hubs.
- Sustainability: Supported TransiTโs mission to decarbonize UK logistics.
- Mock data was used; future iterations aim for real-time data integration.
- Current limitations include capped vehicle counts and simulation fidelity dependent on OSM data.
This project is licensed under the Apache License 2.0. See the LICENSE file for more details.
- Copyright ยฉ Bentley Systems, Incorporated.
- ยฉ OpenStreetMap contributors.
This project uses OpenStreetMaps and the Overpass API under the Open Database License.
More Information:
This project was completed as part of the TransiT Initiative, a collaborative effort aimed at leveraging digital twin technologies to decarbonize UK transport infrastructure. I am deeply grateful to my supervisors, Dr. Daniel Mitchell and Prof. David Flynn, for their guidance and for providing this opportunity to develop PTEMO as my Masterโs dissertation project.
Special thanks to Bentley Systems for enabling this work with their innovative iTwin platform and to the wider TransiT team for their invaluable feedback and resources. This research underscores the critical role of digital twins in modernizing logistics and contributing to sustainable operations.