Malaysian Roads Tagging

From OpenStreetMap Wiki
Jump to navigation Jump to search

This page merely recommends how to tag highway=* in Malaysia (note: strictly the peninsular at the moment). Over time, different mappers will have their own way to interpret a certain tag, but definitely, some key-value pairs will become the standard way to tag things.

The main classification for Malaysian highways are as follows:

Other types of roads may not fall under any kind of the mentioned categories, but they are able to be systematically tagged in the OSM database according to their primary function and/or importance to local traffic. The ref tags listed on signs do not delineate between ref and ref:to markers. In order to determine how to tag the ref network, mappers should look at the larger road network before tagging.

Remember local craft mappers are humans too - these people may make mistakes. However, please, please, with cherry on top, analyse for any possible recent edits of their work before straight into making any changes. Check for any history of edits in the JOSM editor (Ctrl or ⌘ Cmd and H). Unless more concrete evidences, especially from KartaView, Mapillary or likewise, are made available; try not to discard any likely recent ground truth observations.

Carriageways demystified

For more details on this topic, see Dual carriageway.

Should highways be mapped as undivided (single carriageways)? Or otherwise (multiple carriageways)?

Refer to the following diagram on the right.

In short: no physical divider, no need to trace separate highway. This is not a Malaysia-specific policy.[1]

Visual examples
Case Divided highway?
yes
no
no: painted barriers are not physical barriers
no
yes: traffic delineators are fixed to the ground
yes: only for the link highway with the give way sign
yes: don't forget to map the tree, growing in the middle of the divider
no: painted chevrons are not physical barriers, use lanes=* instead
yes

Expressway

The highway system which is the highest class in Malaysia. Full list of expressways is available at Malaysian Highway Authority (Lembaga Lebuhraya Malaysia) website.

Reference number

Highway shield

OSM tagging

Typical examples

Description, comments Photo

One or two digits, beginning with the letter E

highway=motorway
ref=E1
int_ref=AH2
lanes=2
oneway=yes
toll=yes
motorcycle=yes
  • High-speed expressway, usually 90km/h and up to the national speed limit of 110km/h. Use the maxspeed=* tag to indicate different speed limit zones.
  • Typically expressways are strictly full access control highways. Which means:
    • no direct access to properties (buildings)
    • inaccessible to cyclists or pedestrians (in some cases, motorcyclists)
    • restriction on certain type of heavy vehicles (may vary across different expressways)
    • traffic flow in and out of the highway through specified interchanges only
  • They are often tolled: usually closed toll system (or an open toll system). Use the toll=* tag accordingly.
  • Often expressways have central reservations (double carriageways or divided highway). Each carriageway has two lanes minimum. However, some expressways do not have central reservations (single carriageways or undivided highway) at some certain stretches but still maintain toll payments and access restrictions.

Exceptions:

  • Some highways in the Greater Klang Valley – Kuala Lumpur area may not fall under this category e.g. Federal Highway .
  • Consider using highway=trunk for certain stretch of the highway that features lack of controlled access. For example, the northbound North-South Expressway, there are intersections with traffic lights between the stretch from Bukit Kayu Hitam and Changlun.

highway=motorway_link

destination=*
destination:ref=*
destination:ref:to=*

[1] Alternate ref signage sometimes seen. Imagery found on Mapillary.
[2] New version of this type of signage. Imagery found on Mapillary.
highway=path
  • Motorcycle path for certain expressways, or designated motorcycle paths near toll plazas. Please refer to this specific segment.

Further reading

Federal roads

These highways are maintained under the Ministry of Works (MoW or KKR). Features blue road signs.

Reference number

Highway shield

OSM tagging

Typical examples

Description, comments Photo

Main Federal Road

One or two or three digits

highway=trunk
ref=2
name=Lebuhraya Persekutuan
lanes=2
toll=yes
oneway=yes

Semi-expressways

  • This is the highway that looks like the expressways. The highway is meant to carry long distance journeys but may not be significant for local traffic. E.g. Federal Highway .
  • These highways feature partial access controls.
  • Central reservations much like the expressways, commonly from one end to another end.
  • They have more interchanges or even intersections. These let more traffic going in; usually through collector roads. Traffic lights are uncommon, but it may not impact the flow of traffic.
  • Designated places for U-turns.
  • Indirect access to properties is possible.
  • Typically toll-free. Exception: Federal Highway have tolls.
  • National speed limit up to 90 km/h.
highway=primary
ref=1
lanes=2
oneway=no

Main roads

  • Typical roads that connects between major key places across the country.
  • Lack of access control:
  • Highway is important for both local and non-local traffic.
  • Almost every kind of vehicle is allowed to use the highway.
  • Fragmented central reservations. In other words, most part of the highway is left undivided (single carriageways). There will be divided segments (dual carriageway) but only near intersections.
  • Anything else simply not matching the highway=trunk description as above.
  • National speed limit up to 90 km/h.
