Check out the latest version of Routino: svn co http://routino.org/svn/trunk routino
Annotation of /branches/MSVC/xml/routino-profiles.xsd
Parent Directory
|
Revision Log
Revision 622 -
(hide annotations)
(download)
Sat Feb 5 15:41:48 2011 UTC (14 years, 1 month ago) by amb
Original Path: trunk/xml/routino-profiles.xsd
File size: 3865 byte(s)
Sat Feb 5 15:41:48 2011 UTC (14 years, 1 month ago) by amb
Original Path: trunk/xml/routino-profiles.xsd
File size: 3865 byte(s)
Include the option to obey turn restrictions in the profile for each transport type.
1 | amb | 577 | <?xml version="1.0" encoding="utf-8"?> |
2 | |||
3 | <!-- ============================================================ | ||
4 | An XML Schema Definition for the Routino profile XML format | ||
5 | |||
6 | Part of the Routino routing software. | ||
7 | ============================================================ | ||
8 | amb | 622 | This file Copyright 2010-2011 Andrew M. Bishop |
9 | amb | 577 | |
10 | This program is free software: you can redistribute it and/or modify | ||
11 | it under the terms of the GNU Affero General Public License as published by | ||
12 | the Free Software Foundation, either version 3 of the License, or | ||
13 | (at your option) any later version. | ||
14 | ============================================================ --> | ||
15 | |||
16 | <xsd:schema elementFormDefault="qualified" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | ||
17 | |||
18 | <!-- The top level Routino profiles --> | ||
19 | |||
20 | <xsd:element name="routino-profiles" type="RoutinoProfilesType"/> | ||
21 | |||
22 | <xsd:complexType name="RoutinoProfilesType"> | ||
23 | <xsd:sequence> | ||
24 | <xsd:element name="profile" type="profileType" minOccurs="0" maxOccurs="unbounded"/> | ||
25 | </xsd:sequence> | ||
26 | </xsd:complexType> | ||
27 | |||
28 | <xsd:complexType name="profileType"> | ||
29 | <xsd:sequence> | ||
30 | <xsd:element name="speeds" type="speedsType" /> | ||
31 | <xsd:element name="preferences" type="preferencesType" /> | ||
32 | <xsd:element name="properties" type="propertiesType" /> | ||
33 | <xsd:element name="restrictions" type="restrictionsType"/> | ||
34 | </xsd:sequence> | ||
35 | <xsd:attribute name="name" type="xsd:string"/> | ||
36 | <xsd:attribute name="transport" type="xsd:string"/> | ||
37 | </xsd:complexType> | ||
38 | |||
39 | <!-- The second level preferences, speed, properties and restrictions --> | ||
40 | |||
41 | <xsd:complexType name="speedsType"> | ||
42 | <xsd:sequence> | ||
43 | <xsd:element name="speed" type="speedType" maxOccurs="unbounded"/> | ||
44 | </xsd:sequence> | ||
45 | </xsd:complexType> | ||
46 | |||
47 | <xsd:complexType name="preferencesType"> | ||
48 | <xsd:sequence> | ||
49 | <xsd:element name="preference" type="preferenceType" maxOccurs="unbounded"/> | ||
50 | </xsd:sequence> | ||
51 | </xsd:complexType> | ||
52 | |||
53 | <xsd:complexType name="propertiesType"> | ||
54 | <xsd:sequence> | ||
55 | <xsd:element name="property" type="propertyType" maxOccurs="unbounded"/> | ||
56 | </xsd:sequence> | ||
57 | </xsd:complexType> | ||
58 | |||
59 | <xsd:complexType name="restrictionsType"> | ||
60 | <xsd:sequence> | ||
61 | <xsd:element name="oneway" type="onewayType"/> | ||
62 | amb | 622 | <xsd:element name="turns" type="turnsType"/> |
63 | amb | 577 | <xsd:element name="weight" type="weightType"/> |
64 | <xsd:element name="height" type="heightType"/> | ||
65 | <xsd:element name="width" type="widthType"/> | ||
66 | <xsd:element name="length" type="lengthType"/> | ||
67 | </xsd:sequence> | ||
68 | </xsd:complexType> | ||
69 | |||
70 | <!-- The lowest level elements containing the real information --> | ||
71 | |||
72 | <xsd:complexType name="speedType"> | ||
73 | <xsd:attribute name="highway" type="xsd:string"/> | ||
74 | <xsd:attribute name="kph" type="xsd:string"/> | ||
75 | </xsd:complexType> | ||
76 | |||
77 | <xsd:complexType name="preferenceType"> | ||
78 | <xsd:attribute name="highway" type="xsd:string"/> | ||
79 | <xsd:attribute name="percent" type="xsd:string"/> | ||
80 | </xsd:complexType> | ||
81 | |||
82 | <xsd:complexType name="propertyType"> | ||
83 | <xsd:attribute name="type" type="xsd:string"/> | ||
84 | <xsd:attribute name="percent" type="xsd:string"/> | ||
85 | </xsd:complexType> | ||
86 | |||
87 | <xsd:complexType name="onewayType"> | ||
88 | <xsd:attribute name="obey" type="xsd:string"/> | ||
89 | </xsd:complexType> | ||
90 | |||
91 | amb | 622 | <xsd:complexType name="turnsType"> |
92 | <xsd:attribute name="obey" type="xsd:string"/> | ||
93 | </xsd:complexType> | ||
94 | |||
95 | amb | 577 | <xsd:complexType name="weightType"> |
96 | <xsd:attribute name="limit" type="xsd:string"/> | ||
97 | </xsd:complexType> | ||
98 | |||
99 | <xsd:complexType name="heightType"> | ||
100 | <xsd:attribute name="limit" type="xsd:string"/> | ||
101 | </xsd:complexType> | ||
102 | |||
103 | <xsd:complexType name="widthType"> | ||
104 | <xsd:attribute name="limit" type="xsd:string"/> | ||
105 | </xsd:complexType> | ||
106 | |||
107 | <xsd:complexType name="lengthType"> | ||
108 | <xsd:attribute name="limit" type="xsd:string"/> | ||
109 | </xsd:complexType> | ||
110 | |||
111 | </xsd:schema> |