Custom Connector
Polisen Events Connector
Sweden
The Polisen Connector facilitates seamless integration with Polisen events, enabling access to event-related data for analytics, visualization, and incident monitoring. It acts as a proxy to streamline data retrieval, supporting event enumeration with optional filtering by date, location, and event type.
Overview
Integration Overview
This document provides a detailed guide for the integration point, its purpose, configuration, and workflow support using the Polisen API Connector.
- getEvents. Retrieves a list of events from the Polisen API with optional filtering by date, location, and event type.
Documentation
Detailed Integration Documentation
Events Retrieval
| Action | getEvents |
|---|---|
| Purpose | Retrieves a list of events from the Polisen API — the primary entry point for event data, with filtering by datetime, location, and event type. |
| Configuration | Configure the base URL via CONNECTOR_ENV_POLISEN_BASE_URL (default https://polisen.se). The port is configurable via CONNECTOR_ENV_PORT (default 8081). |
| Parameters | Required: None. Optional: DateTime — filter by date/time (e.g. 2025-09-01T15:00:00); locationname — filter by location (e.g. Stockholm); type — filter by type (e.g. incident, accident). Custom headers (default application/json). |
| Output | Successful: JSON object with event data as provided by the Polisen API. Failure: JSON error (e.g. {“error”:“Failed to connect to upstream API”}) with a 500 status code. |
| Workflow example | Execute getEvents with DateTime=2025-09-01T15:00:00&locationname=Stockholm, then display or analyze event data. |
Example Workflow: Fetching & Filtering Events
| Retrieve events | Use getEvents to fetch events — e.g. /api/events?locationname=Stockholm&type=incident for incidents in Stockholm. |
|---|---|
| Process event data | Parse the JSON response to extract event details (event ID, timestamp, location). |
| Analyze or visualize | Use the data for analysis (incident trends) or visualization (mapping events). |
Support
For technical support, contact custom-connectors-support@isolutions.sa.