Skip to end of banner
Go to start of banner

Branding (Copy)

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 2 Next »

Innhold

DIsplay og 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.

Modeling for alternative operator information

All routes owned by the county municipality shall have the county municipality or the current administrative company as the Authority. Line data that is only delivered by the county miunicipality on behalf of other operators, has (normally) its own Authority within the data set's Codespace. This means in practice that the customer is informed that the Authority is responsible for the route, for example. management and ticketing (note that customer service / contact information regardless of this is obtained from CustomerServiceContactDetails for the current Operator).

If on some routes you want to display a different coimpanu information than what is stated in the Authority, you must use Branding. This is added by the following model:

Per default peker en Line på en 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 https://github.com/entur/profile-norway-examples/blob/master/netex/submodels/submodel-Branding.xml

Elementer

ValueSet

Hver Branding må defineres under ResourceFrame (som en TypeOfValue), med minimum Name som skal overstyres. 

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

Branding av Line

(forenklet eksempel)

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

<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