Malaysian OSM Wiki pages

So… I decided to do a makeover for the guidelines to tag our lovely road system. Why so? It was last updated in 2008. There are new mappers, so these need to be set up to make things clear. Edit wars may happen simply because different mappers have their own way interpreting the tags themselves.

This is the thing that have been done so far. It is loosely based from Thailand’s wiki page.

It needs to be stressed that OpenStreetMap is a community project, so therefore let’s pull together to set tagging conventions (in the Malaysian context) that are based on ground truth, and, in the same time complies with the general (international) conventions tagging - as described in their own particular wiki pages.

Therefore, feedback from the community is needed before anything described on the Wiki page is going to be amended. There are things that need to be addressed:

  1. Main federal routes tagging conundrum.

    Some still argue whether the whole Federal Route 1 should be systematically tagged as highway=trunk when most of the time, the North-South Expressway E1, lies quite close to the route. Try to consider international drivers who are using OSM database in their satellite navigation devices.

    Similar things may apply to the East Coast Highway E8 and nearby federal route e.g. route 14.

    Well, some exceptions can be mentioned in the wiki as well. Open table for discussion!

  2. Sabah and Sarawak tagging conventions.

    Perhaps Borneo mappers could share their knowledge? Or, someone that have been there, can throw in their suggestions.

  3. Anything else that is important?

    New mappers, etc. Side note: a proper Wiki page could say that copying data from e.g. Google Maps, Bing maps, Waze is not okay, very clearly (or sternly) :stuck_out_tongue: No, I’m not blaming these new mappers, but very likely they are unaware of the Wiki themselves and the nature of volunteering to give data to OSM. So, I think, a proper Malaysian Wiki page could help them a lot through friendly private messages.

In the same time, I am also working on the Malay translation of the Wiki, starting from the beginners guide. Very early work can be seen here… so feedback is really appreciated! Some might have problems with signing up for the Wiki (especially TM users), but feedback can be conveniently submitted through the forum. Better translation work is also appreciated! Simply put, anything that have been worked on is also great!

Thanks for the effort, I’m always unsure of the tagging and unless it’s way off I usually don’t modify it out of respect for the previous mapper.

This still needed (majority) support and approval from everyone else. :smiley: More improvements through feedbacks. We all know OSM works through do-o-cracy (do things first by yourselves) but this guideline may need some democracy… to make things easier especially for new mappers. On top of that, it is meant to set tagging conventions, so to prevent future edit wars.

We could make the guide somewhat giving general hints to how things should be tagged. Hopefully, it is not a really strict guide. That might scare off new mappers, “so many tags… I feel like crying!:laughing:

Greater Klang Valley mappers may perceive things very different with respect to, let’s say, me, somewhere off the kampungs in Kedah. :laughing:

Assalamualaikum.

Any ideas on how to best find a way to settle the Malaysian trunk hiway classification issue once and for all?
Poll?
Direct contact with active mappers?

As for myself, I don’t mind removing it altogether, but keep in mind that we probably need to reclassify a lot of primary road in cities to secondary (see wiki on primary road characteristics; we are a little bit liberal with that tag).

Waalaikumussalam… selamat hari raya bro! :wink:

For the time being, I reckon direct contact with active mappers is the quickest way to make sure people would spend some time to have their say on a future poll. I already had sent PMs to some of new members for a warm welcome and inform them there’s a forum for Malaysian mappers (and took the chance saying that it’s a no-no copying from Google maps, etc.),

Mind contacting our Borneo-an mappers? I am afraid that this guide is going to be really focussed on the peninsular only… :stuck_out_tongue:

Well, we can agree that we could make the tag somehow more lenient with respect to the general description on the Wiki, thus why we need a descriptive Malaysian tagging convention Wiki page. More traffic on a certain route may somewhat influence the degree of influence of the route itself (the expressway, … , primary, … , unclassified, road; you get what I mean, right).

However, we could clearly indicate other questions (regarding the way to tag things) can be posted on the forum - or even on the Talk page segment on the Wiki itself.

FYI, I kept an eye on the Humanitarian OSM Team whom tried to provide a complete map of Nepal (as a humanitarian response to the earthquake). They somehow defined a different approach on the highway tagging.


For the Greater Lembah Klang area, I don’t really think road reclassifications in a large scale is a major priority at the moment. Some routes may need fixing, but, probably, after we all agree to finalise the Malaysian tagging convention.

