get_stops

bandicoot.helper.stops.get_stops(records, group_dist)

Group records arounds stop locations and returns a list of dict(location, records) for each stop.

Parameters:
records : list

A list of Record objects ordered by non-decreasing datetime

group_dist : float

Minimum distance (in meters) to switch to a new stop.