Skip to main content

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.name
  • Leg.type
  • Leg.origin
  • Leg.destination
  • Leg.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)

Source distribution for journeyplanner 1.0.1
File Size Uploaded
journeyplanner-1.0.1.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for journeyplanner 1.0.1
File Interpreter ABI Platform
journeyplanner-1.0.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page