Skip to main content
Version: 1.1.3

Road segments

The Road segment type (RoadSegmentDatasetDTO) represents an individual segment of an OSM road, with detailed parking statistics for that precise segment.

Description

Unlike Roads, which aggregate data across an entire way, segments enable fine-grained analysis of parking. Each OSM road is split into segments of homogeneous length, making it possible to visualize density variations along a single street.

Relationship with Roads

OSM road "Rue des Lilas" (osm_id: way/123456789)

├── Segment 0 (id: way/123456789_0)
│ └── 5 spots catalogued

├── Segment 1 (id: way/123456789_1)
│ └── 12 spots catalogued

├── Segment 2 (id: way/123456789_2)
│ └── 0 spots (no-parking area)

└── Segment 3 (id: way/123456789_3)
└── 8 spots catalogued

Properties

Identification

PropertyTypeDescriptionExample
idstringUnique identifier ({osm_id}_{segment_index})way/123456789_2
layer_typestringDocument typeroad_segment
osm_idstringOSM identifier of the parent roadway/123456789
segment_indexintegerIndex of the segment along the road2
h3_indexstringH3 cell the segment is attached to893b0c6a9a7ffff

Geometry

PropertyTypeDescription
geometryLineStringSegment geometry (GeoJSON)

Statistics

PropertyTypeDescription
segment_length_metersnumberSegment length in meters
total_spotsintegerNumber of spots catalogued on the segment
avg_fit_scorenumberAverage confidence score (0-1)

Traceability

PropertyTypeDescription
captured_atdatetimeDate of the most recent imagery for this segment

Use cases

Graduated visualization

Use total_spots to build a map with a color gradient:

Spot countSuggested colorInterpretation
0GreyNo parking
1-5Light blueLow density
5-10BlueMedium density
10-50Dark blueHigh density
50+Very dark blueVery high density

Identifying critical areas

Analyze segments to spot:

  • Segments with no parking (no-parking areas, double-parking)
  • Concentrations of spots (linear parking)
  • Density variations along a street

Analysis by H3 cell

Cross-reference segments with H3 cells to:

  • Compute parking density per zone
  • Compare provision between neighborhoods
  • Identify under-served areas

To visualize segments with a gradient based on total_spots:

  1. Download the QGIS style file: road_segments.qml
  2. In QGIS: right-click on the layer → Properties → Symbology
  3. Style → Load Style → select the .qml file

Download and styles guide →

GeoJSON example

{
"type": "Feature",
"properties": {
"id": "way/123456789_2",
"layer_type": "road_segment",
"osm_id": "way/123456789",
"segment_index": 2,
"h3_index": "893b0c6a9a7ffff",
"segment_length_meters": 45.7,
"total_spots": 8,
"avg_fit_score": 0.82
},
"geometry": {
"type": "LineString",
"coordinates": [[55.47, -21.12], [55.475, -21.125]]
}
}

Relationship with other types

TypeRelationship
RoadsA segment belongs to a road (via osm_id)
H3 cellsA segment belongs to an H3 cell (via h3_index)
Parking areasParking areas are located along segments

Variants by source

Road segments come in two variants depending on the imagery source:

Street-level segments (road_segments_street)

Computed from street-level imagery. Each 20 m segment carries a detailed left/right analysis.

CharacteristicDetail
Accuracy~1-2 meters
AttributesLeft/right distinction, parking type per side
Search radius10 meters around the segment

Satellite segments (road_segments_satellite)

Computed from HD satellite imagery. Aggregation is global per segment (no left/right distinction, since the nadir view does not allow for it).

CharacteristicDetail
Accuracy~3-5 meters
AttributesTotal spots per segment only
Search radius15 meters around the segment
Road filteringMotorways, pedestrian ways and cycle paths excluded

Both variants share the same data format (RoadSegmentDatasetDTO), the same geometry (20-meter segments), and the same confidence scoring (avg_fit_score).