TOSCA / Architecture

From geodata to applications.

TOSCA is built in four layers. Each layer has a clear job, and each component can be swapped by use case.

  • Services & API
  • Databases
  • Files & tiles
  • Applications
  • Identity & access
  • Click a component to see what it does

Platform layers

01

Data engineering

Prepare and check data before it enters TOSCA.

A map that looks right is not the same as data that is right.

02

Storage & delivery

Each technology has one job. Not every dataset needs every service.

Databases

Files & object storage

Delivery — choose by use case

Static tiles are served straight from object storage. GeoServer or Martin are added only when needed.

03

Backend & API

Manages application data, permissions and configuration.

Identity & access

The API answers app requests. Map tiles take their own path.

04

Frontend

One app, one shared map. Every module plugs into the same foundation.

Shared foundation

Modules

Planned — 3D

How it works

What talks to what?

Follow one action step by step. Click a step to see that component.

  • App data — through the API
  • Map data — direct from the source
  1. 1

    A visitor opens a Geostory link.

  2. 2

    The page asks the API for the story: text, images and which layers to show.

  3. 3

    Django reads the story from the database and sends it back.

  4. 4

    For each layer, the catalog says where its map data lives.

  5. 5

    The map asks that service for tiles directly — not through Django.

  6. 6

    MapLibre draws the map next to the story.

Two separate conversations: story content through the API, map data straight from the map service.

Beyond the core

Possible integrations. Same platform, new experiences.

New capabilities plug into the existing data, services and API. Open a scenario to follow every message, step by step.

  • Request
  • Answer coming back
  • Work inside one part
01Knowledge graph + local AIAsk questions about city objects and how they connect.Proof of concept
1

Prepare the knowledge

Once
CityGML / CityJSON → Pipeline13D city objects
Pipeline2Finds objects and how they relate
Pipeline → Graph DB3Nodes and edges
2

Ask a question

Every question
Frontend → Django REST API1“Which buildings touch this street?”
Django REST API2Checks login and role
Django REST API → Local LLM3Passes the question on
Local LLM → Graph DB4Controlled graph query
Graph DB ⇠ Local LLM5Matching objects (facts)
Local LLM ⇠ Django REST API6Answer in plain language
Django REST API ⇠ Frontend7Answer + the objects it used

The graph supplies the facts; the model only phrases the answer. The graph extends PostGIS and 3DCityDB — it does not replace them.

The model runs locally. Protected data is only queried after the API has checked the user.

02Game engines & VRReuse city models in Unity or Unreal via Cesium.Possible integration
1

Prepare the 3D city

Once
3DCityDB → Converter1CityJSON export
Converter2Builds 3D Tiles
Converter → Garage3Uploads the tileset
2

Open the city in VR

Every session
Unity / Unreal → Django REST API1“Which 3D cities may I load?”
Django REST API2Checks access
Django REST API ⇠ Unity / Unreal3Dataset + tileset address
Unity / Unreal → Garage4Tiles for the current view
Garage ⇠ Unity / Unreal53D Tiles — again as the camera moves

Two connections: the API says what to load, storage delivers the tiles. Django never streams 3D data itself.

Private cities need protection on both paths: the API answer and the tile storage.

03MCP — agent-ready TOSCALet AI agents use selected TOSCA functions as tools.Possible integration
1

From a request to a saved draft

Every request
User → AI agent1“Draft a Geostory about flood risk here.”
AI agent → TOSCA MCP server2Calls a tool, e.g. “create story draft”
TOSCA MCP server → Django REST API3Normal API request, with the user’s token
Django REST API4Is this user a Writer? Then save as draft
Django REST API ⇠ TOSCA MCP server5Draft created
TOSCA MCP server ⇠ AI agent6Tool result
AI agent ⇠ User7“Here is your draft — review and publish.”

The MCP server is only a translator. The agent can do exactly what the API already allows that user — nothing more.

Publishing stays a human decision.

Illustrative architecture patterns, not deployed features. The knowledge graph work is a proof of concept; the Cesium and MCP integrations are proposals.