How yanncedl/terra-geospatial-platform works
TERRA is a geospatial intelligence web platform that combines a browser map interface with a FastAPI backend and specialized intelligence engines. The main user flow is to enter a company or location in a browser module, request analysis through the shared API client, receive a report, and project results onto the map. Backend routes dispatch domain analyses to aggregation logic. The excerpts establish several browser-to-API calls and backend route relationships; unsampled module implementations and some integrations are represented only where documented, without inferring unshown call chains.
Main entry points: api_service.js API Client · store.js Reactive Store · map_engine.js Map Engine · api.py HTTP API
Components 19
Browser Interface
- Platform UI
src/terra_geospatial_platform/static/js/app.js - API Client
src/terra_geospatial_platform/static/js/services/api_service.js
API and Aggregation
- HTTP API
src/terra_geospatial_platform/api.py - Geospatial Aggregator
src/terra_geospatial_platform/engine.py - Domain Analysis
src/terra_geospatial_platform/modules.py
Analysis Workflows
- Nexus 360
src/terra_geospatial_platform/static/js/modules/nexus_module.js - Site Audit
src/terra_geospatial_platform/static/js/modules/site_audit_module.js - Competitive Arena
src/terra_geospatial_platform/static/js/modules/arena_module.js - Supply Tracking
src/terra_geospatial_platform/static/js/modules/supply_module.js - Executive Mobility
src/terra_geospatial_platform/static/js/modules/mobility_module.js - Forensic Studio
src/terra_geospatial_platform/static/js/modules/forensic_module.js - SIGINT
src/terra_geospatial_platform/static/js/modules/sigint_module.js - War Room
src/terra_geospatial_platform/templates/sidebar/cards/war_room_card.html
Map and State
- Reactive Store
src/terra_geospatial_platform/static/js/core/store.js - Map Engine
src/terra_geospatial_platform/static/js/core/map_engine.js - Globe Engine
src/terra_geospatial_platform/static/js/core/globe_engine.js - Event Bus
src/terra_geospatial_platform/static/js/core/event_bus.js
Other components
- Analyst
- Specialist Engines
Connections 28
- Analyst → Platform UI: enters analyses
- Nexus 360 → API Client: requests reports
src/terra_geospatial_platform/static/js/modules/nexus_module.js - Site Audit → API Client: requests audit
src/terra_geospatial_platform/static/js/modules/site_audit_module.js - Competitive Arena → API Client: requests arena
src/terra_geospatial_platform/static/js/modules/arena_module.js - Supply Tracking → API Client: requests flows
src/terra_geospatial_platform/static/js/modules/supply_module.js - Executive Mobility → API Client: requests mobility
src/terra_geospatial_platform/static/js/modules/mobility_module.js - Forensic Studio → API Client: requests analysis
src/terra_geospatial_platform/static/js/modules/forensic_module.js - SIGINT → API Client: requests signals
src/terra_geospatial_platform/static/js/modules/sigint_module.js - API Client → HTTP API: calls endpoints
src/terra_geospatial_platform/static/js/services/api_service.js - HTTP API → Domain Analysis: dispatches analyses
src/terra_geospatial_platform/api.py - HTTP API → Geospatial Aggregator: uses aggregator
src/terra_geospatial_platform/api.py - Geospatial Aggregator → Specialist Engines: queries specialists
src/terra_geospatial_platform/engine.py - Nexus 360 → Reactive Store: reads and updates
src/terra_geospatial_platform/static/js/modules/nexus_module.js - Site Audit → Reactive Store: reads and updates
src/terra_geospatial_platform/static/js/modules/site_audit_module.js - Competitive Arena → Reactive Store: reads and updates
src/terra_geospatial_platform/static/js/modules/arena_module.js - Supply Tracking → Reactive Store: reads and updates
src/terra_geospatial_platform/static/js/modules/supply_module.js - Executive Mobility → Reactive Store: reads and updates
src/terra_geospatial_platform/static/js/modules/mobility_module.js - Forensic Studio → Reactive Store: reads and updates
src/terra_geospatial_platform/static/js/modules/forensic_module.js - SIGINT → Reactive Store: reads and updates
src/terra_geospatial_platform/static/js/modules/sigint_module.js - Nexus 360 → Map Engine: projects results
src/terra_geospatial_platform/static/js/modules/nexus_module.js - Site Audit → Map Engine: projects results
src/terra_geospatial_platform/static/js/modules/site_audit_module.js - Competitive Arena → Map Engine: projects results
src/terra_geospatial_platform/static/js/modules/arena_module.js - Supply Tracking → Map Engine: projects results
src/terra_geospatial_platform/static/js/modules/supply_module.js - Executive Mobility → Map Engine: projects results
src/terra_geospatial_platform/static/js/modules/mobility_module.js - SIGINT → Map Engine: projects results
src/terra_geospatial_platform/static/js/modules/sigint_module.js - Platform UI → Map Engine: uses mapping
- Platform UI → Globe Engine: offers globe view
- War Room → HTTP API: offers surveillance