Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jul 22 22:51
    Bertware commented #380
  • Jul 22 22:51
    Bertware commented #380
  • Jul 22 22:51

    Bertware on development

    Add missing braces (compare)

  • Jul 22 22:51

    Bertware on development

    Add missing braces (compare)

  • Jul 22 22:35
    Bertware commented #380
  • Jul 22 22:35
    Bertware commented #380
  • Jul 22 22:34

    Bertware on 380-routeplanner-departed-train-reports

    (compare)

  • Jul 22 22:34

    Bertware on 380-routeplanner-departed-train-reports

    (compare)

  • Jul 22 22:34
    Bertware closed #381
  • Jul 22 22:34

    Bertware on development

    Use the new dInR and aOutR fiel… Merge pull request #381 from iR… (compare)

  • Jul 22 22:34

    Bertware on development

    Use the new dInR and aOutR fiel… Merge pull request #381 from iR… (compare)

  • Jul 22 22:34
    Bertware closed #381
  • Jul 22 22:34
    Bertware opened #381
  • Jul 22 22:34
    Bertware opened #381
  • Jul 22 22:33
    Bertware commented #380
  • Jul 22 22:33
    Bertware commented #380
  • Jul 22 22:32

    Bertware on 380-routeplanner-departed-train-reports

    Use the new dInR and aOutR fiel… (compare)

  • Jul 22 22:32

    Bertware on 380-routeplanner-departed-train-reports

    Use the new dInR and aOutR fiel… (compare)

  • Jul 22 22:30

    Bertware on 370-disturbances-attachments

    (compare)

  • Jul 22 22:30

    Bertware on 370-disturbances-attachments

    (compare)

Pol Dellaiera
@drupol
I think I should create a small platform that aggregates all these informations sources and provide a standardized JSON
Pieter Colpaert
@pietercolpaert
It’s a box you probably don’t want to open, yet a great exercise in why data management is so difficult ;)
Pol Dellaiera
@drupol
ah ...
Ok :(
Pieter Colpaert
@pietercolpaert
For what would that be useful exactly? Car accident: for which driving direction? On which road? How do you know what long/lat actually means? E.g., it could be about the road under the highway which has an accident?
I think the first important step is to make sure that we have a good reference database for identifiers of roads, and that we can somehow map existing datasets to that. OpenLR looks interesting for that: http://www.openlr.org/introduction.html
Pol Dellaiera
@drupol
True...
So much things to do :(
Pieter Colpaert
@pietercolpaert
Yeah! Sorry about slowing your enthusiasm. It’s not fun talking to an academic I guess ;)
Pol Dellaiera
@drupol
No no I like actually
Pieter Colpaert
@pietercolpaert
I mainly see problems everywhere :p
Pol Dellaiera
@drupol
yep... same here :(
http://www.verkeerscentrum.be/uitwisseling/datex2full -> This is very interesting though
Pieter Colpaert
@pietercolpaert
yeah, it is!
it’s the best thing so far :)
Pol Dellaiera
@drupol
yep yep I'm trying to understand how they pinpoint locations on a map
Pieter Colpaert
@pietercolpaert
let me know what you find out! :)
Pol Dellaiera
@drupol
sure sure...
Bertware
@Bertware
"way too complex angular mumbo jumbo" I think we can all agree on that one, trying to fix something in that app is hell. Though I don't agree for server-side. I'd put everything client side. Download once, run always, without even contacting the webapp site except for a version check. It's a simple application which doesn't need its own server side, as all data can be pulled from our API. This would also keep everything structured, all our data comes from the API, no exceptions. Now the Angular app contacts the hyperrail webapp server for an app-specific API response, which is ridiculous as we have a scaleable API with multiple data formats running already. A WebApp would bring a way better, fluent user experience, better technical separation of concerns, less duplication.
That's just my opinion though, I'm not skilled enough in javascript (yet) to actually turn this into reality.
but we could get a clean (MVC?) structure in the javascript, basicly the same clean backend code you currently have in mind. It wouldn't even need a webserver (netlify could run it)
Pieter Colpaert
@pietercolpaert
Honestly, I would like that very much!
Bertware
@Bertware
Maybe something for #oSoC18 ?
Pieter Colpaert
@pietercolpaert
Would be awesome! But how do we fund these students.. That’s difficult
Bertware
@Bertware
Being able to "integrate" spitsgids, tripscore, linkedconnections into one progressive web app would be awesome, based on linkedConnections there would be additional benefits (can be used on any dataset publishing linked connections), no idea about funding :/
Pieter Colpaert
@pietercolpaert
Maybe a new master thesis student?
I will try something ;)
Demian Dekoninck
@DemianD
Hey, I started this weekend contributing to hyperRail (Upgrading the API to L5.6, however, there is no need for an API as the data can be fetched directly from the iRail API)
I would love to help improve the hyperRail
As iOS and Safari are implementing Service Works, I think a PWA for iRail would be perfect.
Let me know where I can help :)
Bertware
@Bertware
You contributed to the routeplanner, irail.be ;)
that project is called irail/hyperrail, irail/irail is the api, might be confusing
Demian Dekoninck
@DemianD
How do you mean? ("... contributing to hyperRail ..")
Oh I see "a PWA for iRail". I meant that a PWA for the organization of iRail would be nice
Bertware
@Bertware
@drupol The allowed number of requests has been reduced from 5 every second to 3 every second in order to keep everything running smooth. Normally this shouldn't be an issue for your app (you're hitting 200k requests every day, 3 requests per second is 260k requests). The maximum number of burst requests has been increased to 10 for users who need a lot of data, but only once. We're working on another API which will allow you to get all delays for a timespan in 1 request, but we're still finishing that one ;)
One of the coming days I'll publish an article on the number of requests iRail gets every day, we're nearing 1 million requests now
Pieter Colpaert
@pietercolpaert
It’s published ;)
Ditger De Wolf
@Ditger
hey, recently I started working with the iRail API and I'm still confused about several things. When I use php -S localhost:8008 -t api on the scraper it starts but gives a giant XML so I don't really know how I can use it entirely, I did try it with the documentation but that didn't work out the way I wanted so I hope someone can help me with this
Pieter Colpaert
@pietercolpaert
What are you trying to do?
Bertware
@Bertware
I suggest you try to get the result you want to achieve using api.irail.be. Once you get the result you'd like, use the same query on your local instance (so you know what output to expect)
Christian
@ChMat
Hi, I'm working on a big event for Les Scouts in Louvain-la-Neuve today. I hoped I would be able to gather arrival times for the special trains we have booked but I can't find them on the liveboard I fetch from api.irail.be. Can it be done if I scrape from a local instance?
Bertware
@Bertware
Can you find the train in the NMBS app or on the NMBS website? We get our data from there, and I'm not sure if they display those special extra trains.
Christian
@ChMat
This morning, they were visible while riding. But I can't find them anymore. Probably they show up only while in service. Would they be displayed in that case? If you want to check by yourself, most of them will be leaving from Ottignies after 6pm. I'll try to check then if I'm available.
Bertware
@Bertware
If they are in the application, they should be in our API ;) This is a case I've never seen before, so it's new to us too and I don't now how the NMBS handles it. Service trains aren't shown (taking train drivers to their work etc), and they aren't on the site. Extra trains to the coast on sunny days are shown in the stations (don't know about website/app), so I would expect them to show up in our API too.
Christian
@ChMat
Hi, Here is what it looks like for one of the trains we had booked: https://gist.github.com/ChMat/24460565c09d882896a1704491d08fde
And here is the liveboard mentioning the same vehicle: https://gist.github.com/ChMat/fded282efbec4a61071ff7e0858e8635
Bertware
@Bertware
Cool! So it's in there, but without a platform. I don't expect this to change, so you can build something cool with it! When you get a special train, does the NMBS communicate the number in advance with you? In that case you could use this information on your website by searching for the vehicle
Christian
@ChMat
We did have the number. Not the "train type" (TRN). I managed to fetch delays for all our trains, it worked pretty well :smile:
Pieter Colpaert
@pietercolpaert
Awesome!