Journey Planner API client library
Project description
Journeyplanner
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
journeyplanner-1.0.0.tar.gz
(6.2 kB
view hashes)
Built Distribution
Close
Hashes for journeyplanner-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e944037bf36f2e0666ed66aa9d2ab90067d5dae2106689587be680185faa5572 |
|
MD5 | 8a378611bb4262627eaaffe857a43214 |
|
BLAKE2b-256 | 267a700f6a7d75b90dcf5dd37632ca7dd466b56198fea14ba8e3008ba2c59402 |