Project

General

Profile

Support #6636

Left hand driving attribute?

Added by Douglas Reece 2 months ago. Updated 2 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
general
Start date:
09.10.2017
Due date:
% Done:

0%


Description

I apologize if I missed this, but I cannot find anything in the 1.4 spec that indicates that a particular Road is for left hand driving (driving on the left side of the road) or right hand. Is this in the spec somewhere?

History

#1 Updated by Thomas Bleher 2 months ago

I don't think there's anything at the moment. However, there is some discussion on adding a country code in 1.5 (see #6441). From this it would be possible to deduce left- vs right-handedness.

#2 Updated by Douglas Reece 2 months ago

Thomas Bleher wrote:

I don't think there's anything at the moment. However, there is some discussion on adding a country code in 1.5 (see #6441). From this it would be possible to deduce left- vs right-handedness.

Hmm. That means every simulator has to have a list of left-hand drive countries? Wouldn't it be simpler to just add left-hand to a road (or at least, to the header) as an attribute? Also, looking at representing larger road networks, how would you represent a network that crossed country boundaries?

#3 Updated by Marius Dupuis 2 months ago

We could extend the "<road><type .../></road>" entry with an attribute in order to cover this requirement. If nothing is given, then the right side driving is assumed otherwise each road needs to be attributed e.g. with

<road  name=...>
  <type s="0.0" type="motorway" leftSide="true"/>
</road>

or we make it easier and just make it an attribute of the road header

<road name="myRoad" ... leftSide="true">
:
</road>

#4 Updated by Douglas Reece 2 months ago

Yes, I think those are both good solutions. Probably there would be no need to change the value of leftSide along a single road (i.e. at different s values), so making it an attribute of the road (option 2) is probably better.

Also available in: Atom PDF