Content
Table of Contents |
---|
Geographical location indications (for Line 109, Oslo)
Journeypattern
A JourneyPattern can be defined as pointsInSequence (a sorted list of points, detailed in other example) and / or linksInSequence (a sorted list of links between two points).
According to The Norwegian NeTEx Profile, the actual route must be defined as high as possibleat the highest possible level in the XML structure, and in most cases it is recommended that this be done as a set of 637370789 with with Link projections describing the points this it follows. These should unambiguously describe the path unambiguously using sufficient GML coordinates (gml:pos) so that the line's JourneyPattern is correctly displayed in map serviceson maps.
In some cases (eg, flight e.g. air routes), this may alternatively be done by using the line's RoutePoints, since it will suffice to display the route in maps as a straight line between these two locations.
Info |
---|
See also officialofficial NeTex White Papers, in particular 06.NeTEx-Network-WhitePaper, where this aspect is described in detail. |
Link
The entire XML sample file is located on in the project's GitHub repository below https://github.com/entur/profile-norway-examples/blob/master/netex/Full_PublicationDelivery_109_Oslo_morningbus_example.xml
PublicationDelivery
Info |
---|
Because other relevant datastructures data structures in the example have already been reviewed described in Simple route - Bus (rhytmbased departure) (i arbeid)rhytm based bus line / Simple route - Bus (i arbeid)bus line, only the definition of serviceLinks and their use in linksInSequence (in JourneyPattern) are reviewed described in this document. |
Service Frame
serviceLinks
637370789 with Link projections describes furterh additional geographical points between between StopPoints/TimingPoints .
Code Block | ||
---|---|---|
| ||
<serviceLinks> <ServiceLink version="any" id="unibuss:sl:helsfyr_to_brynseng"> <projections> <LinkSequenceProjection version="any" id="unibuss:lsp:109:helsfyr_to_brynseng"> <gml:LineString srsName="WGS84" gml:id="helsfyr_to_brynseng"> <gml:pos>59.911925 10.807198</gml:pos> <gml:pos>59.910395 10.813012</gml:pos> </gml:LineString> </LinkSequenceProjection> </projections> <FromPointRef version="any" ref="unibuss:ssp:helfyr_t"/> <ToPointRef version="any" ref="unibuss:ssp:brynseng_t"/> </ServiceLink> [...] <ServiceLink version="any" id="unibuss:sl:ryen_to_holtet"> <projections> <LinkSequenceProjection version="any" id="unibuss:lsp:109:ryen_to_holtet"> <gml:LineString srsName="WGS84" gml:id="ryen_to_holtet"> <gml:pos>59.894780 10.804309</gml:pos> <gml:pos>59.892531 10.804000</gml:pos> <gml:pos>59.888996 10.805961</gml:pos> <gml:pos>59.887608 10.806368</gml:pos> <gml:pos>59.886410 10.800586</gml:pos> <gml:pos>59.885832 10.792943</gml:pos> <gml:pos>59.885392 10.788938</gml:pos> <gml:pos>59.885630 10.784435</gml:pos> <gml:pos>59.883864 10.783759</gml:pos> <gml:pos>59.881872 10.783770</gml:pos> </gml:LineString> </LinkSequenceProjection> </projections> <FromPointRef version="any" ref="unibuss:ssp:ryen_t"/> <ToPointRef version="any" ref="unibuss:ssp:holtet"/> </ServiceLink> </serviceLinks> |
linksInSequence
The links describing how to project the line's journeypattern is to be projected onto maps are used in conjunction with the stops (possibly timing points) to accurately specify the line's JourneyPattern.
Code Block | ||
---|---|---|
| ||
<journeyPatterns> <JourneyPattern version="any" id="unibuss:jp:109"> <RouteRef ref="unibuss:rt:109"/> <DestinationDisplayRef ref="unibuss:dd:holtet"/> <pointsInSequence> [...] </pointsInSequence> <linksInSequence> <ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:helsfyr_to_brynseng" order="1"> <ServiceLinkRef version="any" ref="unibuss:sl:helsfyr_to_brynseng"/> </ServiceLinkInJourneyPattern> <ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:brynseng_to_hoyenhall" order="2"> <ServiceLinkRef version="any" ref="unibuss:sl:brynseng_to_hoyenhall"/> </ServiceLinkInJourneyPattern> <ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:hoyenhall_to_manglerud" order="3"> <ServiceLinkRef version="any" ref="unibuss:sl:hoyenhall_to_manglerud"/> </ServiceLinkInJourneyPattern> <ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:manglerud_to_ryen" order="4"> <ServiceLinkRef version="any" ref="unibuss:sl:manglerud_to_ryen"/> </ServiceLinkInJourneyPattern> <ServiceLinkInJourneyPattern version="any" id="unibuss:slijp:ryen_to_holtet" order="5"> <ServiceLinkRef version="any" ref="unibuss:sl:ryen_to_holtet"/> </ServiceLinkInJourneyPattern> </linksInSequence> </JourneyPattern> </journeyPatterns> |
...