GeoVeil API Documentation

GeoVeil exposes two API versions for access to the GNSS interference data of the ROMPOS system (86 active stations, 83 with spectrum analysis), operated by ANCPI through the National Centre for Cartography (CNC). V2 is the primary API — live data, spoofing analysis and ML prediction. V1 is the classic API with historical perspective and VADASE data.

Overview

The ROMPOS system has 86 active CORS stations, operated by ANCPI through CNC. GeoVeil connects to 83 stations with spectrum-analysis capability (NovAtel OEM7), streaming ITDETECTSTATUSA and SPECTRUMANALYSIS in real time, processed for interference, spoofing and meaconing detection. 74 stations hold a VADASE licence for positional displacement analysis.

Authentication

The APIs are public and require no authentication for read operations. Administrative endpoints are not publicly documented and require authentication.

Base URLs

V2 — Live (primary)
https://api.geoveil.ro/v2
V1 — Classic
https://api.geoveil.ro/v2/v1

Machine-readable description (OpenAPI 3.0): https://geoveil.ro/openapi.json — import it into Postman, Insomnia or a client generator, or browse it in Swagger UI.

Formats

All responses are application/json. Timestamps are ISO 8601 with an explicit offset, in Romanian local time (Europe/Bucharest: +02:00 in winter, +03:00 in summer), e.g. 2026-11-06T00:00:00+02:00. Event timestamps are truncated to the minute. The receivers stamp their data in GPS time, which leads UTC by 18 s; that is negligible at minute resolution — subtract 18 s for sub-minute alignment. Frequencies and bandwidths in MHz, power in dBm, power spectral density in dBm/Hz.

GET /stations — Station catalogue and reporting state (V2)

V2
GET /stations All stations with coordinates and whether each is currently reporting

The catalogue to use for maps and joins, and the only way to tell a quiet station from one that is not reporting. No parameters; cached for 60 s.

Response
{
  "generated": "2026-11-06T01:20:00+02:00",
  "stations": [
    {
      "code": "SULI",
      "name": "Sulina",
      "lat": 45.1583,
      "lon": 29.6667,
      "active": true,
      "reporting": true,
      "last_event": "2026-11-06T01:19:00+02:00",
      "last_rangea": "2026-11-06T01:19:50+02:00"
    },
    ...
  ]
}
Response fields
FieldDescription
code4-letter station code used by every other endpoint
nameStation name (with diacritics)
lat / lonSurveyed position, WGS84 degrees
activefalse for decommissioned stations, which are listed for completeness
reportingtrue when the receiver streamed observations in the last 10 minutes or an interference event in the last hour. Show false as "no data", never as "clean"
last_event / last_rangeaNewest interference event (last 24 h) and newest observation epoch (last 30 min), or null

GET /i — Interference events (V2)

V2
GET /i Events by station + date range

Returns interference events for a station within a date range.

Parameters
ParameterTypeDescription
station_codestringreqStation code (e.g. SULI)
start_datedatereqStart date (YYYY-MM-DD)
end_datedatereqEnd date (YYYY-MM-DD)
Response
[
  {
    "id": 12345,
    "station_code": "SULI",
    "stationid": 64,
    "datetime": "2026-05-26T17:23:00+03:00",
    "rfpath": "L1",
    "centfreq_mhz": 1575.42,
    "bandwidth_mhz": 10.0,
    "powerloss_dbm": -42.5,
    "hestpowspecdens_dbmhz": -95.3
  },
  ...
]
Response fields
FieldDescription
datetimeMinute of the detection, local time with offset (see Formats)
rfpathReceiver RF path: L1, L2 or L5
centfreq_mhz / bandwidth_mhzCentre frequency and bandwidth of the detected signal, MHz
powerloss_dbmMisnamed, kept for compatibility: the receiver's estimated interference power at its input, in dBm (NovAtel ITDETECTSTATUS). An absolute level under the receiver's calibration, typically −39 to −88 dBm — not a loss and not a difference. The STRIKE3 export calls it peak_interference_power_dbm.
hestpowspecdens_dbmhzEstimated power spectral density, dBm/Hz, referenced to the receiver's own gain-calibrated interference-free spectrum. Comparable within one receiver type, only approximately against external absolute thresholds. Values above −60 are receiver sentinels, not measurements — ignore them. The six-level scale used by /now cuts at −130 / −120 / −110 / −103 / −98.

The detector is not significance-gated: it reports every signal it finds, so a healthy station has events in nearly every hour. A station with no events for an hour is most likely not reporting — check /stations.

GET /lh — Last hour (V2)

V2
GET /lh All events in the last 60 minutes

