Within the Digital Twins as a Common Good (DTa-CoGo) project, we collaborated on a practical case study for European Data Spaces. Together with municipalities and model builders, we investigated how Data Spaces can be applied in practice within an Open Urban Platform. The goal was to share datasets and calculations in a secure, scalable, and transparent manner.

More information about DTa-CoGo: https://www.ds4sscc.eu/dtacogo
The Tygron Platform offers extensive capabilities for data exchange. Within this project, we wanted to take it a step further by making Tygron available as a calculation engine, allowing external parties to perform calculations without needing knowledge of the platform's internal workings. The focus was on the heat stress module, an increasingly relevant topic for climate-resilient urban development.
More information about Tygron’s heat stress calculation module:
https://support.tygron.com/wiki/Heat_Stress_Module
Together with the calculation models from DAT.mobility for traffic and Rana for urban flooding, the participating municipalities (Rotterdam, 's-Hertogenbosch, and Tampere) can build a complete Digital Twin using their own data. A specialized interface, developed by The People Group, brings models and data together in a single user-friendly environment.
The goal is not just this application, but above all a reproducible working method that can also be applied by other cities, model providers, and app developers.
The challenge
The Tygron Platform features a powerful API, but it closely aligns with the internal architecture. Using it effectively requires specific knowledge of the platform. The challenge was therefore to make Tygron's computing power easily accessible to external applications.
As a foundation, we used the existing open-source Tygron WebApp, which allows users to create Digital Twins, run calculation models, and view results. Because this WebApp was designed for human users, DTa-CoGo required a standardized API.
OGC API Processes
For the implementation, the OGC API Processes standard was chosen, partly based on previous experiences and knowledge from Geonovum. This standard describes how processes are offered, initiated, monitored, and how results are made available, both synchronously and asynchronously.
This enabled external applications to call processes in a standardized manner and to run long-running calculations securely in the background.
More information about the OGC API Processes standard: https://ogcapi.ogc.org/processes/
New API architecture
Instead of controlling the existing user interface via an API, a new architecture was chosen in which both the user interface and external applications use the same API. This keeps functionality better shielded and aligns the architecture with Tygron's design principle: everything possible via the interface must also be available via an API.

Better performance without security risks
During the project, it became apparent that the original calculation processing scaled insufficiently when requests came indirectly from other applications.

Therefore, the processing was redesigned more intelligently. Authentication errors are immediately handled with a temporary lock, preventing repeated failed requests from causing blockages. In addition, consecutive process steps are executed directly as much as possible until a waiting period is necessary. This significantly reduces the total processing time of a job.

Authentication and contexts
Authentication also called for a new approach. A shared account would result in organizations being able to view each other's projects and results, while individual Tygron accounts introduced new management and security challenges.

For this reason, the implementation of contexts was chosen. External parties authenticate with their own token toward the WebApp. Each context then has its own configuration and Tygron credentials. This keeps organizations separated, manages jobs per context, and provides a solid foundation for future user and access management.

Conscious choices in implementation
Although the API is based on the OGC API Processes standard, only the essential components were implemented within the project. External applications can discover processes, start jobs, monitor progress, and retrieve results.
Testing by both the developing partner and other technical partners provided valuable feedback. Enhancements such as more comprehensive schemas, additional documentation, and further separation of authentication are on the roadmap, but fell outside the scope of this project.
Result
The application is now live for the participating organizations. The application developed by The People Group can automatically call the heat stress module of the Tygron Platform via the Open Urban Platform and present results to end users.
Moreover, the developed approach is reproducible. Other municipalities, model providers, and application developers can use the same standardized functionality.
In addition, most of the improvements have now been incorporated into the core of the WebApp, allowing future applications to benefit from better performance and extensibility as well.
Get started yourself
Want to get started with the WebApp, the API middleware, or the DTa-CoGo implementation yourself? The code is available on the Tygron GitHub under an MIT license:
https://github.com/Tygron/php-tygron-webapp
The DTa-CoGo functionality is available as an included sample.

