7.9. cpforager.check.check_gps

cpforager.check.check_gps(df, verbose=True)

Check if the gps data is ok overall.

Parameters:
  • df (pandas.DataFrame) – the dataframe with longitude, latitude and trip columns.

  • verbose (bool) – display warning if True.

Returns:

True if if the gps data is ok overall.

Return type:

bool

Practically, check if the dataframe longitude and latitude columns do not only contain NaN values, if there is at least one trip and if last trip is not interrupted.