User:AlfonZ/routes.xml

From OpenStreetMap Wiki
Jump to navigation Jump to search

Routes.xml

for JOSM Routes plugin

  1. Hiking trails relations & things that are related and are not in relations) - see WikiProject_Slovakia/Hiking_routes
  2. Junction relations - see Relations/Proposed/Junctions

<?xml version="1.0" encoding="UTF-8"?>
<routes xmlns="http://www.example.org/routes" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.example.org/routes routes.xsd ">
	<layer name="SK Hiking trails">
		<route color="#800000">
			<pattern>
			(type:relation colour=red type=route route=hiking)
			</pattern>
		</route>
		<route color="#000080">
			<pattern>
			(type:relation colour=blue type=route route=hiking)
			</pattern>
		</route>
		<route color="#008000">
			<pattern>
			(type:relation colour=green type=route route=hiking)
			</pattern>		
		</route>
		<route color="#808000">
			<pattern>
			(type:relation colour=yellow type=route route=hiking)
			</pattern>			
		</route>
		<route color="#FF0000">
			<pattern>
			(type:way | type:node) (marked_trail_red=* | cycleway_red=*)
			</pattern>
		</route>
		<route color="#0000FF">
			<pattern>
			(type:way | type:node) (marked_trail_blue=* | cycleway_blue=*)
			</pattern>
		</route>
		<route color="#00FF00">
			<pattern>
			(type:way | type:node) (marked_trail_green=* | cycleway_green=*)
			</pattern>
		</route>
		<route color="#FFFF00">
			<pattern>
			(type:way | type:node) (marked_trail_yellow=* | cycleway_yellow=*)
			</pattern>
		</route>
		<route color="#FFFFFF">
			<pattern>
			(type:way | type:node) (marked_trail_edu=* | marked_trail_ref=* | marked_trail_name* | marked_trail=*)
			</pattern>
		</route>
	</layer>
	<layer name="Junctions">
		<route color="#400040">
			<pattern>
			(type:relation type=junction)
			</pattern>
		</route>
	</layer>
</routes>