Versions Compared

Key

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

On this page you can see tables that describe the different ServiceFacility NeTEx enum values that can be sent to Samtrafiken. In the leftmost column, the supported NeTEx values are listed. They need to be surrounded by the element in the headline in the XML. In the right column you can see the corresponding TRP type+code for that value. That is the value that it is being used in the current sales system used by Samtrafiken. If you use other values than those listed in these tables, the import will fail. If you wish to provide a value that is not listed here, contact us.

If you need to send in other ServiceFacilities, for example those that are important in the sales system, then you can use a <KeyValue> containing the attributes. The attributes shown on the page Codelist: Attributes (service properties) are the approved attributes that have been set up by Samtrafiken. That way the full range of attributes needed in the sales system, can be used. You can read more about this and see examples here: https://samtrafiken.atlassian.net/wiki/spaces/SamtrafikenOpenData/pages/3619717293/Special+cases+for+sending+sales+data+to+Samtrafiken#ServiceFacilitySet---attributes

ServiceFacilities can be set in both ServiceJourney-elements and in JourneyPart-elements. If a ServiceFacility is to be applied for the entire journey it is set in a ServiceJourney-element. If a ServiceFacility is only to be applied to a part of the journey (meaning it is restricted/only applies between specific stops along the journey) it is defined in a JourneyPart-element of a ServiceJourney.

Here is an example of real NeTEx ServiceFacilitySet XML (as defined in a TimetableFrame), containing valid values :

Code Block
languagexml
<serviceFacilitySets>
  <ServiceFacilitySet version="any" id="SE:100:ServiceFacilitySet:747400000000000001">
      <CateringFacilityList>restaurant</CateringFacilityList>
      <MobilityFacilityList>suitableForWheelchairs</MobilityFacilityList>
      <PassengerCommsFacilityList>powerSupplySockets internet</PassengerCommsFacilityList>
      <ServiceReservationFacilityList>reservationsCompulsory</ServiceReservationFacilityList>
  </ServiceFacilitySet>

...

PassengerCommsFacilityEnumeration

...

Samtrafiken Transport Format (TRP) - TYPE+CODE

...

TRP description

...

publicWifi

...

KOMINV

...

WiFi

...

freeWifi

...

powerSupplySockets

...

KOMEL

...

Eluttag vid sittplats

...

internet

...

KOMIUK

...

Internetuppkoppling

...

MobilityFacilityEnumeration

...

Samtrafiken Transport Format (TRP) - TYPE+CODE

...

TRP description

...

boardingAssistance

...

FKHB01, FKHB02, FKHB03?

...

Ledsagning 01, Ledsagning 02, Ledsagning 03

...

lowFloor

...

Kan attributet för fordonstyp (FORX74) vara något som ersätter lowFloor-attributet? Förutsatt att X74 är utformad med lågt/hindersfritt golv och har samma betydelse?

...

Fordonstyp X74

...

onboardAssistance

...

stepFreeAccess

...

Kan attributet för fordonstyp (FORX74) vara något som ersätter lowFloor-attributet? Förutsatt att X74 är utformad med lågt/hindersfritt golv och har samma betydelse?

...

Fordonstyp X74

...

suitableForWheelchairs

...

KOMLYF

...

Rullstolslyft

...

unaccompaniedMinorAssistance

...

tactilePlatformEdges

...

tactileGuidingStrips

...


</serviceFacilitySets>

These ServiceFacilitySets can be referenced from ServiceJourneys and JourneyParts.

Code Block
languagexml
<ServiceJourney>
  <facilities>
    <ServiceFacilitySetRef ref="SE:930:ServiceFacilitySet:3"/>
    <ServiceFacilitySetRef ref="SE:930:ServiceFacilitySet:4"/>
  </facilities>
</ServiceJourney>
Note

Due to a typo in version 1.11 of the NeTEx specification, the wheelChairAssistance property should be written wheechairAssistance, and not wheelChairAssistance.

Info

The elements in the ServiceFacilitySet needs to be defined in this exact order in the XML. If the order is not correct the import will fail.

ServiceFacilitySet order of elements

1

AccessibilityInfoFacilityList

2

AssistanceFacilityList

3

AccessibilityToolList

4

CateringFacilityList

5

FareClasses

6

MobilityFacilityList

7

NuisanceFacilityList

8

PassengerCommsFacilityList

9

PassengerInformationFacilityList

10

AccommodationAccessList

11

AccommodationFacilityList

12

LuggageCarriageFacilityList

13

ServiceReservationFacilityList

AccessibilityInfoFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

noAnimals

audioForHearingImpaired

KOMEDJ

mobilePhoneFreeZone

KOMLUG?

2 klass lugn

breastfeedingFriendly

KOM24?/KOMFAM?

Skötrum/Familjevagn

familyArea

KOMFAM?

Familjevagn

AccommodationFacilityEnumeration

audioInformation

Djur ej tillåtet

visualDisplays

AssistanceFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

seating

any

standing

sleeper

KOMC/KOMCW/KOMW

Liggvagn/Sov- och liggvagn/Sovvagn

singleSleeper

KOM11/KOM2

1-bäddskupé i sovvagn/First-class sleepers

doubleSleeper

KOM13

First-class sleeper, double

couchette

KOM27/KOM6

Couchettes available/First-class couchettes

familyCarriage

KOMFAM

Familjevagn

AccommodationAccessEnumeration

none

KOME?

Ej sittvagn (fast det kanske syftar mer på att det är en liggvagn?)

other

personalAssistance

boardingAssistance

wheechairAssistance

Note

