PPT documentation

65 views
Skip to first unread message

Yochi Danino

unread,
Dec 16, 2021, 6:06:22 AM12/16/21
to openov
Hey! I am trying to understand the PPT documentation to understand the fare prices throughout the Netherlands. 

I am having a lot of trouble because the documentation is in Dutch. 

Firstly, are the Bison PPT fares for all agencies except rail? I could only see HTM there. 

With that, I see that in the "tarieven" folder there are PPT fares for agencies separately, and am still having trouble deciphering them.

For example, in GVB's file, what do the following represent/correspond to? 

<DistanceMatrixElement version="gvb:1.0" id="gvb:HH_81051-0216">
                                    <StartStopPointRef ref="gvb:SSP-02064"/>
                                    <EndStopPointRef ref="gvb:SSP-02109"/>

                                    <prices>
                                        <DistanceMatrixElementPrice version="gvb:1.0" id="gvb:HH_81051-0216P">
                                            <Amount>95</Amount>
                                            <Units>0.01</Units>

                                        </DistanceMatrixElementPrice>
                                    </prices>
                                </DistanceMatrixElement>

I would appreciate any help here. Thanks!!!

Stefan de Konink

unread,
Dec 16, 2021, 6:25:42 AM12/16/21
to ope...@googlegroups.com
Hey,

On Thursday, December 16, 2021 12:06:22 PM CET, Yochi Danino wrote:
> Hey! I am trying to understand the PPT documentation to understand the fare
> prices throughout the Netherlands.
>
> I am having a lot of trouble because the documentation is in Dutch.

They are Dutch prices ;) There must be someone in Arriva to help you out,
right?


> Firstly, are the Bison PPT
> <https://bison.dova.nu/standaarden/ppt-producten-prijzen-en-tarieven> fares
> for all agencies except rail? I could only see HTM there.
> With that, I see that in the "tarieven" folder there are PPT fares for
> agencies separately, and am still having trouble deciphering them.

Where is 'there'? This looks pretty 'filled' to me.
<https://data.ndovloket.nl/tarieven/>

> For example, in GVB's file, what do the following represent/correspond to?
>
> <DistanceMatrixElement version="gvb:1.0" *id="gvb:HH_81051-0216*">
>
> * <StartStopPointRef ref="gvb:SSP-02064"/>
> <EndStopPointRef ref="gvb:SSP-02109"/>*
> <prices>
> <DistanceMatrixElementPrice
> version="gvb:1.0" id="gvb:HH_81051-0216P">
> <
> *Amount>95</Amount>
> <Units>0.01</Units>*
> </DistanceMatrixElementPrice>
> </prices>
> </DistanceMatrixElement>
>
> I would appreciate any help here. Thanks!!!

Please specify the file that you are looking at.

Typically it would work via:


<ScheduledStopPoint id="gvb:SSP-02064" version="gvb:1.0">
<projections>
<PointProjection id="gvb:PP-02064" version="gvb:1.0">
<ProjectedPointRef ref="02064"
nameOfRefClass="KV1UserStop"/>
</PointProjection>
</projections>
</ScheduledStopPoint>

The projection to KV1:

RECORDTYPE|VERSIONNUMBER|IMPLICITEXPLICIT|DATAOWNERCODE|USERSTOPCODE|TIMINGPOINTCODE|GETIN|GETOUT|TIMINGPOINT|NAME|TOWN|USERSTOPAREACODE|STOPSIDECODE|ROADSIDEEQDATAOWNERCODE|ROADSIDEEQUNITNUMBER|MINIMALSTOPTIME|STOPSIDELENGTH|DESCRIPTION|USERSTOPTYPE
USRSTOP|3|I|GVB|00264||TRUE|TRUE|N|Station
Diemen|Amsterdam|00264|-|||0|||PASSENGER


So you find the pair, and depending on the structure used, you can create
origin-destination matrix out of it that can be applied to a journey plus
apply the entrance fare, where appropriate;

<keyList>
<KeyValue>
<Key>EntranceRateWrtCurrency</Key>
<Value>0.99</Value>
</KeyValue>
</keyList>
--
Stefan

Yochi Danino

unread,
Dec 19, 2021, 5:57:29 AM12/19/21
to ope...@googlegroups.com, Shelly Almoznino
Hi Stefan,

Thank you! 

I am looking at GVB's latest PPT file and I don't seem to be calculating the fare correctly because I do not get the same fare as the website.