Returns the raw events from the last hour. Without parameters it returns all stations (potentially large — 100k+ events). With station_code it filters per station; limit caps the row count (recommended when opening a station modal). For aggregate views, prefer /lh/summary.

Optional parameters
ParameterTypeDescription
station_codestringoptFilter per station (e.g. SULI)
limitintoptMaximum rows returned (ORDER BY datetime DESC). Recommended: 3000 when station_code is set.
Response
[
  {
    "station_code": "SULI",
    "stationid": 64,
    "datetime": "2026-05-26T15:14:00+03:00",
    "rfpath": "L1",
    "centfreq_mhz": 1575.42,
    "bandwidth_mhz": 8.0,
    "powerloss_dbm": -38.2,
    "hestpowspecdens_dbmhz": -92.1
  },
  ...
]

GET /lh/summary — Last-hour summary (V2)

V2
GET /lh/summary Per-station aggregated summary of the last hour

Returns one row per active station with pre-aggregated stats: event count, dominant band, minimum power loss, 6 ten-minute time buckets and the best spoofing analysis. Ideal for the Threats page — returns ~32 rows instead of 100k+ raw events.

Parameters

None. Returns all stations active during the last hour.

Response
[
  {
    "station_code": "SULI",
    "stationid": 64,
    "count": 4823,
    "dom_rfpath": "L1",
    "min_powerloss": -61.4,
    "buckets": [820, 910, 750, 890, 780, 673],
    "threat_type": "spoofing_candidate",
    "confidence": 0.87,
    "severity": "high"
  },
  ...
]
Response fields
FieldDescription
station_codeStation code (e.g. SULI)
stationidInternal numeric ID
countTotal events in the last hour
dom_rfpathDominant RF band (e.g. L1)
min_powerlossLowest estimated interference power in the hour, dBm (MIN(powerloss_dbm); see the /i field notes — it is a power, not a loss)
bucketsArray of 6 values: event count per 10-minute window (chronological)
threat_typeLatest verdict today: clean / matched_spectrum / spoofing_candidate / meaconing / confirmed_spoofing (null if no analysis today; see /sa)
confidenceSpoofing analysis confidence score (0–1)
severitylow / high / critical, lowercase. low is also returned when there is no verdict

GET /now — Right-now station snapshot (V2)

V2
GET /now Last-N-min snapshot per station: classified events + sweep detection + V1 enrichment

Returns the last-N-min interference snapshot for one station, with per-event PSD threat level + bandwidth shape, summary aggregates, sweep/chirp pattern detection over a wider context, and best-effort V1 enrichment of overlapping events.

Parameters
ParameterTypeDescription
station_codestringreqV2 station code (e.g. COST)
windowintoptSnapshot window in seconds, 1–900 (default 120)
contextintoptWider lookback in seconds for sweep detection (window..3600, default 600)
include_v10/1optEnrich with V1 events that overlap the window (default 1)
Threat levels (PSD, dBm/Hz)
LevelPSD
noise_floor≤ -130
info-130 .. -120
noticeable-120 .. -110
significant-110 .. -103
high-103 .. -98
critical> -98
Shape (by bandwidth_mhz)

narrowband ≤ 5 MHz · chirp 5..20 MHz · wideband > 20 MHz

Response (abridged)
{
  "station": {"station_code": "COST", "station_name": "Constanta", "lat": 44.16, "lon": 28.66},
  "window":  {"from": "...", "to": "...", "seconds": 120, "context_seconds": 600},
  "summary": {
    "total_events": 47,
    "max_threat_level": "high",
    "by_threat_level": {"noise_floor": 5, "info": 10, "noticeable": 12, "significant": 14, "high": 6, "critical": 0},
    "by_shape": {"narrowband": 41, "chirp": 5, "wideband": 1},
    "by_band":  {"L1": 8, "L2": 28, "L5": 11},
    "peak_psd_dbmhz": -101.3,
    "peak_powerloss_dbm": -42.5
  },
  "pattern": {
    "sweep_detected": true,
    "events_in_window": 7,
    "distinct_minutes": 3,
    "cf_span_mhz": 18.24,
    "time_span_s": 120.0,
    "drift_mhz_per_s": 0.152
  },
  "events":     [ /* per-event with threat_level + shape */ ],
  "v1_active":  [ /* V1 events overlapping the window */ ],
  "v1_included": true
}

GET /ce — Cross-station correlated events (V2)

V2
GET /ce Cross-station correlated events

Detects groups of events with the same frequency and bandwidth across multiple stations within the specified interval (cross-station correlation).