highway=*

Other main roads

Some roads in certain places (e.g. Langkawi or Selangor) may not be suitable to be tagged with highway=trunk or highway=primary. Use highway=secondary or highway=tertiary to accurately reflect the importance of such roads.

N/A

Main Federal Road

(Borneo)

One to three digits

highway=trunk
ref=1
name=Lebuhraya Pan Borneo
lanes=2
toll=no
oneway=yes
Semi-expressways
  • Highway that looks like the expressways (must have two lanes).
  • Feature partial access controls, but have indirect access / spur roads and interchanges or intersections for bigger towns.
  • Designated places for P-turns highway=trunk_link
  • All federal semi-expressways in Borneo are toll-free.
  • National speed limit up to 90 km/h.

Examples:

  • Pan Borneo Highway (1)
  • any federal roads upgraded to double carriageways, Jalan Datuk Mohd. Musa Section Simpang Samarahan - 9th Mile (802) and Jalan Tun Razak / Kuching Bypass (801)
highway=primary
ref=1
lanes=2
oneway=no
Main roads
  • Typical roads that connect major key places across the states.
  • Must be a single carriageway and two lanes.
  • Lack of access control.
  • National speed limit up to 90 km/h.

In short, all federal roads that are not double carriageways should be highway=primary.

E.g. Jalan Datuk Mohd. Musa (Section Simpang Summer Mall - Kota Samarahan)

N/A

FELDA or FELCRA Federal Road

Four digits, beginning with 1000-2999

highway=*
ref=1123
lanes=2
oneway=no
N/A

Industrial Federal Roads

Four digits, beginning with 3000-3799

highway=*
ref=3053
lanes=2
oneway=no
N/A

Note

  • Major federal route, for example, Federal Route 1, is usually referred as a federal trunk. However, as it winds through small cities or towns or rural areas (e.g. outside Greater Kuala Lumpur or Johor Bahru), the route may show clear signs not fully meeting the conventional highway=trunk criteria. highway=primary tag (or lower tag classifications) describes better this particular stretch of road. This may apply to the rest of major federal routes (which usually has a single digit reference number). Divided stretch (dual carriageway), or an undivided stretch (single carriageway) does not directly imply whether it should be tagged as highway=trunk or highway=primary – consider access control. To discuss more in depth, the forum is the best place to do so! Important: do not simply tag for the renderer.
  • Currently the road reference system can be said quite messy. The last time the road list was updated in 2013, the main federal routes are coded with 1-255 and institutional roads are coded with 250-499. However, recently, some of the formerly state roads were made into roads maintained under the federal level (MoW) and are using codes meant for institutional road.

Major federal routes suitable to be tagged as a highway=trunk

  • The Federal Highway, route number 2
  • The Pan-Borneo Highway, route number 1

Further reading

State roads

Roads connecting towns, districts or villages in a state. Maintained under the state's Public Works Department.

Peninsular Malaysia (States of Malaya)

Reference number

Highway shield

OSM tagging

Typical examples

Description, comments Photo

One to three digits, beginning with specified letters for each state

highway=*
ref=A2
lanes=2
oneway=no

The main function of the road can be considered to decide the class of a state road. For example:

  • For a main (arterial) state road (e.g. connects between towns) which carries significant amount of traffic, then the tag highway=primary may fit well.
  • Roads that connects across key places across a state (e.g. between villages and nearby towns) is suggested to carry the highway=secondary tag.
  • Road that acts as connector roads between a village and a main road may be tagged as highway=tertiary.

Please note that although certain roads may look like residential roads, classification is based on official status. Once a road has been gazetted and given a state road code, it shall not be classified as a residential road.

In short, universal tag convention gives the best description.

Borneo States (Sabah and Sarawak)

Road Classification in Borneo (Sabah and Sarawak)

In Sabah and Sarawak, the classification of state roads should not rely primarily on traffic volume. Due to the vast land area and low population density in much of Borneo, traffic congestion is uncommon outside of peak festive periods. Instead, greater emphasis should be placed on a road’s length, continuity, and functional role within the regional transport network.

Sarawak

In Sarawak, the primary criterion for determining the class of a state road is its principal function. Roads are classified based on the scale of connectivity they provide, particularly their role in linking administrative centers, divisions, and settlements.

Reference number

Highway shield

OSM tagging

Typical examples

Description, comments Photo

One to four digits, beginning with specified letters for each state