However, I probably could not give a concrete opinion for the rest of the cities (by the way they are Kuala Terengganu, Kuantan, some Klang Valley townships, Seremban, JB; also Sabah and Sarawak cities and major towns).


Sorry for a wall of text - this is the among the first, detailed discussion: What routes do we keep as a trunk highway?

Since the E8 East Coast Expressway is not yet linked to most of Kelantan, now shall we brainstorm this?

I also need opinions on keeping part of the Federal Route 4 (Jalan Raya Timur-Barat; East-West Highway - it is obviously *not *an expressway) as a trunk.

IMHO, its not advisable to remove trunk tags because we have softwares built on the current data besides that, trunk is part of the osm road specification. What we can do is redefine and correct those wrong tags.

My simple analysis of the tags below:

  1. motorway - this is clear cut - toll highways
  2. trunk - pretty much follow standard main roads since merdeka - not much changes
  3. primary - needs checking and rework - some needs to be upgrade to trunk like Bentong - Gua Musang rd
  4. secondary - needs checking and rework
  5. tertiary - use for local main roads example in housing, commercial, industrial area
  6. residential - the road in front of your house! pretty straight forward
  7. service - parking roads, roads in hospital, shopping centre etc

so actually the problem tag is only :

primary
secondary…

oh…pls don’t use unclassified tag!
and for sabah & sarawak - no motorway tag because no toll highways yet! :slight_smile:

as for E8, no change to current Trunk roads just need to add the new E8 as motorway

Sorry for not making my point clear. Caffeine fix is not kicking yet :stuck_out_tongue: Get ready - I am talking about pedantry.

I did not intend to abandon highway=trunk at all. There are some routes that’s really perfect for the tag. Most of them probably can be found in the Greater Klang Valley, perhaps Johor Bahru or some that are/were built by federal or state JKR. However, we must consider those who are potentially international road users that are using the OSM database in satellite navigation systems.

In neighbouring Thailand, from my experience:

  • a trunk road is specified much like the Federal Highway (federal route 2), except there are road intersections with traffic lights (i.e. instead of interchanges with the overpasses) and without toll charges

  • for example, this route (no idea what they are called really) and this one, they are fully divided highways, end-to-end

  • no expressway within sight, and one can find them only near Bangkok

  • major crossroads (three or four way junctions), however, are really few and may not causing a gridlock.

  • no four way junctions with really minor roads (highway=tertiary and lower, perhaps even highway=secondary), there’s only slip roads going into and out of it… I mean much like slip roads along the Malaysian Federal Highway. Let me know if this sounds really vague. This is to control the flow of traffic.

  • controlled access with U-turns are allowed at some certain place

Perhaps I will add more, later, in a new post.

I will include more details later. Stay tuned.

Back to Malaysia.

Federal Highway fits best the highway=trunk tag. From my (limited) observation and experience, these routes simply goes in as well:

  1. Federal Route 276: from the NSE to UUM

  2. Federal Route 194: from the NSE to Arau, then stopped short before Kuala Perlis

  3. Federal Route 176: Jitra to Arau, maybe to Kangar if I am not mistaken

  4. Some parts of Federal Route 5 - they will be upgraded soon as the West Coast Expressway

  5. Without doubt, whole Middle Ring Road 2, Federal Route 28

  6. I have seen some part of the Central Spine Road. That easily goes in unless it is really a short stretch

There are a number of highways in the Klang Valley that I believe deserved the honourable mention to be tagged as highway=trunk… Blame my sketchy memory. Can anyone from Johor confirm the Skudai Highway as well?


Now let’s focus on both the E1 (North South Exwy) and Federal Route 1. E1 is fine at the moment, it stays as it is - no further amendments. Somehow, I believe E1 influenced how we are going to tag Federal Route 1 end-to-end.

E1 lies close with federal route 1. The trouble lies within the federal route 1. From my experience, most of it stays as a two lane undivided road especially in kampung areas. Only in Jitra to Alor Setar, it exists as a divided highway. The short bit northwards from Jitra, exists as an undivided road and simply merged with E1 through sliproads on the west side only. In fact, a really short stretch (<1km-ish) of federal route 1 in front of Masjid Zahir is indeed an undivided road with paving stones!

Leaving Alor Setar, then it becomes an undivided road as it passed through the villages. Then you will cross into school areas with a 30km/h speed limit. Some zebra crossings intended for the students are indeed in a form of a wide bump - to slow down the traffic. Then you get direct access to homes and buildings next to the road. In short, so many things that can affect the flow of traffic in a supposed trunk highway. Things can be very different in Federal Highway, isn’t it?

