There are 32 standard route types, which are a subset of the many feature type values. They can all be tested in style sheet expressions. For example, the expression '@feature_type = "primary road' tests whether a map object is a primary road. The route types are:

  • motorway
  • motorway link
  • trunk road
  • trunk link
  • primary road
  • primary link
  • secondary road
  • secondary link
  • tertiary toad
  • unclassified road
  • residential road
  • track
  • service road
  • pedestrian road
  • vehicular ferry
  • passenger ferry
  • living street
  • cycleway
  • path
  • footway
  • bridleway
  • steps
  • other road
  • unpaved road
  • railway
  • light rail
  • subway
  • aerialway
  • ski downhill
  • ski nordic
  • waterway
  • unknown route

There are also another 32 custom route types that can be used in route profiles to provide more flexibility. When you create a map using the makemap tool, you can write import rules that set the _custom_route_type attribute of a map object to a value in the range '0' to '31'. That causes the corresponding route profile values to be used. Route profiles contain arrays of 64 values for speeds and bonus weights. The first 32 values (indexes 0...31) are for standard types and the other 32 value (indexes 32...63) are for the custom route types.

Style Sheets Directory