highway=trunk
ref=Q13
name=Kuching-Samarahan Expressways
lanes=2
toll=no
oneway=yes
sidewalk=no
Sarawak state semi-expressways
  • State roads that are double carriageways and have partial access controls, with indirect access to the town/village/suburb beside them.
  • The state road may be officially named as an Expressway or Lebuhraya.
  • Must have no sidewalk.

Examples:

  1. Officially named as Expressway or Lebuhraya
    • Kuching-Samarahan Expressway (Q13)
    • Lebuhraya Pehin Sri Adenan Satem (Q30)
  2. Double carriageways, partial access & no sidewalk
    • Jln Setia Raja (Q417)
In city
highway=primary
ref=Q*
sidewalk=*
lanes=2
oneway=yes
In rural
highway=primary
ref=Q*
sidewalk=*
lanes=2
oneway=no
Primary Roads (highway=primary)
  • Major arterial routes that either connect divisional capitals or traverse an entire division from end to end.
  • These roads serve as the backbone of inter-divisional connectivity.
  • Single carriageways (rural) or double carriageways with a lack of access control (city).
  • May have a sidewalk.

Examples:

  1. Road connecting divisional capitals
    • Jalan Betong (Q186)
  2. Road running across an entire division (end to end)
    • Jalan Kota Samarahan–Sadong Jaya (Q142-2) → Jalan Sadong–Sungai Buloh (Q2014-1) → Jalan Kampung Selangking / Sungai Perin (Q497) → Jalan Simunjan (Q157)
    • This continuous corridor runs across the whole of the Samarahan Division.
  3. Double carriageways with a lack of access controls & an optional sidewalk (city)
    • Jalan Simpang Tiga (Q5) and Jalan Tun Ahmad Zaidi Adruce (Q3).

Note: ‘Lack of access controls’ may be determined by the frequency of access points (lorong).

highway=*
ref=Q*
lanes=2
oneway=no
Secondary Roads (highway=secondary)
  • Secondary roads serve an intermediate role by connecting multiple villages or settlements, named with multiple localities or provide an access road to a district capital, but do not extend across an entire division.
  • Must be a single carriageway.

Examples:

  1. Roads connecting multiple villages
    • Jalan Ensengei Baki (Q150) and Jalan Ensengei (Q151), which collectively connect approximately eight villages.
  2. Roads with multiple locality names but limited divisional extent
    • Jalan Samarahan / Sebuyau / Ensengei / Lubok Bunting (Q3004)
  3. Access road to a district capital but limited divisional extent
    • Pakan Road (Q205)
Tertiary Roads (highway=tertiary)
  • Tertiary roads are local access roads primarily serving a single village or a small, localized community.
  • Roads that connect a village to trunk/primary/secondary roads.
  • The lowest classification for a state road.

Example:

  • Kampung Tambak Road (Q201)

Sabah

Unlike Sarawak, Sabah’s Highway Ordinance does not formally define the concept of state roads, nor does it grant the state government explicit authority to gazette roads as state roads. Nevertheless, in practice, roads that are neither federal roads nor municipal roads are generally regarded as state roads by functional classification. Despite this, some roads in Sabah carry state-style route code signage (for example, Jalan Semporna–Tawau, SA51); however, such designations are considered cosmetic only and do not reflect a legally gazetted state road status.

Reference number

Highway shield

OSM tagging

Typical examples

Description, comments Photo

One to four digits, beginning with specified letters for each state

Note: Sabah state road rarely has state road code

highway=trunk
ref=*
name=Jalan Lintas
lanes=2
toll=no
oneway=yes
sidewalk=no
Sabah state semi-expressways
  • State roads that are double carriageways and have partial access controls, with indirect access to the town/village/suburb beside them.
  • The state road may be officially named as an Expressway or Lebuhraya.
  • Must have no sidewalk.

Examples:

  1. Double carriageways, partial access & no sidewalk
    • Jalan Lintas
In city
highway=primary
ref=*
sidewalk=*
lanes=2
oneway=yes
In rural
highway=primary
ref=*
sidewalk=*
lanes=2
oneway=no
Primary Roads (highway=primary)
  • Major arterial routes that either connect divisional capitals or traverse an entire division from end to end.
  • These roads serve as the backbone of inter-divisional connectivity.
  • Single carriageways (rural) or double carriageways with a lack of access control (city).
  • May have a sidewalk.

Examples:

  1. Road connecting divisional capitals
    • Jalan Sandakan–Kudat
  2. Road running across an entire division (end to end)
    • Jalan Langkon Pitas → Jalan Sapi Nangoh
    • Runs accross Kudat division
  3. Double carriageways with a lack of access controls & an optional sidewalk (city)
    • Jalan Tuaran

Note: ‘Lack of access controls’ may be determined by the frequency of access points (lorong).