Due to a typo in version 1.11 of the NeTEx specification, this property is in fact called wheechairAssistance, and not wheelChairAssistance.

unaccompaniedMinorAssistance

wheelchairUse

conductor

information

freeSeating

Se alternativ under ReservationEnumeration

ReservationEnumeration

AccessibilityToolEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

reservation

Se alternativ under ReservationEnumeration

passengerCart

pushchair

wheelchair

noReservationsPossible

BOKEJB

Ej reservering

reservationsCompulsory

BOKOBL

Obligatorisk platsbokning

reservationsCompulsoryForGroups

reservationsRecommended

BOK14

Rekommenderad platsbokning

reservationsPossible

BOKFRI

Frivillig platsbokning

wheelchairOnlyReservations

reservationsPossibleOnlyInFirstClass

BOKEJ2

2 kl har ej reservering

LuggageCarriageEnumeration

CateringFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

bicycleReservationsCompulsory

bar

noFoodAvailable

KOMEJS

Servering finns ej

noBeveragesAvailable

restaurant

KOMRES

Bistrovagn

bistro

firstClassRestaurant

trolley

coffeeShop

KOM37

Kafé

snacks

foodVendingMachine

beverageVendingMachine

miniBar

KOM34

Minibar

mealAtSeat

KOMPLU

Mat 1 klass

FareClassEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

baggageStorage

KOMBAG

Bagage

cyclesAllowed

KOMCYK

Cyklar tillåtna

cyclesAllowedWithReservation

luggageRacks

KOMBAG

Bagage

extraLargeLuggageRacks

noBaggageStorage

noCycles

KOMECY

Cyklar ej tillåtna

AccessibilityInfoFacilityEnumeration

any

businessClass

economyClass

firstClass

MobilityFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

boardingAssistance

lowFloor

onboardAssistance

stepFreeAccess

suitableForWheelchairs

KOMLYF

Rullstolslyft

unaccompaniedMinorAssistance

tactilePlatformEdges

tactileGuidingStrips

AssistanceFacilityEnumeration

NuisanceFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

audioForHearingImpaired

FKHC01, FKHC02, FKHC03, FKHC04

Hörslinga display C01, Hörslinga display C02, Hörslinga display C03, Hörslinga display C04

audioInformation

FKHH01, FKHH02, FKHH03, FKHH04, FKHH05, FKHH06, FKHH07, FKHH08?

Högtalarutrop, punktskrift H01,

Högtalarutrop, punktskrift H02,

Högtalarutrop, punktskrift H03,

Högtalarutrop, punktskrift H04,

Högtalarutrop, punktskrift H05,

Högtalarutrop, punktskrift H06,

Högtalarutrop, punktskrift H07,

Högtalarutrop, punktskrift H08

visualDisplays

noAnimals

mobilePhoneFreeZone

breastfeedingFriendly

familyArea

PassengerCommsFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

any

publicWifi

none

KOMINV

other

WiFi

personalAssistance

freeWifi

boardingAssistance

FKHB01, FKHB02, FKHB03?

Ledsagning 01, Ledsagning 02, Ledsagning 03

wheechairAssistance

unaccompaniedMinorAssistance

wheelchairUse

conductor

information

AccessibilityToolEnumeration

powerSupplySockets

KOMEL

Eluttag vid sittplats

internet

KOMIUK

Internetuppkoppling

PassengerInformationFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

passengerCart

nextStopIndicator

pushchair

passengerInformationDisplay

wheelchair

FKHE01, FKHE02, FKHE03, FKHE04, FKHE05, FKHE06, FKHE07, FKHE08

Handikapplats E01, Handikapplats E02, Handikapplats E03, Handikapplats E04, Handikapplats E05, Handikapplats E06, Handikapplats E07, Handikapplats E08

CateringFacilityEnumeration

realTimeConnections

stopAnnouncements

AccommodationAccessEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

bar

reservation

KOM47

freeSeating

Bar

noFoodAvailable

KOMEJS

Servering finns ej

noBeveragesAvailable

restaurant

KOMRES

Bistrovagn

bistro

KOMRES

Bistrovagn

firstClassRestaurant

KOMPLU/KOMMÅL

Mat 1 klass/Måltid Plus

trolley

KOMSER?

Servering

coffeeShop

KOM37

Kafé

snacks

KOMSER?

Servering

foodVendingMachine

beverageVendingMachine

miniBar

KOM34

Minibar

mealAtSeat

KOMPLU

Mat 1 klass

FareClassEnumeration

AccommodationFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

seating

standing

sleeper

singleSleeper

doubleSleeper

couchette

familyCarriage

LuggageCarriageEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

baggageStorage

cyclesAllowed

KOMCYK

Cyklar tillåtna

cyclesAllowedWithReservation

luggageRacks

extraLargeLuggageRacks

noBaggageStorage

noCycles

ServiceReservationEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

bicycleReservationsCompulsory

any

noReservationsPossible

businessClass

BOKEJB

economyClass

Ej reservering

KOMB

reservationsCompulsory

2 klassvagn

BOKOBL

firstClass

Obligatorisk platsbokning

KOMA

reservationsCompulsoryForGroups

1 klass endast

reservationsRecommended

PassengerInformationFacilityEnumeration

Samtrafiken Transport Format (TRP) - TYPE+CODE

TRP description

nextStopIndicator

passengerInformationDisplay

realTimeConnections

stopAnnouncements

reservationsPossible

BOKFRI

Frivillig platsbokning

wheelchairOnlyReservations

reservationsPossibleOnlyInFirstClass

BOKEJ2

2 kl har ej reservering