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

...