Search for content

Segment Attributes

Segment attributes describe the physical and legal characteristics of road segments returned by the MapMatching API. These attributes provide additional context for interpreting the matched segments, such as whether a segment is part of a bridge, located in a built-up area, or subject to a specific speed limit. 

Not all attributes are available for every segment. Availability depends on the nature of the road and the underlying map data.

Available Attributes

Attribute NameTypeDescription
roadCategoryintegerClassification of the road type, from 1 (Motorway) to 8 (Pathway). See Road Category.
bridgebooleanIndicates that the segment is part of a bridge.
tunnelbooleanIndicates that the segment is part of a tunnel.
rampbooleanIndicates that the segment is part of a ramp.
frontagebooleanIndicates that the segment is part of a frontage road.
pavedbooleanIndicates that the segment has a solid surface (e.g., asphalt, concrete, cobblestone).
requiresFourWheelDrivebooleanIndicates that the segment is only suitable for vehicles with four-wheel drive.
privatelyManagedbooleanIndicates that the segment is part of a privately held or maintained road.
publicAccessbooleanIndicates that the segment is publicly accessible.
parkingLotbooleanIndicates that the segment is part of a parking lot.
priorityRoadbooleanIndicates that the segment is part of a road where traffic has priority over incoming roads.
builtUpAreabooleanIndicates that the segment is located within a built-up urban area.
speedLimitintegerLegal speed limit on the road segment in kilometers per hour (km/h). If no heading is specified in the request, the lower of the two possible directions is returned.

Road Category

The roadCategory attribute provides a simplified classification of road segments based on their general role in the road network. This classification enables filtering, analysis, and visualization of matched segments by road type.

ValueCategory NameDescription
1MotorwayMajor roads designed for fast, long-distance travel, such as autobahns or freeways.
2HighwayImportant regional roads, often with multiple lanes and higher speed limits.
3Trunk RoadRoads connecting cities and towns, typically with moderate traffic.
4Country RoadRural roads linking smaller towns and villages, often scenic and quieter.
5City RoadRoads within urban areas, used for local traffic and public transport.
6Residential RoadRoads in residential neighborhoods, usually with lower speed limits.
7Special Access RoadRoads that are technically drivable but typically restricted or blocked.
8Pedestrian & Cycle PathCycle lanes, walkways, and other paths for non-motorized traffic.