As you reach Sungai Petani, the road is split into divided highways again… and similar things follow as you leave Sungai Petani, en route to Butterworth. This goes on and on and on until someone reaches Ipoh, the Greater Kuala Lumpur, etc.

I believe tagging some short part of the federal route 1 as highway=trunk and the rest as highway=primary is unnecessary… unless, there’s a considerable long stretch (like Jalan Cheras in KL) where traffic flow is regulated. It is better to be uniformed in my opinion. Consider the routing machines as well, some may stick to some kind of a road with higher classification in order to cut short the time of a journey.

Based on my limited understanding, there are 2 purpose for this hwy tags. (maybe more…i only know 2)…

  1. cartographic map display - all road class are displayed nicely on the map with 1 color for different class
  2. routing purpose - routing software will find the hwy and trunk roads to connect long distance destination like JB to Kota Bahru, so if the tagging are incorrect, a long route may be generated.

Based on these understanding, Trunk road tags cannot be broken due to lower speed limit and less number of lanes. There’s speedlimit and lane count tags to take care of that.

Only by sticking close to the original OSM spec and best mapping practice, the data will be good for use. Because the GPS software developer will first look at the data spec and develop the software. There are many softwares out there and eveyone has their own logic and algorithm so they have to follow OSM data spec.

Some of my observations(its debateable…)

Penang Island shouldn’t have any Trunk roads - the 2 motorways - Penang bridge 1 and 2 connects to the island. The main island roads should just start at Primary, Secondary, Tertiary & Residential.

UTM sekudai campus roads are tagged too high with secondary and residential, should just be tertiary (no pun intended) and residential roads.

Federal Highway should be motorway because its toll highway. all Klang valley highways like DUKE, AKLEH, LDP, SPRINT, LAKSA, LEKAS, LAMBAT,BLAH, BLAH, BLAH…must be motorway.(follow OSM spec)

Ah, your reply makes me remembered that the federal JKR itself has its own definition for a trunk road!

Did you mean, there should be a continuous segment if we are going to set a highway=trunk tag? That is why I am really close to downgrade most of (the kampung segment) Federal Route 1 to a highway=primary tag. Please correct me if I got you incorrectly.

That’s what we are going to achieve through setting tagging conventions like this topic. During my early days of mapping, I did a lot of mistakes - I tagged roads one more level higher.

There’s Jalan Sultan Azlan Shah viaduct, federal route 6. At least, that part is suitable to be tagged as highway=trunk. The rest of the road, as long as access controlled is maintained (e.g. few traffic light, four-way junctions), IMHO, it is not worth to be downgraded as highway=primary.

Most part of Federal Route 3113 IMHO stays as it is (as a highway=trunk) due to partial access control especially from the Penang Bridge to USM / Gelugor northwards and just to the south of Batu Uban - aiya, sketchy memory, sorry aaa. But then we have to confirm with Penang mappers. Apparently they have their own proposed tagging guide as well!

That, I blame those UTM student mappers. :laughing: :laughing: I am unable to reach them early, and in an absence of a helpful guide, that is expected.

Now that is one interesting discussion. highway=motorway somehow relates being an expressway.

Federal Highway however (I can get very wrong) has access to many interchanges and you also have a number of left-in, left-out ramps. In addition, somehow, the stretch where people do not have to pay the tolls can get really busy, compared to the other expressways. Although it is clear that Federal Route 2 is managed under PLUS, it is not listed under the Malaysian Highway Authority as one of the expressways (aiya, not the blurred lines again between what the authorities say about expressways and highways in general - it makes me snap). Well, regarding this matter, perhaps we need more input. Again, it is not *MY *guide, it is the conventional guide…

The other expressways have well-spaced interchanges, emergency phones, etc. Also, one key word to take care of: road access control. There is a blog of a Malaysian road enthusiast explains things quite detailed with details on JKR road standards.

E11 LDP however, I came across this post from the same blog author saying that it is really congested for an extended time, due to so many left-in left-out ramps from neighbourhoods just lying close to the route. Personally I think his arguments are sound - and if there are mappers who sides with him - I would gladly downgrade part of E11 to highway=trunk. It loses the *express *quality to be an expressway due to local traffic branching in and out.

Now what about an undivided, two lane stretch of E26 South Klang Valley Expressway? I believe, as strict access control is still there, in fact you cannot even make a U-turn… this stays as an expressway.

Not in the Klang Valley but E22 Senai Desaru Expressway is the same thing for the bridge across Sungai Johor.

