pandas.DataFrame.pos.reduced_point_index¶
- DataFrame.pos.reduced_point_index(**kwargs)[source]¶
Eliminates gps points that are too close together.
No matter how far apart the points, always returns the start and end points.
Originally developed in my mapmatching package; an old version still exists there.
- Parameters
**lat (scalar) – column label in the record DataFrame containing latitude values along the path. If a label is not provided, the parameter name itself is used.
**lon (scalar) – column label in the record DataFrame containing longitude values along the path. If a label is not provided, the parameter name itself is used.
**min_dist (float) – The minimum distance (meters) between the resulting downsampled GPS coordinates. Default 15.
- Returns
A boolean array that can be used to subsample a
pandas.Seriescorresponding to this GPS trace, based on this minimum distance scheme.- Return type
list