Journeyplanner
A client for accessing the Journey Planner (Rejseplanen) API.
Installation
The journeyplanner library can be installed using pip:
$ pip install journeyplanner
Examples
client = JourneyPlanner()
dt = datetime(2019, 1, 8, 12, 0, 0)
origin = Endpoint(latitude=55.68325233, longitude=12.57150292, name="noerreport")
destination = Endpoint(latitude=55.67271128, longitude=12.56635308, name="hovedbanen")
trip = client.trip(origin, destination, date=dt.date(), time=dt.time())
print(list(trip))
Authentication
client = JourneyPlanner()
client.authenticate('USERNAME', 'PASSWORD')
API reference
Trip objects
Trip instances have the following attributes:
Trip.legs
List of leg instances
Leg objects
Leg instances have the following attributes:
Leg.nameLeg.typeLeg.originLeg.destinationLeg.notes
Metadata
Release files for journeyplanner 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| journeyplanner-1.0.1.tar.gz | 6.3 kB | Without provenance | Details for journeyplanner-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| journeyplanner-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for journeyplanner-1.0.1-py3-none-any.whl |
Total release size: 14.7 kB
Release files / journeyplanner-1.0.1.tar.gz
| Download URL | journeyplanner-1.0.1.tar.gz |
|---|---|
| Size | 6.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
86e23821c9cd39821545aedd14330afff8ccfc82b3c4acea21f9bfa1b986f124
|
|
BLAKE2b-256 checksum How to use checksums |
278fed0f8e00470bfcc9bc4107a8b103fb7f958e5d8e460586e3b4752a9b8152
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
|
Release files / journeyplanner-1.0.1-py3-none-any.whl
| Download URL | journeyplanner-1.0.1-py3-none-any.whl |
|---|---|
| Size | 8.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4c674c00936b5297dc74f6fb19ef0b97ce0864e1b33be01f71a358b1b08a74e0
|
|
BLAKE2b-256 checksum How to use checksums |
b4152585173f7b40c81ee9e4ba3658ca8d38ad13760d228e140553067a28a84e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.2
|
Security for journeyplanner 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.