About this course
This advanced six-day course follows the development of a public-service accessibility application in a Kenyan county. Users can browse facilities on an interactive map, review facility details, collect observations on a mobile device and ask questions that can be verified against published data. The application distinguishes straight-line proximity from travel access and model estimates from observed facts. Instructors use open datasets where coverage and licensing are verified and clearly labelled synthetic records for scenarios involving personal or restricted data. Each day pairs two three-hour modules: architecture and data preparation; spatial databases and APIs; web and mobile interfaces; machine learning and language models; map assistance and defensive security; and testing and deployment. The same application evolves through successive laboratory sessions so learners can trace a result from its source through storage, analysis, delivery and presentation.
Course goals
- Connect defensible geospatial analysis to usable web and mobile interfaces.
- Use generative AI to accelerate development without delegating technical judgement, security review or spatial interpretation.
- Integrate model predictions and natural-language assistance only where their outputs can be evaluated and explained.
- Design for uneven connectivity, varied device capabilities and uncertainty in spatial data.
- Build repeatable release, monitoring and data stewardship practices into application development.
Who should attend?
GIS developers and GIS analysts; Geospatial data scientists and remote sensing specialists; Software engineers and data analysts; Machine learning engineers and IT professionals; Urban and regional planners who build or specify digital mapping services
What you will learn
- Define measurable acceptance criteria and draw the data flows and trust boundaries of an AI-enabled online GIS.
- Prepare interoperable spatial data with documented provenance, CRS, geometry quality, licence and publication constraints.
- Implement indexed, parameterised PostGIS queries and a spatial API with predictable request and response contracts.
- Develop an accessible interactive map and an offline-capable mobile observation workflow.
- Evaluate a spatial prediction model against a baseline using geographically separated test data and document its limitations.
- Build a map assistant that uses allowlisted operations, verifies structured outputs and returns evidence or abstains.
- Test application controls for authorisation, data minimisation and safe failure using synthetic records and non-production fixtures.
- Deploy a versioned application, measure service health and demonstrate a recovery or rollback procedure.
What the course includes
- Progressive laboratories on a single web and mobile GIS application, with checkpoints from data ingestion to deployment.
- Desktop-to-web workflows covering QGIS, PostGIS, Python spatial APIs and interactive mapping.
- Supervised mobile exercises covering positioning, offline observations and synchronisation conflicts.
- Comparative use of ChatGPT, Claude and Gemini, subject to approved access, with versioned prompts and evidence-based review of generated outputs.
- Spatially separated model evaluation, source-grounded map assistance and defensive application testing.
- Kenyan and East African examples covering uneven data coverage, multilingual interfaces and intermittent connectivity.
Software and tools
- QGIS for source inspection, cartographic prototyping and spatial quality assurance
- Python with FastAPI, Psycopg, pytest, GeoPandas and scikit-learn
- PostgreSQL with the PostGIS extension
- Git for version control and review
- JavaScript, HTML, CSS and MapLibre GL JS
- Browser developer tools, a service worker and IndexedDB for progressive web application development
- ChatGPT, Claude and Gemini through approved interfaces; one separately configured provider API or a local mock adapter for integration exercises
- Docker and Docker Compose for repeatable development and staging
- A smartphone or browser device emulator for mobile testing
Where this course can lead
- Web GIS or geospatial application developer
- Mobile GIS developer
- Spatial data engineer
- Geospatial data scientist or GeoAI engineer
- Geospatial platform engineer
- Technical GIS lead for public-service or planning applications
Course sections and lessons
Work through the course in a structured sequence. Each section includes a learning outcome and a set of focused lessons.
01Application Scope, Architecture and AI-Assisted Development5 lessons · 3 hours
Define the public-service application, allocate responsibilities across the stack and establish a reproducible development workflow.
Lesson 1: Turn Service Questions into Testable Requirements
Translate the needs of a resident, a field enumerator and a county data steward into tasks. Trace the question ‘Which listed facility is nearest?’ from user input to the explanation shown with the result.
Learning objectives
- Write acceptance criteria for browsing, nearest-facility lookup and observation capture.
- Specify the input, distance definition and exclusions for a proximity result.
Key topics
- User stories and observable acceptance criteria
- Straight-line distance versus routing and service availability
- Empty, stale and incomplete source coverage
Lesson 2: Choose What AI Should and Should Not Do
Classify proposed features into deterministic GIS operations, supervised prediction and language assistance. Identify which features should remain available when the AI provider is unavailable.
Learning objectives
- Assign each feature to a deterministic, predictive or conversational component.
- Specify a non-AI fallback for each AI-dependent user task.
Key topics
- Spatial predicates and measurements as authoritative operations
- Prediction as an estimate rather than an observation
- Language models as intent interpreters and explanation interfaces
Lesson 3: Draw Service Boundaries and Data Flows
Diagram the browser, mobile cache, Python API, database and model provider. Walk through a public map request and a restricted observation submission to identify where policy checks belong.
Learning objectives
- Draw a component diagram showing data stores and trust boundaries.
- Identify which service enforces identity, access and response filtering.
Key topics
- Public catalogue versus restricted observation workflows
- Server-side provider adapter and secret storage
- Error and timeout boundaries
Lesson 4: Compare AI Development Assistants
Give ChatGPT, Claude and Gemini the same sanitised API contract and ask for validation tests. Where live access is unavailable, compare prepared transcripts. Review outputs against project conventions and official documentation before accepting changes.
Learning objectives
- Write a prompt specifying inputs, constraints and expected test behaviour.
- Use a rubric to compare generated tests for correctness, coverage and unsupported assumptions.
Key topics
- Versioned prompt and response records
- Generated code as an untrusted draft
- Review of invented APIs, dependencies and spatial assumptions
Lesson 5: Set Up a Reproducible Application Skeleton
Set up a Git repository, pinned dependencies, a local PostGIS service and a Python health endpoint. Connect a minimal map page to a fixture response to verify each development layer independently.
Learning objectives
- Run the application skeleton from documented setup commands.
- Separate versioned configuration templates from local credentials.
Key topics
- Repository layout and reproducible environments
- Non-secret configuration and ignored local secret files
- Health checks and deterministic starter fixtures
02Geospatial Data Preparation and Quality in QGIS5 lessons · 3 hours
Prepare facility points, administrative boundaries and contextual layers as documented inputs to the application.
Lesson 1: Audit Data Sources and Publication Rights
Compare a candidate OpenStreetMap extract, an administrative boundary dataset and a synthetic observation layer. Record publisher, update date, licence, attribution, intended use and known coverage gaps.
Learning objectives
- Create a source register that separates verified facts from unknowns.
- Select which layers can be published, restricted or replaced with synthetic data.
Key topics
- Source lineage and update frequency
- Licence and attribution checks
- Completeness bias in volunteered and administrative data
Lesson 2: Manage CRSs Across Analysis and Display
Inspect CRS definitions in QGIS, export a sample as web-ready GeoJSON and compare geodesic and appropriately projected distances on the same features. Diagnose a deliberately mislabelled layer without silently moving its coordinates.
Learning objectives
- Distinguish assigning a CRS from transforming coordinates.
- Choose and justify a measurement approach for the study extent.
Key topics
- Datum, projection, axis order and linear units
- WGS 84 longitude–latitude ordering in RFC 7946 GeoJSON
- Local projected CRSs, geodesic measurement and Web Mercator distortion
Lesson 3: Validate Geometry and Feature Identity
Use QGIS and a Python check to identify invalid polygons, duplicate records and coordinates outside the expected extent. Compare geometries before and after repair and document material changes.
Learning objectives
- Classify defects as repairable, reviewable or grounds for rejection.
- Preserve stable identifiers through cleaning and export.
Key topics
- Self-intersections, empty geometries and geometry type
- Duplicate source identifiers versus coincident features
- Quarantine tables and before-and-after repair checks
Lesson 4: Harmonise Attributes and Sensitive Locations
Standardise facility classes and administrative identifiers while preserving multilingual names. Produce public and restricted versions of an observation layer using synthetic examples to examine disclosure risk.
Learning objectives
- Map source categories to a controlled vocabulary without treating unknown values as zero.
- Define a publication rule for sensitive points and attributes.
Key topics
- Attribute mapping, Unicode and explicit null semantics
- Public fields, redaction and spatial aggregation
- Re-identification risks from coordinates and sparse groups
Lesson 5: Create a Versioned Data Handover
Export a GeoPackage for review and a validated GeoJSON fixture for web tests. Prepare a release manifest and compare row counts, extent, identifiers and field types across exports.
Learning objectives
- Produce distribution files and a manifest that supports repeatable ingestion.
- Reconcile key dataset properties after export.
Key topics
- GeoPackage and GeoJSON trade-offs
- Dataset version, extent, CRS and attribute dictionary
- Row reconciliation, sample checks and file checksums
03PostGIS Data Modelling and Spatial Queries5 lessons · 3 hours
Load curated layers into PostgreSQL and design reproducible, indexed queries for the map and assistant.
Lesson 1: Model Facilities, Boundaries and Observations
Define geometry columns, primary keys and foreign keys for authoritative data and user submissions. Retain source identifiers separately from internal keys and record dataset versions.
Learning objectives
- Write a migration that constrains geometry type and SRID.
- Choose relationships that preserve source lineage and observation history.
Key topics
- Geometry typmods, primary keys and referential integrity
- Source metadata and versioned records
- Separation of verified records and provisional observations
Lesson 2: Load and Reconcile Data Transactionally
Load a prepared dataset to staging, validate keys and geometry, and promote accepted records in a transaction. Rerun the same import to check that it does not duplicate records.
Learning objectives
- Implement a staging-to-production import with explicit rejection rules.
- Reconcile source, accepted and rejected counts for a release.
Key topics
- Staging and transaction boundaries
- Uniqueness, upsert rules and idempotent imports
- Rejection logs and post-load reconciliation
Lesson 3: Write Boundary and Viewport Queries
Query facilities within the map extent and assign county membership using fixtures for interior, exterior and boundary points. Compare SQL results with QGIS inspection.
Learning objectives
- Implement a viewport filter and a documented county membership rule.
- Explain when a candidate found by a bounding-box test needs an exact predicate.
Key topics
- Envelope creation and SRID consistency
- Bounding-box filtering and exact spatial predicates
- ST_Intersects, ST_Contains and ST_Covers
Lesson 4: Implement Nearest and Within-Radius Searches
Build a radius filter and rank accepted facilities by distance. Check results from a geography-based query against known fixtures and document sorting rules for tied distances.
Learning objectives
- Return radius and distance values with explicit units.
- Distinguish the indexed candidate filter from the final distance calculation.
Key topics
- ST_DWithin and ST_Distance on geography
- Indexed geography column or matching expression index
- Deterministic ordering and limits of straight-line distance
Lesson 5: Read Query Plans and Tune Spatial Queries
Compare plans and execution measurements before and after index or query changes on a representative fixture. Record the exact query, dataset version and extent used in each test.
Learning objectives
- Interpret index scans, sequential scans and estimated versus actual rows.
- Show that an optimisation preserves the reference result set.
Key topics
- GiST indexes and planner statistics
- EXPLAIN and EXPLAIN ANALYSE concepts in a safe test database
- Selectivity, transforming indexed columns and reproducible measurements
04Python Spatial API Development5 lessons · 3 hours
Expose bounded spatial operations and observation submissions through explicit web-service contracts.
Lesson 1: Design Feature and Search Contracts
Specify endpoints for facility detail, viewport browsing and nearest-facility search. Define examples for valid, empty and invalid requests before implementing the routes.
Learning objectives
- Define request and response schemas for three spatial operations.
- Choose consistent status and response behaviour for missing entities and empty collections.
Key topics
- OpenAPI schemas and examples
- Route parameters, bounding boxes, filters and page limits
- GeoJSON Feature and FeatureCollection responses
Lesson 2: Validate Inputs and Parameterise Queries
Implement typed bounding-box, coordinate and radius validation, then bind accepted values through Psycopg. Use a fixed mapping for sortable fields and test rejected requests against the schema.
Learning objectives
- Enforce numeric ranges and operation-specific limits before querying.
- Bind values as parameters and constrain dynamic identifiers to known choices.
Key topics
- Finite coordinates, extent order and service bounds
- Value binding versus SQL identifiers
- Connection pooling, transactions and query timeouts
Lesson 3: Serialise Features and Control Payloads
Return only the geometry and properties declared in the public response schema. Compare paged GeoJSON with vector tiles as alternative delivery patterns and retain a separate detail endpoint for full permitted attributes.
Learning objectives
- Serialise valid GeoJSON with stable IDs and longitude–latitude coordinates.
- Choose a delivery pattern based on feature volume and interaction requirements.
Key topics
- Attribute allowlists and GeoJSON response schemas
- Stable paging and bounded payload size
- Feature queries versus vector tile rendering
Lesson 4: Accept Field Observations Reliably
Implement an observation submission contract carrying a client-generated identifier, timestamp and provenance. Repeat an accepted submission and test the response to a conflicting revision.
Learning objectives
- Make retries with the same identifier and equivalent payload safe.
- Return a documented conflict when a revision fails the server's consistency rule.
Key topics
- Client-generated identifiers and uniqueness constraints
- Idempotency and replay of legitimate submissions
- Record versions and conflict responses
Lesson 5: Document Errors and Test API Boundaries
Use the OpenAPI interface and pytest to verify example requests, limits and response shape. Add a correlation identifier so a failed map request can be diagnosed without exposing internal exception details.
Learning objectives
- Test success, empty-result, validation and dependency-failure responses.
- Link a safe client error to server-side diagnostic context.
Key topics
- OpenAPI documentation and contract fixtures
- Structured errors and correlation identifiers
- Safe exception reporting and dependency stubs
05Interactive Web GIS and Accessible Cartography5 lessons · 3 hours
Build the browser interface and connect map state, filters and accessible detail views to the spatial API.
Lesson 1: Initialise MapLibre and Compose Layers
Set up the map canvas and combine a permitted basemap with facility and boundary sources. Inspect map-to-API requests and check the coordinate order of a known facility.
Learning objectives
- Configure map sources, style layers and attribution.
- Diagnose a misplaced feature using its API payload and reference location.
Key topics
- MapLibre sources, style layers and layer order
- Basemap terms, credits and initial extent
- Longitude–latitude order and visible map bounds
Lesson 2: Synchronise Filters, Extent and Selection
Connect category controls, map movement and a results list to one application state. Reproduce rapid panning in the browser and prevent an earlier request from overwriting newer results.
Learning objectives
- Synchronise map and list selection using stable feature identifiers.
- Cancel or ignore outdated requests when the viewport or filters change.
Key topics
- Shared view state and event handling
- Debouncing, request cancellation and sequence guards
- Loading, empty and retry states
Lesson 3: Design Symbology, Aggregation and Legends
Compare individual markers and clustering at multiple zoom levels. Design symbols for verification status and distinguish aggregate marker counts from county-level statistics.
Learning objectives
- Choose scale-dependent representations for dense facility data.
- Create a legend that explains clusters, verification status and unknown values.
Key topics
- Visual hierarchy and scale-dependent styling
- Cluster counts, denominators and generalisation
- Colour, shape and labels as complementary cues
Lesson 4: Build Accessible Results and Detail Panels
Create a semantic results list and detail panel as alternatives to map-only interaction. Test selection, filtering and focus return with the keyboard and inspect feedback with browser accessibility tools.
Learning objectives
- Expose map results and source information through accessible HTML controls.
- Verify focus order and announcements for changing result counts.
Key topics
- Accessible names, focus management and status announcements
- Textual alternatives for geographic results
- Localised labels, readable units and contrast
Lesson 5: Communicate Source, Date and Uncertainty
Show dataset dates, unknown attributes and distance caveats in pop-ups and results. Ask a partner to interpret the interface and revise labels that imply more certainty than the source supports.
Learning objectives
- Display provenance and measurement method alongside consequential results.
- Distinguish missing, unverified and not applicable values in the interface.
Key topics
- Attribution and source timestamps
- Measurement precision versus underlying accuracy
- Plain-language uncertainty and coverage statements
06Mobile GIS, Field Observations and Offline Operation5 lessons · 3 hours
Adapt the browser application into a progressive web application for mobile capture and intermittent connectivity.
Lesson 1: Design for Small Screens and Outdoor Use
Refit the map and observation form for a one-handed workflow. Use a phone or emulator to test selection, orientation changes and the visibility of status messages.
Learning objectives
- Create a responsive capture flow that does not depend on hover.
- Keep critical controls reachable and available when the map is slow.
Key topics
- Touch interaction, page reflow and map gesture conflicts
- Progressive enhancement and device capability checks
- Plain-language capture and save states
Lesson 2: Capture Location with Accuracy Context
Capture positions at two safe, instructor-approved locations or use emulated fixes. Compare timestamps and reported horizontal accuracy, then record whether each location was measured or manually placed.
Learning objectives
- Store coordinates, fix time, accuracy estimate and capture method.
- Handle permission denial and unsuitable fixes without claiming survey-grade accuracy.
Key topics
- Browser geolocation permissions and secure contexts
- Reported horizontal accuracy and stale fixes
- Manual placement and field quality rules
Lesson 3: Cache the App and Queue Observations
Use a service worker to cache the app shell and IndexedDB to hold pending observations. Test offline reload and show map coverage only where the application is permitted and configured to cache it.
Learning objectives
- Persist pending submissions across an offline page reload.
- Separate cache policies for application assets, public maps and private data.
Key topics
- Service worker lifecycle and versioned caches
- IndexedDB records and storage eviction
- Basemap cache permissions and offline indicators
Lesson 4: Synchronise and Resolve Conflicts
Simulate a lost response, renewed connectivity and a server-side revision. Use foreground sync with retries and show failed or conflicting entries for review rather than silently discarding them.
Learning objectives
- Advance observations through pending, sending, accepted and review states.
- Handle duplicate delivery and stale revisions as distinct cases.
Key topics
- Idempotency, retry back-off and explicit sync controls
- Revision comparison and conflict resolution
- Expired sessions and user-visible sync state
Lesson 5: Verify the Mobile Field Workflow
Run the capture-to-review workflow under throttled and offline conditions. Include denied permission, shared-device sign-out and stale reference data; use only synthetic observations during testing.
Learning objectives
- Document the result of each connectivity and permission scenario.
- Verify the app's sign-out and retention behaviour for locally stored observations.
Key topics
- Device test matrix and network throttling
- Queue visibility, retention and shared-device privacy
- Reference data freshness and field handover
07Spatial Machine Learning and Map-Ready Predictions5 lessons · 3 hours
Use an observed or explicitly synthetic training exercise to model facility catchments likely to warrant further verification. Treat the model as a prioritisation aid, not as an authoritative service coverage layer.
Lesson 1: Define the Prediction Target and Unit of Analysis
Define a grid-cell verification-priority label from an instructor-prepared review dataset. Trace when each label and predictor would become available and separate unreviewed cells from confirmed negatives.
Learning objectives
- Specify prediction unit, target definition and predictor availability.
- Identify attributes that would leak outcomes into training.
Key topics
- Observed labels versus synthetic exercise labels
- Spatial unit and scale effects
- Label completeness and target leakage
Lesson 2: Engineer Spatial and Earth Observation Features
Create contextual predictors by spatial join and aggregate a documented raster over the grid. Record the acquisition period, pixel size, missing values and cloud or nodata treatment where applicable.
Learning objectives
- Produce one model row per spatial unit with traceable features.
- Check alignment and distinguish valid zeroes from missing raster values.
Key topics
- Spatial joins and zonal statistics
- CRS alignment, raster resolution and resampling
- Temporal alignment and missingness indicators
Lesson 3: Train Baselines with Spatially Separated Splits
Compare a simple baseline with a scikit-learn classifier using spatial group splits. Keep preprocessing within the training pipeline and reserve geographically separate data for final evaluation.
Learning objectives
- Construct disjoint training, validation and test groups.
- Fit preprocessing and classifiers without using held-out labels or statistics.
Key topics
- Spatial autocorrelation and geographic grouping
- Baseline rules and scikit-learn pipelines
- Group-aware tuning and untouched test data
Lesson 4: Interpret Errors and Choose an Operating Threshold
Compare precision, recall and ranking performance against the baseline. Use the field team's notional review capacity and subgroup errors to justify a threshold without retuning on the final test set.
Learning objectives
- Report errors by spatial group and relevant coverage categories.
- Set a review threshold on validation data and evaluate it once on the held-out test set.
Key topics
- Precision–recall trade-offs and review capacity
- Class imbalance and geographic transfer
- Probability calibration and interpretation of model scores
Lesson 5: Publish Predictions with Provenance and Limits
Export prediction scores as a separate versioned map layer. Add metadata for the model, training period and evaluated extent; visually distinguish unsupported areas from low-scoring areas.
Learning objectives
- Link each prediction to its model and input data version.
- Display scores and uncertainty without portraying estimates as observations.
Key topics
- Batch inference, model artefacts and version metadata
- Unsupported geography and drift indicators
- Prediction legends and documentation of intended use
08Language Models and Retrieval for GIS5 lessons · 3 hours
Build a provider-independent language service using curated documents and structured intent rather than relying on a model's memory.
Lesson 1: Separate Chat Products from API Integration
Compare interactive AI-assisted development with a server-side model adapter. Use a mock adapter in the laboratory when provider API credentials or approved access are unavailable.
Learning objectives
- Implement a common interface for a mock and a configured model provider.
- Document model identifiers, timeouts and fallback behaviour.
Key topics
- Chat interfaces versus separately configured API access
- Server-side credentials and model version tracking
- Mock responses, provider errors and service budgets
Lesson 2: Extract a Constrained Spatial Intent
Translate requests such as ‘Show listed clinics near this point’ into structured intents. Test paraphrases and ambiguous place names in English and Kiswahili using a curated fixture set.
Learning objectives
- Define an intent schema with allowed operations, categories and required parameters.
- Ask for clarification when place, distance or scope cannot be resolved safely.
Key topics
- Structured model outputs and independent schema validation
- Local place-name variants and gazetteer resolution
- Clarification, unsupported intent and default handling
Lesson 3: Prepare a Curated Retrieval Corpus
Build a corpus from data dictionaries, public source notes and approved service guidance. Split documents into sections and keep publication dates, source identifiers and access labels with each segment.
Learning objectives
- Create a searchable corpus whose retrieved segments can be traced to source documents.
- Apply access and freshness filters before passing context to a model.
Key topics
- Document segmentation and metadata inheritance
- Keyword search using PostgreSQL full-text search
- Optional semantic retrieval and comparative evaluation
Lesson 4: Generate Evidence-Grounded Explanations
Combine retrieved passages and verified query facts to answer a bounded user question. Check that references resolve to supplied evidence and that missing or contradictory evidence triggers a qualified response.
Learning objectives
- Return an explanation with source references and data dates.
- Reject unsupported claims and distinguish documentary statements from computed facts.
Key topics
- Retrieved context as data rather than instructions
- Citation validation and deterministic rendering of numeric facts
- Source disagreement, freshness and abstention
Lesson 5: Evaluate Prompt and Model Changes
Run a fixed set of supported, ambiguous and unanswerable questions against two prompt versions or approved models. Score correctness, source support, appropriate abstention, latency and estimated usage cost.
Learning objectives
- Create labelled regression cases with expected intent and evidence.
- Justify a prompt or model choice using observed trade-offs.
Key topics
- Golden sets and versioned evaluation records
- Citation support versus citation presence
- Variability, response time and usage estimates
09Natural-Language Map Interaction5 lessons · 3 hours
Connect validated intents to read-only spatial services and visible changes in map state without giving the model unrestricted execution privileges.
Lesson 1: Expose a Small Registry of Safe Map Operations
Implement typed tools for viewport lookup, nearest facilities and facility detail. Route them through existing API services rather than executing arbitrary model-generated SQL.
Learning objectives
- Define each operation's input schema, access policy and result limit.
- Reject unknown operations and arguments outside the intended scope.
Key topics
- Allowlisted operations and fixed query templates
- Server validation and permission checks per call
- Side-effect-free public search
Lesson 2: Constrain Execution and Handle Partial Results
Run a single request through intent parsing, validation, bounded execution and response assembly. Simulate a tool timeout and ensure an incomplete result cannot be presented as exhaustive.
Learning objectives
- Enforce caps on calls, returned records and total execution time.
- Return explicit result and failure states without inventing missing facts.
Key topics
- Bounded orchestration and stop conditions
- Timeouts, truncation and partial-result metadata
- Deterministic fallbacks for map browsing
Lesson 3: Bind Results to Map State and Feature IDs
Return an envelope containing feature IDs, result extent, dataset version and verified facts. Highlight features using structured data and offer an explicit ‘show results on map’ control.
Learning objectives
- Drive map changes from validated results rather than free-form model text.
- Verify that the results list, highlights and detail cards reference the same features.
Key topics
- Typed response envelopes and stable identifiers
- Fit-to-results behaviour and zoom constraints
- Dataset version consistency and no-result handling
Lesson 4: Manage Context and Location Consent
Distinguish selected location, current viewport and device geolocation. Implement a confirmation step when the user requests a search near their current location, and avoid unnecessary transfer of precise coordinates to the model provider.
Learning objectives
- State which location context each search will use.
- Minimise context sent to the model and clear stale selections between tasks.
Key topics
- Session context and user-controlled scope
- Device location permissions and data minimisation
- Server-side spatial computation with limited model context
Lesson 5: Verify Conversation-to-Map Consistency
Replay prompts for ambiguous towns, absent records and differing map extents. Compare tool arguments and highlighted IDs with reference SQL results and review the interface in both normal and degraded modes.
Learning objectives
- Detect disagreements between intent, spatial result and displayed map features.
- Demonstrate a manual search path that works without the language service.
Key topics
- Trace identifiers across intent, API and map state
- Reference-result comparison and regression fixtures
- Clarification, recoverable errors and manual fallback
10Defensive Security, Privacy and Responsible AI5 lessons · 3 hours
Harden the application using least privilege, data minimisation and defensive checks on supplied local fixtures.
Lesson 1: Threat-Model the GIS Data Flow
Annotate the architecture with public, restricted and private assets. Prioritise plausible failure scenarios, including disclosure of field observations and an AI summary exceeding its intended scope.
Learning objectives
- Identify trust boundaries and map each material risk to an owner and control.
- Write defensive acceptance tests for two high-priority risks.
Key topics
- Threat modelling and data-flow review
- Public map tiles, restricted APIs and external model services
- Fail-closed behaviour for access decisions
Lesson 2: Enforce Authentication and Object-Level Authorisation
Use instructor-provided identities and synthetic records to verify access for public, enumerator and steward roles. Grant the assistant a read-only path limited to approved views and operations.
Learning objectives
- Verify ownership or role checks for individual observation records.
- Assign distinct database permissions to public read and authorised write paths.
Key topics
- Authentication versus authorisation
- Object-level policy checks and restricted views
- Read-only roles and negative access tests
Lesson 3: Protect Secrets, Inputs and Service Boundaries
Review generated and hand-written code for plaintext secrets, unbounded requests, unsafe rendering and verbose errors. Configure production-oriented settings in staging and verify them with test fixtures.
Learning objectives
- Apply server-side configuration for allowed origins, request limits and secret isolation.
- Verify that untrusted labels and model text are rendered as data, not executable markup.
Key topics
- HTTPS, narrow CORS configuration and browser security headers
- Parameterized data access and safe output rendering
- Secret handling, dependency review and resource limits
Lesson 4: Treat Retrieved Content and Model Output as Untrusted
Use benign instructor-authored fixtures to verify that directive text in source documents cannot alter tool policy. Confirm that malformed model output is rejected and restricted data never enters the model context.
Learning objectives
- Separate application policy from retrieved content and model suggestions.
- Verify allowlists and schema checks before any tool executes.
Key topics
- Indirect prompt injection as a defensive design concern
- Access filtering before retrieval context assembly
- Output validation and least-privilege tool design
Lesson 5: Review Geographic Privacy and Data Stewardship
Trace a synthetic observation through device storage, server logs, database and optional model context. Set publication, retention and provider transfer rules. For Kenyan deployments, the instructor verifies current official requirements and guidance before presenting any jurisdiction-specific obligation.
Learning objectives
- Write data minimisation and retention decisions for each storage or transfer point.
- Identify which data governance decisions need organisational or jurisdiction-specific review.
Key topics
- Precise location, linked identifiers and contextual sensitivity
- Retention, purpose limitation and provider processing terms
- Current official guidance from Kenya's Office of the Data Protection Commissioner
11Quality Assurance, Accessibility and Performance5 lessons · 3 hours
Verify spatial correctness and user experience systematically, then measure performance and diagnose failures with representative data and device conditions.
Lesson 1: Build Spatial Reference Fixtures
Construct known geometries and reference results for boundaries, distances, empty viewports and invalid input. Cross-check selected expected values independently rather than deriving all test expectations from the application query.
Learning objectives
- Create fixtures that detect axis reversal, unit errors and boundary ambiguity.
- Specify justified tolerances for calculated distances.
Key topics
- Reference points, known membership cases and coordinate order
- Numerical tolerances and units
- Independent checks in QGIS or a documented geodesic method
Lesson 2: Automate API and Interface Regression Tests
Test the sequence from data fixture to API response, map selection and mobile submission. Use deterministic model stubs for routine tests and keep live-provider evaluation separate.
Learning objectives
- Automate contract checks and at least one end-to-end user journey.
- Separate reproducible application tests from variable model evaluations.
Key topics
- Unit, integration and end-to-end test responsibilities
- Synthetic database fixtures and provider stubs
- Authorisation and offline state regression cases
Lesson 3: Measure and Improve Map and API Performance
Measure initial map usability, query response time and bytes transferred at different extents. Profile the browser and database, then verify that a selected optimisation preserves required features and attributes.
Learning objectives
- Measure baseline and post-change performance using the same conditions.
- Choose a response to the observed bottleneck rather than optimising by assumption.
Key topics
- Cold versus warm cache, network profiles and latency percentiles
- Viewport filtering, zoom-dependent generalisation and tile delivery
- Cache ownership, freshness and restricted-response handling
Lesson 4: Run Accessibility and Mobile Compatibility Checks
Follow the same discovery and submission tasks with keyboard navigation, a screen reader or accessibility tool, mobile touch and throttled connectivity. Log barriers using reproducible steps and expected behaviour.
Learning objectives
- Check key tasks for focus, labels, contrast and non-map alternatives.
- Prioritise accessibility and device defects by impact on task completion.
Key topics
- Manual task-based checks and automated scan limits
- Screen-reader announcements and focus restoration
- Touch, small viewports and low-bandwidth usability
Lesson 5: Instrument Failures without Over-Collecting Data
Capture structured events for map requests, data freshness, sync outcomes and model failures. Trace a simulated timeout using a correlation identifier and verify that telemetry excludes unnecessary locations and prompt content.
Learning objectives
- Define operational signals for GIS and AI components separately.
- Diagnose a failed request using redacted logs and timing information.
Key topics
- Structured logging and request correlation
- Dependency timings, error rates and model abstention counts
- Redaction, log retention and alert thresholds
12Deployment, Operations and Professional Handover5 lessons · 3 hours
Promote the application to a controlled staging environment and demonstrate that another practitioner can operate, update and recover it.
Lesson 1: Package the Stack for Staging
Build versioned containers for the API and client and attach persistent storage for PostgreSQL. Validate environment-specific settings and distinguish application liveness from readiness to serve requests.
Learning objectives
- Launch the staging stack from a versioned configuration.
- Demonstrate dependency checks, external secret configuration and persistent data storage.
Key topics
- Container images, Compose and environment separation
- Readiness, liveness and startup dependencies
- TLS termination and restricted database network exposure
Lesson 2: Promote Versions and Verify Rollback Compatibility
Run automated checks against a tagged build and document compatible versions of the app, schema, data, model and prompts. Exercise a failed release with a reversible change or a tested roll-forward plan.
Learning objectives
- Produce a release manifest linking code, migrations and AI artefacts.
- Identify whether the previous application can operate against a migrated schema.
Key topics
- Continuous integration and deployment gates
- Backward-compatible migrations and version compatibility
- Cache invalidation and progressive web app update behaviour
Lesson 3: Restore Data and Plan for Provider Outages
Restore a backup into a separate training instance and verify selected feature counts, permissions and spatial queries. Simulate an unavailable model provider while preserving public map and manual search functions.
Learning objectives
- Show that the restored database supports known application queries.
- Document recovery time and data loss expectations and confirm graceful AI degradation.
Key topics
- Backup scope, restore verification and recovery objectives
- Provider timeouts and user-visible degraded modes
- Operational notices and dependency escalation
Lesson 4: Manage Updates, Costs and Data Stewardship
Set review triggers for new source releases, prediction drift, model changes and unusually high request volume. Estimate major operating costs under a documented traffic scenario and assign review responsibilities.
Learning objectives
- Create an update schedule with owners and acceptance checks.
- Estimate the effects of traffic, tile delivery and model use on operating cost.
Key topics
- Dataset refresh, withdrawn records and cache invalidation
- Prediction drift and prompt regression after provider changes
- Rate limits, usage quotas and supplier terms
Lesson 5: Demonstrate the Release and Hand Over Operations
Walk through a public web search, offline mobile capture, synchronisation and a grounded map response. Use the runbook to explain limitations, show the manual fallback and give a second operator enough information to reproduce a release check.
Learning objectives
- Demonstrate a complete browsing, capture and verified-assistance workflow.
- Hand over version records, architecture, data lineage and operational instructions.
Key topics
- Runbooks, release notes and escalation ownership
- Source attribution, uncertainty and acceptable use
- Repeatable smoke tests and operator handover
Upcoming training dates
There are no published dates for this course at present. Register your interest and the OGC team will advise you about the next intake.