landtransportsg

Module contents

landtransportsg.ActiveMobility

alias of Client

landtransportsg.Geospatial

alias of Client

landtransportsg.PublicTransport

alias of Client

landtransportsg.Traffic

alias of Client

landtransportsg.exceptions

Exceptions that could occur when interacting with any API endpoint.

exception landtransportsg.exceptions.APIError(message: str, errors: list[str] | None = None)

Bases: Exception

Error when the API returns an error.

Parameters:
  • message (str) – The general error message to display when the error is raised.

  • errors (list[str]) – Other messages that were part of the raised error. Defaults to None.

Return type:

None