Disclaimer: I am not the blogger - however I hope I could use his data (pictures especially) for OSMers to include into the map database.

  1. the cartographic map display effects of trunk and primary.
    Route 1 is trunk until Bidor then turn to Primary.
    not saying this is wrong but its not the ‘best’ practise of the mapping industry.
    so in terms of international users, this needs a bit explaination.
    well it does makes the map more colorful…but is this what we want ?

  1. routing effect

compare 2 maps - mfm and osm on garmin.
set same routing option parameters.
start point: Singapore city centre
end point: Kota Bharu city centre

osm route: exit by Woodlands > Kota Tinggi > Mersing > Pekan > Kuantan > E8 > KB (700km)
mfm route: exit by Woodlands > Yong Peng > Segamat > Muadzam Shah > Gambang > E8 > KB (726 km)

both routes are correct but why different ?
maybe due to different highway tags ??
or maybe there are unconnected roads or missing road segments ?
maybe there’s speed limit information in the road database ?
which one to recommend to foreigner tourist ?

just throwing questions to the floor for discussion…:slight_smile:

what i mean is continuous Highway=trunk tag.
segment can be broken along the way but the tagging must remain consistent.

you have to break the road segment when there’s change of speed limit, change of lane, overhead height clearance etc etc… but the change of speed limit doesn’t change the fact that the road is The Trunk road.

take a look at Thailand road from Bukit Kayu Hitam to Haadyai.
the Trunk road tag is not broken. even though it pass through Sadao town.
I sure this route passes through many villages, schools, narrow roads, cattle crossing…etc etc :slight_smile:

So… we are not tagging expressway because of traffic jams? Isn’t that akin to tagging to specific renderers?

When there are too many exceptions to the trunk tag specification, perhaps we should consider abolishing it all together and deal with it. From my basic understanding, the diff between trunk n motorway is minor (existence of crossroads), while everything else remains the same, especially controlled access. If you apply controlled access specification strictly in tag determination, then a lot of what we call trunk hiways become invalid. Motorway also doesn’t mean it is tolled.

By the way, quite extensive portion of highway 3 is being transformed to divided road. (i.e Dungun to KT, Pekan southwards, JB area)

how’s these 2 routes from KL to Kota Bharu?
any takers ? :stuck_out_tongue:

I actually want to avoid tagging for the renderer - I will provide visual clues later. Sorry, I am a bit exhausted tonight :frowning:

This is how the OSM database would appear in Garmin BaseCamp - and also its suggested route for KL - KB. I have to tweak the avoidances a little bit, or otherwise I would get a meaningless straight line from KL to KB.


Rant: I like how Garmin BaseCamp interprets how the federal routes are at the same level with the expressways…

I will give further comments later, probably tomorrow the earliest.

When you compare routing with different maps, please bear in mind that OpenStreetMap data of Malaysia are still very linited - MFM has far more data.
Also note that a routing algorithm needs some speed data - and most map makers in Europe use typical European speed limits as the applicable routing speed (90 or 100 km/h on primary and secondary if no maxspeed data are given). That’s often not useful even in Europe, but some people oppose pragmatic solutions: “maxspeed:practical” is “subjective” and cannot be used because everyone will interpret it differently… I guess in 2 or 3 years they’ll become more reasonable - but data for applicable speeds on Malaysian roads are not yet available.
Getting back to the issue of highway tagging, I think that “motorway” should be used for access-restricted high-speed far distance roads (even if the speed may sometimes be terribly slow due to traffic jams).
“trunk” is physically similar to “motorway”, but without access restrictions. The road from Hatyai to Changloon on both sides of the border is a “trunk”. As junctions of South-East Asian roads differ severly from junctions of high-speed roads in Europe, we should not over-interprete the “junction-free” character of the roads.
Sometimes, some sections of a trunk do not yet fulfil the standards for a trunk - then use “primary” for those sections instead. E.g. Thai road 4 from Trang to Phattalung was not yet a trunk in Dec 2011, but when I travelled along there in Dec 2014, there were two - sometimes even three - lanes for each direction (plus a wide shoulder for mopeds and bicycles), and the carriageways were physically separated.
As for minor roads in the hinterland, I often use “unclassified” for roads which connect hamlets (small villages) - that’s the tag I’d use for such a road in Germany, too.
Malaysia:

http://www.panoramio.com/photo/101636479
Germany:

http://www.panoramio.com/photo/121928245

Thanks Bernhard for your input.

