Skip to end of banner
Go to start of banner

Branding (i arbeid)

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

Innhold

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.

Modeling 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 slighty- 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 aTypeOfValue), specifying at a minimum the Name value. 

<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 element BrandingRef must be specified for the object where the name, (and if applicable, other fields) is to be replaced.

Branding on a Line

(simplified example)

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

<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>
  • No labels