/ senseBox:bike campaign data
The senseBox:bike is a bike mounted sensorbox. While cycling, the box records GPS position, speed, fine dust (PM1–PM10), temperature & humidity, how close cars overtake (distance sensor + AI detection) and what kind of road surface they ride on (AI classification ofasphalt, paving, compacted, sett, standing).
Data collection campaigns with the senseBox:bike have been run in different cities.
| Tag | City |
|---|---|
heilbronn | Heilbronn, Germany |
muenster | Münster, Germany |
arnsberg | Arnsberg, Germany |
lauds_26 | Nancy, France |
saopaulo | São Paulo, Brazil |
As part of the ATRAI project the ATRAI data platform was developed to process and analyze the collected data. Several ready-made datasets are available on the platform, which can be accessed through its API. You can also explore the data in map view here: data.atrai.bike ↗.
/ The API at a glance
Base URL: https://api.atrai.bike
| Endpoint | What you get |
|---|---|
GET /collections | The names of all available datasets ("collections") |
GET /collections/{name}/items?limit=…&offset=… | The data of one collection as GeoJSON (a FeatureCollection) |
GET /campaigns | Summary numbers for every city campaign (rides, km, riders, time span) |
GET /campaigns/{city} | The same summary for one city, e.g. /campaigns/heilbronn |
Parameters of /collections/{name}/items
| Parameter | Default | Meaning |
|---|---|---|
limit | 100 | Maximum number of features to return. limit=0 returns everything. Be careful: some collections have over a million rows. |
offset | 0 | Skip this many features. Combine with limit to page through large collections. |
campaign | – | Exists, but has no effect yet. To get data for one city, use the city-specific collection (e.g. bumpy_roads_heilbronn). |
Example requests
- /collections ↗List all available collections.
- /campaigns/heilbronn ↗Key numbers of the Heilbronn campaign.
- /collections/bumpy_roads_heilbronn/items?limit=0 ↗All street segments in Heilbronn with their road roughness (~9,400 features).
- /collections/danger_zones_heilbronn/items?limit=0 ↗All overtaking danger points in Heilbronn (~6,500 features).
- /collections/overtaking_distance_heilbronn/items?limit=0 ↗Overtaking distances per street segment in Heilbronn (~1,300 features).
- /collections/tracks/items?limit=500&offset=500 ↗Rides 501–1000 of all cities. Increase
offsetto page through the rest.
/ ready-made Datasets
The analysis datasets are all built from the raw sensor measurements of the bikes. Most of them are matched to street segments from OpenStreetMap: every measurement is assigned to the nearest street (max. 20 m away), and then the values are averaged per segment.
| Dataset | Geometry | One row = | Key fields | How it's calculated |
|---|---|---|---|---|
bumpy_roads_<city> | LineString | street segment | RoughnessNormalized RoughnessNumber of Boxesname | The box's AI estimates the probability of each surface type. Each measurement gets a score = weighted sum of these probabilities with asphalt = 1, paving = 2, compacted = 3, sett (cobblestones) = 4, then the scores are averaged per segment. Higher = bumpier. Normalized Roughness is the same value but scaled to be between 0 and 1. |
danger_zones_<city> | Point | measurement | Risk Index Overtakinglatlng | Only points where an overtaking manoeuvre was detected (>5 % confidence). Risk = 0.3 × manoeuvre confidence + 0.7 × (1 − distance / 400 cm). Range 0–1, higher = more dangerous. |
danger_zones_PM_<city> | Point | measurement | Risk Indexlatlng | Combines traffic and air quality: 0.15 × manoeuvre + 0.35 × closeness + 0.2 × PM1 + 0.15 × PM2.5 + 0.1 × PM4 + 0.05 × PM10 (PM values divided by their maximum; humid readings > 75 % and outliers removed). Range 0–1. |
overtaking_distance_<city> | LineString | street segment | Average Overtaking Distance cmOvertaking Distance CountsNumber of Points | Only clearly detected overtakings (>50 % confidence, distance >25 cm). Overtaking Distance Counts is a histogram: how many overtakings were 0–50, 50–100, 100–150, 150–200 and >200 cm away. (In Germany cars must keep 150 cm in towns.) |
speed_map_<city> | LineString | street segment | avg_speed[km/h]points_in_segment | Average cycling speed on the segment. |
traffic_flow_<city> | LineString | street segment | avg_traffic_flowpoints_in_segment | normalized speed × (1 − standing²), from 0 to 1. Near 1 = cyclists roll freely; near 0 = slow or stop-and-go (traffic lights, congestion). Start and end of each ride are ignored. |
road_network_<city> | LineString | OSM street segment | osmidnamesurfacecyclewayoneway | Bike-relevant streets and paths from OpenStreetMap (via OSMnx). The basis that the other datasets are matched to. |
bike_road_network_<city> | LineString | OSM street segment | osmidnamecyclewayoneway | A slimmer version of road_network (no surface). |
tracks | LineString | ride | boxIdgroupTagsstartTimedistance_metersavg_speed_msavg_pm25avg_overtaking_distance… | One line per ride with summary values. All cities: filter by groupTags (contains the city). |
statistics | Polygon | city | tagstatistics | Pre-computed ride statistics per city: totals, plus weekly values. ⚠️ statistics is a text field (Python syntax, not JSON) that needs parsing. |
osem_bike_data | Point | raw measurement | boxIdgroupTagscreatedAtSpeedFinedust PM2.5Overtaking DistanceSurface Asphalt… | The raw sensor data from openSenseMap, all cities. Very large (> 1 million rows), so only load it page by page. |
