Skip to main content

Python library for easier use of www.trafiklab.se api's'

Project description

sthlmkollektivtrafik

Usage

Platsuppslag

from sthlmkollektivtrafik import platsuppslag

result = platsuppslag.search("apiKey", "searchStringy")

result.name
result.id
result.type

result.all
result.code
result.responses
result.stations

Realtidsinformation

from sthlmkollektivtrafik import realtidsinformation

result = realtidsinformation.departure("apiKey", "stationId", "timewindow")

result.trains
result.buses
result.metros

result.all

Störningsinformation

from sthlmkollektivtrafik import storningsinformation

result = realtidsinformation.departure("apiKey", "stationId")

result.all
result.headers
result.details

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sthlmkollektivtrafik-0.0.4.tar.gz (2.0 kB view hashes)

Uploaded Source

Built Distribution

sthlmkollektivtrafik-0.0.4-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page