Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Content

Table of Contents

Displaying brand or altered operator information

Branding expands the presentation possibilities at all levels of the time table data. At the top level (Authority/Operator), Branding can override which company information presented to the customer. Please note that the proper way to override Authority is with additionalNetwork.

...

Modelling for alternative operator information

Authority for lines operated under contract from a county should be the county , or its designated organization. Line lines delivered by the county on behalf of other operators, should (normally) have its own Authority within the codespace. In practice, this means that the customer is informed which Authority is responsible for the route, as well as for example ticketing (note that customer service/contact information is obtained from CustomerServiceContactDetails for the lines' Operator).

In some cases, it might be prudent to slightyslightly- or completely alter the contact and ownership information of a Line. Branding can theoretically be added to all levels of the Line structure, but Norwegian circumstances only require Branding application on Network, Line and Operator.

...

By default, a Line points to an Authority (via Network) and an Operator. By adding Branding one can override Authority or Operator information. 

The entire XML sample file is located in the GitHub repository: https://github.com/entur/profile-norway-examples/blob/master/netex/submodels/submodel-Branding.xml

Elements

ValueSet

Each instance of Branding is defined under ResourceFrame (as a TypeOfValue), specifying specified with at a minimum the Name value. 

Code Block
languagexml
<typesOfValue>
	<Branding version="1" id="SOF:Branding:1">
		<Name>Firda Billag</Name>
		<Url>https://www.firda-billag.no/</Url>
	</Branding>
	<Branding version="1" id="SOF:Branding:2">
		<Name>Nettbuss Sogndal</Name>
		<Url>https://www.nettbuss.no/</Url>
	</Branding>
</typesOfValue>

BrandingRef

The referance 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)

Code Block
languagexml
<Line version="1" id="SOF:Line:1">
	<BrandingRef version="1" ref="SOF:Branding:1"/>
	<Name>Sogndal-Kaupanger kai</Name>
	<TransportMode>bus</TransportMode>
	<TransportSubmode>
		<BusSubmode>localBus</BusSubmode>
	</TransportSubmode>
</Line>

Branding on a ServiceJourney

(simplified example)

Code Block
languagexml
<ServiceJourney version="1" id="SOF:ServiceJourney:1"> 
	<BrandingRef version="1" ref="SOF:Branding:2"/>
	<Name>Sogndal-Kaupanger kai</Name>
	<TransportMode>bus</TransportMode>
	<TransportSubmode>
		<BusSubmode>localBus</BusSubmode>
	</TransportSubmode>
</ServiceJourney>

...