Update Home
parent
ccc9aa0d31
commit
a49d11dd64
36
Home.md
36
Home.md
@ -2,4 +2,38 @@
|
||||
|
||||
Welcome to the project's Wiki.
|
||||
|
||||
Conceptional there are two different types of methods. Normal and raw ones. Raw methods are only beautiful variant of HTTP requests, nothing except for that actually. Normal ones are meant to be used as objects. You can still provide strings here and there, but basic concept is focused on objects usage.
|
||||
This module aims to provide eased access to RMV's OpenData API endpoints and enable some home-projects to show the data about public transit state at the moment. As for now, async is not supported and is not necessarily planned in the future, so bigger projects should consider this before using this module in the first place.
|
||||
|
||||
## Basic concepts behind
|
||||
|
||||
So the module `pyrmv` has two options to choose from when it comes to the usage:
|
||||
|
||||
1. Using higher-level methods of the class [pyrmv.Client](https://git.end-play.xyz/profitroll/PythonRMV/wiki/Client). These methods provide pythonic objects, can throw exceptions and are overall pretty neat.
|
||||
2. Using raw functions from [pyrmv.raw](https://git.end-play.xyz/profitroll/PythonRMV/wiki/Raw-Functions). These functions are basically a small interface for HTTP requests that happen in the background and have little to no processing behind the scenes.
|
||||
|
||||
Your preferred variant depends on the use case, but usually higher-level methods of the Client should be the match.
|
||||
|
||||
## Objects
|
||||
|
||||
This module does **not** use the [FPTF](https://github.com/public-transport/friendly-public-transport-format) because it aims to give full access to the API RMV provides, thus objects Client gives you will contain a bit more information.
|
||||
|
||||
These objects are implemented in pyrmv:
|
||||
|
||||
* [BoardArrival](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.BoardArrival)
|
||||
* [BoardDeparture](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.BoardDeparture)
|
||||
* [LineArrival](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.LineArrival)
|
||||
* [LineDeparture](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.LineDeparture)
|
||||
* [Gis](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Gis)
|
||||
* [Journey](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Journey)
|
||||
* [Leg](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Leg)
|
||||
* [Channel](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Channel)
|
||||
* [Message](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Message)
|
||||
* [Url](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Url)
|
||||
* [Stop](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Stop)
|
||||
* [StopTrip](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.StopTrip)
|
||||
* [Trip](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Trip)
|
||||
* ~~[Ticket](https://git.end-play.xyz/profitroll/PythonRMV/wiki/classes.Ticket)~~ (WIP)
|
||||
|
||||
## Note for bigger projects
|
||||
|
||||
As you may already know, bigger projects like [Öffi](https://gitlab.com/oeffi/oeffi) and [DB Navigator](https://play.google.com/store/apps/details?id=de.hafas.android.db) use NVV's API instead of RMV's for navigation and public transit querying. Reasons behind this are clear as day and from perspective of pyrmv it's highly recommended you also choose that way, because RMV loves to change or break their API in unexpected places and does not cooperate with developers well enough when they do so.
|
||||
|
Loading…
Reference in New Issue
Block a user