Versions Compared

Key

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

Innhold

Table of Contents

...

Display of brand or operator

Branding expands the presentation possibilities at all levels of routedata. At the top level (Authority/Operator), Brandin can override which company information is displayed to the customer. This should not be used to separate routesper Authority - then additionalNetwork must be used.

...

Gliffy
imageAttachmentIdatt637373207
baseUrlhttps://enturas.atlassian.net/wiki
migration1
namecodespace-authority-branding-operator
diagramAttachmentIdatt637373204
containerId637370463
timestamp1536061869666

Per By default peker en Line på en , a Line points to an Authority (via Network) og en Operator. Ved å også peke på en Branding kan man indikere at en annen informasjon skal brukes isteden.

Lenke

Hele XML eksempelfilen ligger på prosjektets GitHub-repository under and an Operator. By also pointing to a  Branding one can indicate that another information should be used instead. 

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

...

Elements

ValueSet

Hver Branding må defineres Each Branding must be defined under ResourceFrame (som en as aTypeOfValue), med with the minimum Name som skal overstyres to be overruled

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

Referanse-elementet BrandingRef må legges inn for det objektet hvor "merkevarenavnet" skal overstyres.

...

The referance element BrandingRef must be entered for the object where the "brand name" is to be overruled.

Branding of Line

(forenklet eksempel)

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 av ServiceJourney

(forenklet eksempelsimpliefied 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>

...