Skip to content
This repository has been archived by the owner on Oct 24, 2023. It is now read-only.

WorkoutRoute

marcjulianschwarz edited this page Feb 9, 2022 · 3 revisions

class watchlib.utils.WorkoutRoute

This is the data type for all workout routes. You can use it to access all properties of a route.

from watchlib.data_handler import DataLoader

dl = DataLoader("path/to/apple_health_export")
routes = dl.load_routes()
route = routes[0]

route.start # -> dt.datetime of when the route started
route["speed"] # or route.speed -> pd.Series with speed data 

Parameters:

  • data : pd.DataFrame or ET.Element
  • name : str

Properties:

  • route : pd.DataFrame
  • name : str
  • start : dt.datetime
  • end : dt.datetime
  • duration_sec : float
  • lon : pd.Series
  • lat : pd.Series
  • time : pd.Series
  • elevation : pd.Series
  • speed : pd.Series
  • course : pd.Series
  • hAcc : pd.Series
  • vAcc : pd.Series