Changes between Version 9 and Version 23 of left-right-hand-traffic
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
left-right-hand-traffic
v9 v23 1 1 [[TranslatedPages]] 2 2 = Left- and right-hand traffic = 3 JOSM has an internal database of areas with left-hand traffic. This was added in version r7193. This is used in some [[Styles/|Styles]] for correct display. Examples are the default internal mappaint style (for cycleway lanes and tracks on highways or roundabout icons) or [[Styles/Maxspeed]] (for maxspeed:forward and maxspeed:backward).3 JOSM has an internal database of areas with left-hand traffic. 4 4 5 You can download the data [http://josm.openstreetmap.de/browser/josm/trunk/data/left-right-hand-traffic.osm here] (click on ''Original format'' on the bottom of the page) and load the file in JOSM to investigate the borders. The areas in the file describe the areas with left-hand traffic. All other areas use right-hand traffic. 5 The database is used e.g. at the following places: 6 * The default internal mappaint style (for cycleway lanes and tracks on highways and roundabout icons) 7 * The [wikitr:/Styles/Lane_and_Road_Attributes Lane and Road Attributes] style 8 * The [wikitr:/Styles/Maxspeed Maxspeed] style (for maxspeed:forward and maxspeed:backward) 9 * The [wikitr:/Styles/PriorityRoad Priority Road] style (for priority_road:forward and priority_road:backward) 10 * For the [wikitr:/Help/Action/CreateCircle create circle] action, to use the correct way direction, if you create a roundabout. 11 * The plugin [https://github.com/JOSM/turnlanes-tagging TurnLanes-tagging] 6 12 7 You can use the pseudo classes `:righthandtraffic` for right-hand traffic and `!:righthandtraffic` for left-hand traffic in your mapcss mappaint style. See [[Help/Styles/MapCSSImplementation]] for more information. Note that you maybe get wrong results near to borders of countries with different driving directions since the area borders of left-hand traffic are simplified in JOSM. These simplifications are necessary to reduce the size of the database, but it can be refined on request.13 The file named "left-right-hand-traffic.osm" is stored in your [wikitr:/Help/Preferences#JOSMpreferencedatacachedirectories JOSM cache folder]. You can open this file in JOSM to investigate the borders. The areas in the file describe the areas with left-hand traffic. All other areas use right-hand traffic. 8 14 9 If you notice an error in the database you can create a new ticket by clicking in JOSM menu Help → Report bug. 15 You can use the pseudo classes `:righthandtraffic` for right-hand traffic and `!:righthandtraffic` for left-hand traffic or the eval expression `is_right_hand_traffic()` in your [[wikitr:/Styles|mapcss mappaint style]]. See [[wikitr:/Help/Styles/MapCSSImplementation]] for more information. Note that you maybe get wrong results near to borders of countries with different driving directions since the area borders of left-hand traffic are simplified in JOSM. These simplifications are necessary to reduce the size of the database, but it can be refined on request. 16 17 If you notice an error in the database you can create a new ticket by clicking in JOSM menu Help → [[JOSMImage(bug,20px,middle)]] [wikitr:/Help/Action/ReportBug Report bug]. 18 19 The left-right-hand-traffic.osm file is generated from the more detailed boundaries file. More infos about it see [wikitr:/Help/Styles/MapCSSImplementation#Territoryselector MapCSSImplementation#Territoryselector] ([attachment:boundaries.png:wiki:Help/Styles/MapCSSImplementation screenshot preview]). 10 20 11 21 Screenshot of the areas with left-hand traffic: … … 13 23 [[Image(leftrighthandtraffic.png)]] 14 24 15 ^(data used for image [osmwww:copyright ©OpenStreetMap contributors] ODbL, tiles: MapnikCC BY-SA) ^25 ^(data used for image [osmwww:copyright ©OpenStreetMap contributors] ODbL, tiles: OSM-carto CC BY-SA) ^