Parameters
ParameterTypeDescription
start_datedatereqStart date
end_datedatereqEnd date
min_stationsintoptMinimum stations (default: 2)
Response
[
  {
    "centfreq_mhz": 1575.42,
    "bandwidth_mhz": 10.0,
    "station_count": 5,
    "stations": ["SULI", "BBUC", "DEVA", "TIMI", "ARAD"],
    "first_seen": "2026-05-26T12:00:00Z",
    "last_seen": "2026-05-26T14:30:00Z"
  },
  ...
]

GET /sa — Spoofing analysis (V2)

V2
GET /sa Spoofing analysis — 7-indicator engine

Returns the spoofing analysis for a station and interval. The engine scores 7 indicators: temporal, spatial, multi-band, spectral power, cross-station correlation, frequency pattern and temporal drift.

Parameters
ParameterTypeDescription
station_codestringreqStation code
start_datedatereqStart date
end_datedatereqEnd date
limitintoptMaximum rows returned (default 500, max 5000)
Response
[
  {
    "station_code": "SULI",
    "stationid": 64,
    "datetime": "2026-05-26T17:23:00+03:00",
    "centfreq_mhz": 1575.42,
    "threat_type": "spoofing_candidate",
    "confidence": 0.87,
    "severity": "high",
    "freq_precision_score": 0.9,
    "bw_match_score": 0.85,
    "psd_anomaly_score": 0.6,
    "power_consistency_score": 0.7,
    "temporal_persistence_score": 0.9,
    "spatial_isolation_score": 0.75,
    "multiband_coherence_score": 0.8,
    "doppler_common_mode_score": 0.0,
    "position_deviation_m": 21.4,
    "clock_jump_m": null,
    "analysis_notes": "Strong temporal clustering with spatial spread..."
  },
  ...
]
Threat types
ValueDescription
cleanNone of the seven RF indicators above threshold
matched_spectrumThe signal's centre frequency and bandwidth match a GNSS signal structure. Evidence of in-band interference of interest, not of spoofing by itself
spoofing_candidateThe seven-indicator heuristic score (frequency precision, bandwidth match, PSD anomaly, power consistency, temporal persistence, spatial isolation, multi-band coherence) exceeds the candidate threshold. Heuristic, not validated
meaconingPattern of a delayed re-broadcast. Heuristic, rare
confirmed_spoofingThe receiver's own RXSTATUS spoofing bit was set within 60 s of the analysis (confidence = 1.0). The only class with receiver corroboration — still the receiver's judgement, not independent confirmation
Severity
ValueMeaning
lowclean, or confidence below the reporting threshold
highmatched_spectrum or a candidate with mid confidence
criticalconfirmed_spoofing, or a spoofing_candidate / meaconing verdict with high confidence

All five classes are automated classifications. No independent ground-truth campaign has been run for spoofing, so no false-positive rate is published for the heuristic classes; present them as GeoVeil's automated verdicts, never as independently confirmed interference. position_deviation_m is the receiver's computed position against the station's surveyed coordinate (normal scatter under 40 m, alert at 150 m); doppler_common_mode_score and clock_jump_m are filled only when those detectors fire, which has not happened on live data so far.

GET /analytics — Aggregate statistics (V2)

V2
GET /analytics Aggregated statistics for dashboards

Aggregated statistics: top stations per constellation, frequency distribution, hour×day heatmap, BW/PL scatter, daily trend, weekday vs weekend.

Optional parameters
ParameterTypeDescription
daysintoptLookback days (default: 30)
V2
GET /trends Daily counts + correlation matrix

Daily event counts + station×station co-occurrence matrix (stations active on the same day).

POST /api/predict — ML prediction (V2)

V2
POST /api/predict Hourly interference forecast

24-hour forecast for one station from a given hour: expected events per hour and the probability that the hour is busier than the station's own median hour, plus the RF bands seen at that hour. Since 4 October 2026 V2 is served by an hourly forecaster, retrained daily on GeoVeil's live data (raw NovAtel detections since 26 May 2026) and checked by a rolling-origin backtest over 94 days: mean absolute error 73 events/h against 105 for the best simple baseline, AUC 0.792. It extends activity already under way; it does not announce new sweeps. A station that is not transmitting, or a time outside the forecast window, falls back to the older calendar model.

Body (JSON)
FieldTypeDescription
station_codestringreqStation code (e.g. "SULI")
datetimestringreqHour to start from, ISO 8601. Without an offset it is read as Bucharest local time (e.g. "2026-10-04T15:00"); with an offset or Z it is converted.
Example request
POST /api/predict
Content-Type: application/json

{
  "station_code": "SULI",
  "datetime": "2026-10-04T15:00"
}
Response (abridged)
{
  "station_code": "SULI",
  "predictions": [
    { "hour": "2026-10-04T15:00", "expected_events": 1916.0, "probability": 94.2, "source": "forecaster" },
    { "hour": "2026-10-04T16:00", "expected_events": 1645.0, "probability": 89.1, "source": "forecaster" },
    ...
  ],
  // probability: 0–100, P(hour busier than the station's median hour)
  // source: "forecaster" or "calendar"; when the forecaster answers, only its hours are returned (22–24)
  "forecaster": {
    "origin": "2026-10-04T11:00",            // UTC hour the forecast starts from (re-issued every hour at :15)
    "generated_at": "2026-10-04T11:34:32Z",
    "hours_served": 23,
    "threshold": 96.0,                       // the station's median hour, in events: the reference for the probability
    "model": {
      "name": "forecaster (ML Phase 1)", "trained_at": "2026-10-04T09:06:23Z", "features": 34,
      "backtest": { "mae_events": 72.6, "best_baseline_mae_events": 105.0, "auc": 0.792,
                    "brier_skill_vs_climatology": 0.116, "origins": 94, ... },
      "top_features": { "station": 0.27, "y24": 0.13, "hour_t": 0.12, ... }
    }
  },
  "station_baseline": { "events_per_hour": 1296.99, "median_hour_events": 73.0, "total_events": 3828268, ... },
  "band_predictions": [
    { "rfpath": "L1", "centfreq_mhz": "1575.5", "avg_bw": "4.36", "avg_pl": "-61.1",
      "avg_psd": "-122.0", "occurrences": 4615, "pct": "3.3" },
    ...
  ],
  "recent_hourly": [ { "day": "2026-09-27", "hour": 11, "count": 1 }, ... ],
  "model_info": { ... },                     // calendar LightGBM (fallback)
  "feature_importance": { ... }              // calendar LightGBM (fallback)
}

GET /api/predict/status

V2
GET /api/predict/status Model state

Top-level fields describe the calendar LightGBM, which now only fills hours the forecaster does not cover. The forecaster block describes the served model: available, serving (or shadow), stale, forecast origin and age, stations not transmitting, and the model with its backtest and feature importance.

Response
{
  "forecaster": {
    "available": true, "serving": true, "stale": false,
    "origin": "2026-10-04T11:00", "age_min": 34, "stations": 82,
    "stations_not_ingesting": ["ARAD", "HUED"],
    "target": "above_station_median_hour",
    "model": { "name": "forecaster (ML Phase 1)", "backtest": { ... }, "top_features": { ... } }
  },
  "role": "fallback: hours the forecaster does not cover",
  "trained": true,
  "is_training": false,
  "accuracy": { ... },                       // calendar LightGBM (fallback)
  "feature_importance": { ... },
  "stations_with_baseline": 82
}

GET /api/predict/compare

V2
GET /api/predict/compare Calendar LightGBM vs LSTM

Side-by-side metrics of the calendar LightGBM and the LSTM. Neither serves the V2 forecast since 4 October 2026; this endpoint is kept for diagnostics. comparable is true only when both answer the same question, and a winner is named only then.

Response
{
  "lightgbm": { "trained": true, "accuracy": { ... } },
  "lstm":     { "trained": true, "is_training": false, "training_progress": null, "accuracy": { ... } },
  "comparable": true,
  "winner": { "accuracy": "...", "auc": "...", "f1": "...", "mae": "..." }
}

POST /api/predict/retrain

V2
POST /api/predict/retrain Force LightGBM retraining

Forces a retrain of the LightGBM model. The LSTM retraining is chained automatically after completion. Returns 409 if a training run is already in progress.

Body

No body required.

Response (success)
{ "status": "retraining started" }
Response (409 — already training)
{ "error": "Training already in progress" }

GET /i — Events (V1 Classic)

V1
GET /i Events by station name (legacy format)

Classic endpoint — returns events for a station with legacy field names. Used by the V1 polar chart.

Parameters
ParameterTypeDescription
statiestringreqStation name (e.g. Sulina)
start_datedatereqStart date (YYYY-MM-DD)
end_datedatereqEnd date (YYYY-MM-DD)
Response (V1 fields)
[
  {
    "DataOra": "2026-04-05T14:23:00",
    "DataOra_fin": "2026-04-05T14:45:00",
    "BandaRF": "L1",
    "Frecv_cent_MHz": 1575.42,
    "LunBanda_MHz": 10.0,
    "Pie_put_est_dBm": -42.5
  },
  ...
]

GET /stats — Systematic statistics (V1)

V1
GET /stats Systematic interference statistics

Aggregated per-RF-band statistics: occurrences, CF min/max, BW max, PL max, time range.

Parameters
ParameterTypeDescription
statiestringreqStation name
start_datedatereqStart date
end_datedatereqEnd date

GET /correlated — Correlated (V1)

V1
GET /correlated Cross-station correlation (V1 logic)

Events with the same frequency detected simultaneously across multiple stations (cross-station correlation). Different implementation from V2 /ce (kept for historical reference).

Parameters
ParameterTypeDescription
start_datedatereqStart date
end_datedatereqEnd date

GET /vadase — VADASE data (V1)

V1
GET /vadase VADASE displacement data

VADASE (Variometric Approach for Displacement Analysis Stand-alone Engine) displacement data for detecting GNSS station positional changes. Available for 74 ROMPOS stations with active VADASE licences. Useful for correlating interferences with positional displacements.

Parameters
ParameterTypeDescription
statiestringreqStation name
start_datedatereqStart date
end_datedatereqEnd date
Response
[
  {
    "DataOra": "2026-04-05T14:00:00",
    "East_mm": 2.3,
    "North_mm": -1.1,
    "Up_mm": 4.7
  },
  ...
]

RF Bands

BandFrequency (MHz)ConstellationDescription
L11575.42GPSPrimary GPS band, the most vulnerable to interference
L21227.60GPSSecondary GPS band, used for ionospheric corrections
L51176.45GPS / GalileoCivil safety-of-life band
E11575.42GalileoPrimary Galileo band (co-located with GPS L1)
GLONASS L11598.0625–1605.375GLONASSFDMA, channels 1–6
GLONASS L21242.9375–1248.625GLONASSSecondary FDMA

Error codes

HTTP codeMeaning
200Success
400Missing or invalid parameters
401API key required (protected endpoint, e.g. /flush)
404Station not found or no events
409Conflict (e.g. model already training)
429Too many requests — rate limit exceeded (see Rate limits)
500Internal server error (check logs)
503Service unavailable (model not trained)

Rate limits

Public endpoints are rate-limited per IP to protect the infrastructure. Applied limits:

EndpointLimit
/i, /ce, /sa, /lh/summary60 / minute
/lh, /now120 / minute
/stations, /rxstatus/lh, /grid/hex, /v1/*60 / minute
/analytics, /trends10 / minute
/api/predict, /api/predict/v120 / minute
/flush admin10 / hour
other endpoints200 / minute (default)

When the limit is hit, the API responds with HTTP 429 Too Many Requests and the body {"error": "Rate limit exceeded", "retry_after": "..."} — respect the retry hint before retrying.

For intensive queries (e.g. all stations daily), leave at least 500 ms between requests and prefer the aggregate endpoints (/analytics, /lh/summary) over individual per-station calls.

Clients that send an API key are limited per key at twice these rates instead of per IP. Reuse terms, attribution and how to request a key are on the Licence & terms page.

Examples

cURL — Prediction for Sulina

curl -X POST https://api.geoveil.ro/v2/api/predict \
  -H "Content-Type: application/json" \
  -d '{"station_code":"SULI","datetime":"2026-05-26T14:00"}'

Python — Last-hour events (specific station, limited)

import requests

resp = requests.get(
    "https://api.geoveil.ro/v2/lh",
    params={"station_code": "SULI", "limit": 3000}
)
events = resp.json()
for e in events:
    print(f"{e['datetime']}  {e['rfpath']}  {e['centfreq_mhz']} MHz")

JavaScript — Last-hour summary (all stations)

const resp = await fetch("https://api.geoveil.ro/v2/lh/summary");
const stations = await resp.json();
const threats = stations.filter(s => s.threat_type === "spoofing_candidate");
console.log(`${threats.length} stations with spoofing candidates in the last hour`);

JavaScript — Cross-station correlated

const today = new Date().toISOString().split('T')[0];
const resp = await fetch(
  `https://api.geoveil.ro/v2/ce?start_date=${today}&end_date=${today}&min_stations=3`
);
const correlated = await resp.json();
console.log(`${correlated.length} correlated event groups today`);

Python — V1 polar chart data

import requests

resp = requests.get(
  "https://api.geoveil.ro/v2/v1/i",
  params={"statie": "Sulina", "start_date": "2026-04-05", "end_date": "2026-04-05"}
)
events = resp.json()
for e in events:
    print(f"{e['DataOra']}  {e['BandaRF']}  {e['Frecv_cent_MHz']} MHz")