Content
Additional information on Network or Line
Branding is a generic NeTEx element which can be applied to elements in the NeTEx structure for adding or overriding name and URL. In the Nordic profile, the usage is limited to adding additional names and URL to the Network and Line elements.
- Branding per Network
- Used when certain lines in the dataset have a common denominator, i.e. Network.
- Examples of this can be a cluster of city buses, a string of Lines which form a coherent service, or a sales related brand name.
- The Network may have a different URL from the authority.
- Branding per Line
- Used when a Line has a commonly used or publicly marketed name which a customer may relate to in addition to the Lines' publicCode.
- An example of this can be e.g. "Bergensbanen" for railway service journeys between Oslo and Bergen.
- The Line may have a different URL from the authority.
For multiple Networks in one dataset, additionalNetwork must be used.
Note that each additionalNetwork may have its own Authority, and must be used if necessary to have multiple Authorities within the same dataset.
Modelling of added information
The Branding elements may be added to the commons file of the dataset (for reduced redundancy) and is referred to from Network or Line with the use of a BrandingRef.
Please note that the concept of GroupOfLines is not a part of the hierarchy and does necessarily have to include the same lines as the Network.
Link
The XML sample files are located in the GitHub repository:
Elements
ValueSet
Each instance of Branding is defined under ResourceFrame (as a TypeOfValue), specified with Name value.
<typesOfValue> <Branding version="1" id="UNI:Branding:1"> <Name>Lavprisekspressen</Name> <Url>https://lavprisekspressen.no</Url> </Branding> <Branding version="1" id="VYB:Branding:1"> <Name>Bus4You</Name> <Url>https://www.vy.se</Url> </Branding> </typesOfValue>
BrandingRef
The reference element BrandingRef must be specified for the object where a name, (and if applicable, other fields) is to be replaced.
Branding on a Line
(simplified example)
<Line version="1" id="UNI:Line:1"> <BrandingRef version="1" ref="UNI:Branding:1"/> <Name>Oslo-Kristiansand-Stavanger</Name> <TransportMode>bus</TransportMode> <TransportSubmode> <BusSubmode>localBus</BusSubmode> </TransportSubmode> </Line>
Branding on a Network
(simplified example)
<Network version="1" id="VYB:Network:1"> <BrandingRef version="1" ref="VYB:Branding:1"/> <Name>Vy Buss AB</Name> </Network>