For example, taking this journey:

Start point is stop 02060 - Amsterdam, Spaarndammerdijk
End point is stop 05080 - Amsterdam, Buiten Oranjestraat
so the price should be 3 EURO plus .99 for the entrance fare

But when I search this journey on the website,  I get a few of 1.43 EURO

I would appreciate your help here! Thank you!

Regards,

--
Yochi Danino
Operations Manager, Western USA & Canada
Moovit App Global Ltd.
Phone: +972-54-914-9713
Email: yochi....@moovit.com

───────────────────

       

───────────────────




--
Je hebt dit bericht ontvangen, omdat je je hebt aangemeld bij de groep 'openov' van Google Groepen.
Als je je wilt afmelden bij deze groep en geen e-mails van de groep meer wilt ontvangen, stuur je een e-mail naar openov+un...@googlegroups.com.
Ga naar https://groups.google.com/d/msgid/openov/876b1b15-2b1b-44a6-94f1-f388578ec780%40konink.de om deze discussie op het internet te bekijken.

Stefan de Konink

unread,
Dec 19, 2021, 6:02:24 AM12/19/21
to ope...@googlegroups.com
On Sunday, December 19, 2021 11:56:51 AM CET, Yochi Danino wrote:
> Start point is stop 02060 - Amsterdam, Spaarndammerdijk
> End point is stop 05080 - Amsterdam, Buiten Oranjestraat
> so the price should be 3 EURO plus .99 for the entrance fare
>
> But when I search this journey on the website, I get a few of 1.43 EURO

Are you considering the same "Line"? (And their KV1index.xml file?)

--
Stefan

Sven Boor

unread,
Dec 19, 2021, 7:05:49 AM12/19/21
to openov, Shelly Almoznino
Hi Yochi,

It seems that you are using a very old PPT, in the current implementation there is a dot in the Amount so for example 300.0. So it seems that you are not considering the validities in combination with lines. The correct is in the currently active file:

<DistanceMatrixElement id="gvb:Matrix- 22-001"
                version="gvb:1.0">
                  <InverseAllowed>false</InverseAllowed>
                  <StartStopPointRef ref="gvb:SSP-02061" />
                  <EndStopPointRef ref="gvb:SSP-05079" />
                  <prices>
                    <DistanceMatrixElementPrice id="gvb:DMEP001"
                    version="gvb:1.0">
                      <Amount>44.0</Amount>

                      <Units>0.01</Units>
                    </DistanceMatrixElementPrice>
                  </prices>
                </DistanceMatrixElement>

At Moop Mobility we have a low latency plug and play api that makes it very easy to calculate prices that works in combination with every planner that abstracts all the difficulties with validities for different and importing the right data. This works based on the follow parameters for every leg of a trip (DataOwnerCode (e.g. GVB, CXX, ARR), LinePlanningNumber (M300, 22), StartUserStopCode, EndUserStopCode and the StartTime and Endtime of a leg (to calculate only the base price once if you transfer within 35 minutes within the non train PT). Maybe it’s an api that can make your live much easier and saves a lot of time in development, also because some parts are difficult to fully automate because the data is not fully standardised (especially in case of the trains). If you are interested, please let me know. 

Best regards,

Sven





Je hebt dit bericht ontvangen omdat je bent geabonneerd op de groep 'openov' van Google Groepen.

Als je je wilt afmelden bij deze groep en geen e-mails van de groep meer wilt ontvangen, stuur je een e-mail naar openov+un...@googlegroups.com.

Yochi Danino

unread,
Dec 19, 2021, 7:21:37 AM12/19/21
to ope...@googlegroups.com
Thank you.

I still am having issues when considering the  line.

For example for line 1:

image.png
 Here, I would think the fare would be .30 + .99 - 1.29 EURO but according to the trip planner it is 1.16 EURO

image.png

Can you identify where my calculation is off?
Regards,

--
Yochi Danino
Operations Manager, Western USA & Canada
Moovit App Global Ltd.
Phone: +972-54-914-9713
Email: yochi....@moovit.com

───────────────────

       

───────────────────


--
Je hebt dit bericht ontvangen, omdat je je hebt aangemeld bij de groep 'openov' van Google Groepen.
Als je je wilt afmelden bij deze groep en geen e-mails van de groep meer wilt ontvangen, stuur je een e-mail naar openov+un...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages