public-transport / fpti-js

Standardized API for public transportation client libraries in JavaScript.
Creative Commons Attribution Share Alike 4.0 International
9 stars 0 forks source link

suggestion: adapt to NeTEx/OJP #1

Closed skinkie closed 6 years ago

skinkie commented 6 years ago

I just saw your message on the mailinglist. Are you aware of the data models used in this data exchange standard for journey planning? https://github.com/OJP-VDV/OJP

juliuste commented 6 years ago

Thank you very much for mentioning/referencing this! 🙂 I somehow forgot about your comment here and should have answered earlier, I'm sorry about that 😕

However: I have heard about NeTEx, OJP and the ITS directive, but I have some reasons to continue working on FPTF/FPTI for now:

Of course this doesn't mean that I'm not also excited about the directive and (hopefully) the standardization and data liberalization that come with it. I'm just very curious about the level of adoption we will see come January.

Other FPTF contributors like @derhuerst or @kiliankoe might have different feelings about this, though.

Anyway: I am really thankful to you for mentioning the ITS legislation, I will have another look at everything that comes with it in the near future! By the way: Am I even right about January 2019 being the “deadline” for adoption or did I get this wrong? 😄

skinkie commented 6 years ago

The point is not about making a javascript library other than OJP for client communication. The point is that you are using different object names and API calls. It wouldn't hurt your project to at least use the common international naming. Hence it would show when the architecture of the European proposal do not meet a use case. Hence lets at least agree to use the same vocabulary.

derhuerst commented 6 years ago

To be honest, I find the OJP documentation linked by @skinkie not very accessible. Is there a short overview on the API calls & object names?

skinkie commented 6 years ago

htp://stefan.konink.de/djp.pdf

juliuste commented 6 years ago

As far as I understood the document, there is no vocabulary defined for static data (such as schedule or trip, which is usually rather used for scheduled movements of one vehicle than for journeys).

I therefore sadly don't see a way to rename our methods according to this schema because some crucial vocabulary is still missing in the document.

Thank you very much for approaching us with this document, though! Also: Feel free to reopen this issue if I misinterpreted the document.

skinkie commented 6 years ago

@juliuste it is completely based on an existing standard called "TRIAS" which is transformed to the international TRANSMODEL public transport standard. Of which NeTEx is currently the XML incarnation.

derhuerst commented 6 years ago

Will look into this further soon and give my opinion.

skinkie commented 6 years ago

The point is obviously not "you are doing it wrong" but "you are creating something new, that doesn't make sense with respect to what every transport company is going to implement". So if you need something like JSON, you might be also interested into something like SIRI-Lite.

pietercolpaert commented 4 years ago

I would vote for using JSON-LD with the transmodel ontology instead: https://github.com/oeg-upm/transmodel-ontology/