Skip to content
Green City Hackathon

/ senseBox:bike campaign data

← Back to material

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.

TagCity
heilbronnHeilbronn, Germany
muensterMünster, Germany
arnsbergArnsberg, Germany
lauds_26Nancy, France
saopauloSã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

EndpointWhat you get
GET /collectionsThe names of all available datasets ("collections")
GET /collections/{name}/items?limit=…&offset=…The data of one collection as GeoJSON (a FeatureCollection)
GET /campaignsSummary 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

ParameterDefaultMeaning
limit100Maximum number of features to return. limit=0 returns everything. Be careful: some collections have over a million rows.
offset0Skip 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

/ 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.

DatasetGeometryOne row =Key fieldsHow it's calculated
bumpy_roads_<city>LineStringstreet segmentRoughnessNormalized RoughnessNumber of BoxesnameThe 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>PointmeasurementRisk Index OvertakinglatlngOnly 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>PointmeasurementRisk IndexlatlngCombines 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>LineStringstreet segmentAverage Overtaking Distance cmOvertaking Distance CountsNumber of PointsOnly 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>LineStringstreet segmentavg_speed[km/h]points_in_segmentAverage cycling speed on the segment.
traffic_flow_<city>LineStringstreet segmentavg_traffic_flowpoints_in_segmentnormalized 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>LineStringOSM street segmentosmidnamesurfacecyclewayonewayBike-relevant streets and paths from OpenStreetMap (via OSMnx). The basis that the other datasets are matched to.
bike_road_network_<city>LineStringOSM street segmentosmidnamecyclewayonewayA slimmer version of road_network (no surface).
tracksLineStringrideboxIdgroupTagsstartTimedistance_metersavg_speed_msavg_pm25avg_overtaking_distance…One line per ride with summary values. All cities: filter by groupTags (contains the city).
statisticsPolygoncitytagstatisticsPre-computed ride statistics per city: totals, plus weekly values. ⚠️ statistics is a text field (Python syntax, not JSON) that needs parsing.
osem_bike_dataPointraw measurementboxIdgroupTagscreatedAtSpeedFinedust PM2.5Overtaking DistanceSurface Asphalt…The raw sensor data from openSenseMap, all cities. Very large (> 1 million rows), so only load it page by page.