highway=*
ref=*
lanes=2
oneway=no
Secondary Roads (highway=secondary)
  • Secondary roads serve an intermediate role by connecting multiple villages or settlements, but do not extend across an entire division (in same division)
  • Must be single carriageway.

Examples:

  1. Roads connecting multiple villages / extend across in the same division only
    • Jalan Bongkol
Tertiary Roads (highway=tertiary)
  • Tertiary roads are local access roads primarily serving a single village or a small, localized community.
  • Roads that connect a village to trunk/primary/secondary roads and in the same district only.

Example:

  • Most of the roads in this category are unnamed, but they function to connect one village to the main road.

State road codes

  • Axxx: Perak
  • Bxxx: Selangor
  • Cxxx: Pahang
  • Dxxx: Kelantan
  • Jxxx: Johor
  • Kxxx: Kedah
  • Mxxx: Melaka
  • Nxxx: Negeri Sembilan
  • Pxxx: Penang
  • Txxx: Terengganu
  • Rxxx: Perlis
  • Qxxx: Sarawak
  • SAxxx: Sabah

Federal routes in Labuan has Lxxx prefix[2].

Kuala Lumpur Federal Territory allegedly uses W prefix, however on the ground rules apply. No offical signages, so nothing.

Further reading

Malaysian State Roads system (Wikipedia)

Municipal roads

Example of street hierarchy when classifying municipal roads.

All roads, except expressways, federal, state, and private roads, fall under the jurisdiction of the local government (Pihak Berkuasa Tempatan, PBT). Some municipal roads have specific road code signs, such as in Shah Alam, where the BSA code is followed by a number. When determining whether a municipal road is primary, secondary, or tertiary, the street hierarchy should be considered. Cities and larger towns can be divided into blocks of primary roads, which are further divided into secondary and thentertiary roads, down to the level of residential and minor roads.

Sample signpost OSM tagging

Typical examples

Description, comments Photo

highway=*
ref=OKU50
name=Jalan Masjid
Maintained by local authorities (majlis bandar raya or majlis perbandaran). This kind of road is typical, for example, in Shah Alam (with BSA code followed by a number). Again, the degree of importance of the road depends on its traffic, etc.

More about its road code over here.

N/A

Notes

  • Roads maintained by local authorities are categorised in this typical way: three letters followed by a number. The first of the three letter code is taken from the state road codes and the rest of the letters may be the initials of a city's names. For example, in Shah Alam, Selangor, roads maintained by the Shah Alam City Council is marked with BSA and followed by a number. Here, B is the state code for Selangor and SA is the initials of Shah Alam. Reference

Other roads

Sample signpost OSM tagging

Typical examples

Description, comments Photo
highway=unclassified Roads with no certain classification. These may include:
  • Very minor public road
  • Rural roads
  • Ungazetted roads
  • Unnamed Road
  • Road with no line marking and single lane

These kind of road act as feeder roads, which means they mainly carries traffic from villages (or special residential areas) to a major road.

highway=residential Roads in a typical housing estate (taman perumahan). May also be used in villages (or any other kind of residential areas) upon roads that act as feeders to the more important local highway.
highway=service Provides access to parking spaces, fuel stations, buildings, etc.
highway=track The bottom class of the road network which is still accessible by cars (or probably four-wheeled drive only). The tag can describe the tracks in agriculture lands or the only way deep in remote areas.
Signposted motorcycle lane in expressways
Signposted bicycle lane
highway=path Used for roads totally inaccessible by any four-wheeled vehicles. Motorcycles may or may not be able to use it.
N/A highway=pedestrian As shown in the picture to the right (Kuala Lumpur Central Market), the road is open for pedestrians only. No vehicles is allowed on the road.
highway=footway N/A
highway=living_street
Example based on way 560371536 highway=motorway_link

destination:ref=*
destination=*

Example based on way 249848185 highway=motorway_link

destination:ref=*
destination:ref:to=*

Often times there is no clear difference between the destination:ref and destination:ref:to signs for motorways and links. Look at the larger road network to see which refs connect directly to a link.

Notes

  • The road Lebuh AMJ is an abbreviation commonly used on a road running from Simpang Ampat to Malaaca City before going west-east from Malacca City to Muar. The less commonly used expanded form is Lebuhraya Alor Gajah–Melaka Tengah–Jasin.

Route reference number

These can be found in direction signs or mile markers: the route reference number is in hexagonal highway shields ()

Sample street furniture OSM tagging
ref=1

N.B. Taiping indicates other reachable major road(s)

ref=J7
name=Jalan Gelang Patah - Ulu Choh


ref=K1
Painted reference number on road surface


ref=95

Road management signboard for state road route Q3007.
In Sarawak:

ref=3007

See also

References