Page 5 of 5

Re: Dashticz - Module - Public Transport

Posted: Monday 13 February 2023 21:48
by Lokonli
Somehow haltenummer '09542' is not working as tpc code.

I was able to find the TPC code for line 53 via:
https://v0.ovapi.nl/line/GVB_53_1

The TPC code is 30009542 for Diemen zuid.
So you the following in your block:

Code: Select all

   tpc: '30009542',
After some more analysis:

Apparently 09542 is a stoparea.
If you fill this in in your block via:

Code: Select all

  station: '09542',
you see all the lines passing the stoparea (=station).

You can find all the TPC codes in that stoparea via:
http://v0.ovapi.nl/stopareacode/09542

By some searching you should be able to select the right tpc code.
Still a bit of trial and error I'm afraid ...

Re: Dashticz - Module - Public Transport

Posted: Tuesday 14 February 2023 7:02
by Beschuitje
Thanks! It's working now. :D

Also checked the other tpc codes for tram and bus and indeed they are all different than the codes on 'ovzoeker'.
All have the number 3000 in front.

Re: Dashticz - Module - Public Transport

Posted: Wednesday 05 July 2023 20:39
by stephanvdplas
The busstops region Zwolle have a different way to find the json info of the stops: e.g. the info of https://ovzoeker.nl/halte/c80b2bbc3bb66 ... e0d00512f5 can be found with https://ovzoeker.nl/api/arrivals/2495588. I have no clue where the number 2495588 comes from, other then look it up in the sources of the web page (via dev mode of the browser).

Is it possible to enter this in the public transport module block in Dashticz?

Re: Dashticz - Module - Public Transport

Posted: Monday 21 August 2023 10:52
by stephanvdplas
Following my last post...

The EBS bus stops in region Zwolle don't work. They are not enumerated in https://v0.ovapi.nl/stopareacode/
All other busstops do work, only the EBS busses don't.

I cannot find out why this is. Can someone point me to the right direction?
For instance the busstop 46006650 (https://ovzoeker.nl/halte/c06db90c8b82c ... 6df4671523) is working, but 46104005 (https://ovzoeker.nl/halte/f0d6e3a869d82 ... 4ee9f77883) is not working.

on ovzoeker.nl though the timetables are visible (via https://ovzoeker.nl/api/arrivals/2495588).
Also on https://drgl.nl/stop/NL:S:46104005 it is working as expected.

Re: Dashticz - Module - Public Transport

Posted: Friday 08 September 2023 6:37
by Lokonli
In fact the drgl site is quite nice.
Probably it can be used to collect the departure data.

Nice project for the dark winter months :)

Re: Dashticz - Module - Public Transport

Posted: Tuesday 16 January 2024 21:34
by stephanvdplas
stephanvdplas wrote: Monday 21 August 2023 10:52 Following my last post...

The EBS bus stops in region Zwolle don't work. They are not enumerated in https://v0.ovapi.nl/stopareacode/
All other busstops do work, only the EBS busses don't.

I cannot find out why this is. Can someone point me to the right direction?
For instance the busstop 46006650 (https://ovzoeker.nl/halte/c06db90c8b82c ... 6df4671523) is working, but 46104005 (https://ovzoeker.nl/halte/f0d6e3a869d82 ... 4ee9f77883) is not working.

on ovzoeker.nl though the timetables are visible (via https://ovzoeker.nl/api/arrivals/2495588).
Also on https://drgl.nl/stop/NL:S:46104005 it is working as expected.
Has anyone been able to work around this? I'd really like to post the bus times to my dashboard.

Re: Dashticz - Module - Public Transport

Posted: Tuesday 16 January 2024 21:35
by stephanvdplas
Lokonli wrote: Friday 08 September 2023 6:37 In fact the drgl site is quite nice.
Probably it can be used to collect the departure data.

Nice project for the dark winter months :)
Are the winter months dark enough for (reverse) engineering the drgl site? Do you have some material to have tested?