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.
- V2 live stream: ~288,000 events/day (7-day avg since 26 May 2026, peaks over 500K on active days); V1 classic archive: 705,200 records
- 7-indicator spoofing detection engine
- ML prediction: V2 — hourly forecaster on the live data (94-day backtest: MAE 73 events/h vs 105 for the best baseline, AUC 0.792); V1 — Classic (LightGBM on the 2024+ Spider archive, ~82 % accuracy on its own data). Different datasets: not directly comparable.
- Real-time updates via async TCP streaming
Authentication
The APIs are public and require no authentication for read operations. Administrative endpoints are not publicly documented and require authentication.
Base URLs
https://api.geoveil.ro/v2
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)
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.
{
"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"
},
...
]
}
| Field | Description |
|---|---|
| code | 4-letter station code used by every other endpoint |
| name | Station name (with diacritics) |
| lat / lon | Surveyed position, WGS84 degrees |
| active | false for decommissioned stations, which are listed for completeness |
| reporting | true 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_rangea | Newest interference event (last 24 h) and newest observation epoch (last 30 min), or null |
GET /i — Interference events (V2)
Returns interference events for a station within a date range.
| Parameter | Type | Description | |
|---|---|---|---|
| station_code | string | req | Station code (e.g. SULI) |
| start_date | date | req | Start date (YYYY-MM-DD) |
| end_date | date | req | End date (YYYY-MM-DD) |
[
{
"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
},
...
]
| Field | Description |
|---|---|
| datetime | Minute of the detection, local time with offset (see Formats) |
| rfpath | Receiver RF path: L1, L2 or L5 |
| centfreq_mhz / bandwidth_mhz | Centre frequency and bandwidth of the detected signal, MHz |
| powerloss_dbm | Misnamed, 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_dbmhz | Estimated 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)
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.
| Parameter | Type | Description | |
|---|---|---|---|
| station_code | string | opt | Filter per station (e.g. SULI) |
| limit | int | opt | Maximum rows returned (ORDER BY datetime DESC). Recommended: 3000 when station_code is set. |
[
{
"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)
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.
None. Returns all stations active during the last hour.
[
{
"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"
},
...
]
| Field | Description |
|---|---|
| station_code | Station code (e.g. SULI) |
| stationid | Internal numeric ID |
| count | Total events in the last hour |
| dom_rfpath | Dominant RF band (e.g. L1) |
| min_powerloss | Lowest estimated interference power in the hour, dBm (MIN(powerloss_dbm); see the /i field notes — it is a power, not a loss) |
| buckets | Array of 6 values: event count per 10-minute window (chronological) |
| threat_type | Latest verdict today: clean / matched_spectrum / spoofing_candidate / meaconing / confirmed_spoofing (null if no analysis today; see /sa) |
| confidence | Spoofing analysis confidence score (0–1) |
| severity | low / high / critical, lowercase. low is also returned when there is no verdict |
GET /now — Right-now station snapshot (V2)
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.
| Parameter | Type | Description | |
|---|---|---|---|
| station_code | string | req | V2 station code (e.g. COST) |
| window | int | opt | Snapshot window in seconds, 1–900 (default 120) |
| context | int | opt | Wider lookback in seconds for sweep detection (window..3600, default 600) |
| include_v1 | 0/1 | opt | Enrich with V1 events that overlap the window (default 1) |
| Level | PSD |
|---|---|
| noise_floor | ≤ -130 |
| info | -130 .. -120 |
| noticeable | -120 .. -110 |
| significant | -110 .. -103 |
| high | -103 .. -98 |
| critical | > -98 |
narrowband ≤ 5 MHz · chirp 5..20 MHz · wideband > 20 MHz
{
"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)
Detects groups of events with the same frequency and bandwidth across multiple stations within the specified interval (cross-station correlation).
| Parameter | Type | Description | |
|---|---|---|---|
| start_date | date | req | Start date |
| end_date | date | req | End date |
| min_stations | int | opt | Minimum stations (default: 2) |
[
{
"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)
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.
| Parameter | Type | Description | |
|---|---|---|---|
| station_code | string | req | Station code |
| start_date | date | req | Start date |
| end_date | date | req | End date |
| limit | int | opt | Maximum rows returned (default 500, max 5000) |
[
{
"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..."
},
...
]
| Value | Description |
|---|---|
| clean | None of the seven RF indicators above threshold |
| matched_spectrum | The signal's centre frequency and bandwidth match a GNSS signal structure. Evidence of in-band interference of interest, not of spoofing by itself |
| spoofing_candidate | The 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 |
| meaconing | Pattern of a delayed re-broadcast. Heuristic, rare |
| confirmed_spoofing | The 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 |
| Value | Meaning |
|---|---|
| low | clean, or confidence below the reporting threshold |
| high | matched_spectrum or a candidate with mid confidence |
| critical | confirmed_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)
Aggregated statistics: top stations per constellation, frequency distribution, hour×day heatmap, BW/PL scatter, daily trend, weekday vs weekend.
| Parameter | Type | Description | |
|---|---|---|---|
| days | int | opt | Lookback days (default: 30) |
GET /trends — Daily counts + correlation matrix (V2)
Daily event counts + station×station co-occurrence matrix (stations active on the same day).
POST /api/predict — ML prediction (V2)
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.
| Field | Type | Description | |
|---|---|---|---|
| station_code | string | req | Station code (e.g. "SULI") |
| datetime | string | req | Hour 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. |
POST /api/predict
Content-Type: application/json
{
"station_code": "SULI",
"datetime": "2026-10-04T15:00"
}
{
"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
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.
{
"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
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.
{
"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
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.
No body required.
{ "status": "retraining started" }
{ "error": "Training already in progress" }
GET /i — Events (V1 Classic)
Classic endpoint — returns events for a station with legacy field names. Used by the V1 polar chart.
| Parameter | Type | Description | |
|---|---|---|---|
| statie | string | req | Station name (e.g. Sulina) |
| start_date | date | req | Start date (YYYY-MM-DD) |
| end_date | date | req | End date (YYYY-MM-DD) |
[
{
"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)
Aggregated per-RF-band statistics: occurrences, CF min/max, BW max, PL max, time range.
| Parameter | Type | Description | |
|---|---|---|---|
| statie | string | req | Station name |
| start_date | date | req | Start date |
| end_date | date | req | End date |
GET /correlated — Correlated (V1)
Events with the same frequency detected simultaneously across multiple stations (cross-station correlation). Different implementation from V2 /ce (kept for historical reference).
| Parameter | Type | Description | |
|---|---|---|---|
| start_date | date | req | Start date |
| end_date | date | req | End date |
GET /vadase — VADASE data (V1)
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.
| Parameter | Type | Description | |
|---|---|---|---|
| statie | string | req | Station name |
| start_date | date | req | Start date |
| end_date | date | req | End date |
[
{
"DataOra": "2026-04-05T14:00:00",
"East_mm": 2.3,
"North_mm": -1.1,
"Up_mm": 4.7
},
...
]
RF Bands
| Band | Frequency (MHz) | Constellation | Description |
|---|---|---|---|
| L1 | 1575.42 | GPS | Primary GPS band, the most vulnerable to interference |
| L2 | 1227.60 | GPS | Secondary GPS band, used for ionospheric corrections |
| L5 | 1176.45 | GPS / Galileo | Civil safety-of-life band |
| E1 | 1575.42 | Galileo | Primary Galileo band (co-located with GPS L1) |
| GLONASS L1 | 1598.0625–1605.375 | GLONASS | FDMA, channels 1–6 |
| GLONASS L2 | 1242.9375–1248.625 | GLONASS | Secondary FDMA |
Error codes
| HTTP code | Meaning |
|---|---|
| 200 | Success |
| 400 | Missing or invalid parameters |
| 401 | API key required (protected endpoint, e.g. /flush) |
| 404 | Station not found or no events |
| 409 | Conflict (e.g. model already training) |
| 429 | Too many requests — rate limit exceeded (see Rate limits) |
| 500 | Internal server error (check logs) |
| 503 | Service unavailable (model not trained) |
Rate limits
Public endpoints are rate-limited per IP to protect the infrastructure. Applied limits:
| Endpoint | Limit |
|---|---|
/i, /ce, /sa, /lh/summary | 60 / minute |
/lh, /now | 120 / minute |
/stations, /rxstatus/lh, /grid/hex, /v1/* | 60 / minute |
/analytics, /trends | 10 / minute |
/api/predict, /api/predict/v1 | 20 / minute |
/flush admin | 10 / hour |
| other endpoints | 200 / 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")