First of all, as promised, I would try to explain the ideas regarding access control (according to my understanding) in Malaysia. Sorry, this took some time. I was being under the weather and also it’s thunderstorm time at my place as well.


From the Wiki,

Full access control is usually seen in expressways. Our expressway system lets every kind of vehicles to access the route, but not bicycles, heavyweight machineries etc. Also, it allows drivers to pull into (or out of) the route through designated exits only. Furthermore, there’s emergency phones, wide hard shoulders, 110 km/h speed limit, etc. Tolls may be collected etc… The road is designed to cater long-distance journeys. No direct access to insignificant building or properties at all. No such thing as crossroads.

This is basically the long description, condensed into a diagram. Obviously it is simplified a bit. It is the East Coast Highway (expressway route E8). Click to enlarge. Not to scale!

I believe no changes will be made regarding highway=expressway in the Malaysian context. Everybody has strong but similar opinions.


A road with a partial access control may look like the expressways in appearance. However, these roads may allow more kind of vehicles to use them (even bicycles). In addition, their designated speed limit is probably not 110 km/h, maybe up to 90 km/h. Maybe toll collection is made between a certain part of the road. Both interchanges and interchanges (with traffic lights) is possible but not too many. These roads may be very important to long-distance journeys. For very local journeys, the routes may not be so important. One can make a U turn at designated places only. Access to properties is possible, probably through highway links.

This description fits the Federal Highway (route 2) very well. Let me know if my observation is incorrect.

The condensed diagram is based on Changlun - Kuala Perlis Highway (federal route 194). It is already being tagged with highway=trunk. Hopefully the proposed Malaysian-style highway=trunk features may strictly follow this kind of description. Bright teal (blue-ish colour) nodes are tagged with traffic lights. Once again, not to scale!

As an additional info: route 194 is much like that, from end-to-end. For Klang Valley mappers, one can think of the Federal Highway or the Middle Ring Road II.

From the Wiki,

But there’s also this description:

According to the international equivalence segment, I can see a lot of divided highways (or double-carriageways) is included the description.


Then we have roads lacking access control. Much like the rural part of the Federal Highway 1 - see below. Every kind of vehicles can use the road. More freedom for road users to turn towards whatever direction, wherever they like. Access roads to properties may be directly through small feeder roads from the main road. This is only possible for single carriageways (or undivided roads). Junctions may even not controlled by traffic lights; and many more…


Basically, this is Federal Route 1 in Kedah, please refer to the attached diagram. Again, that bright teal (blue-ish colour) nodes are tagged with traffic lights. North is on the left and as usual, not to scale!

Malaysian road users are aware of the nature of such federal trunk (this term is being used by JKR themselves, roads with single-digit reference usually), but international road user may not. If they are coming from Thailand (or Singapore), it is way different. In fact, let’s say, it is mentioned that “U.S. Highways are mostly primary”.

The rest of the Federal Route 1 stretch, outside the northern region, are still being tagged as highway=trunk - so not uniform.


It’s not like we’re going to tag roads based on traffic jam - my bad, I probably decided to use a misleading term. It made my statements sound too oversimplified, perhaps maybe wrong.

Edit: “legend” of the diagram is as follows -

yes, I tag for the renderers.

  1. I am ol’skool - still use Mapsource with Lambertus osm garmin map. At zoom level 15km, map only display motorway & trunk so you can see isolated strands of trunk roads, sad to see the proud Federal route 1 in this state :open_mouth:
  2. most default routing algorithm will only consider motorway and trunk roads for long distance routing - there’s no motorway or trunk between Bentong and Kota Bharu - hence the round trip recommended by OSRM.

I find the US explaination easier to understand: http://wiki.openstreetmap.org/wiki/Highway_Functional_Classification_System

just wanna add…

in routing software…road class or highway tag (osm terms), is used to find the ‘fastest’ route.

some may argue, routing software also provide ‘shortest’ route option,
trust me you don’t wanna use this option for long distance routing.
once I got tricked by garmin…KL > Segamat - usually takes me 3.5 hours but follow shortest route…took me 5 hours!!!

Fastest - KL > Simpang Ampat > Tampin > Gemas > Segamat (distance = 191km)
Shortest - KL > Seremban > Kuala Pilah > Rompin > Gemas > Segamat (distance 181km)

lucky car didn’t break down in middle of oil palm estate…fainted…:lol:

That generally holds true also in Europe!
And beware of the fact that an algorithm for shortest time need not actually do what you expect it to do. See e.g. my experiences at http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2014q3/thread.html#21825