geo.asTracks() is experimental and subject to change at any time.
geo.asTracks() groups rows into tracks (sequential, related data points).
Function type signature
(<-tables: stream[A], ?groupBy: [string], ?orderBy: [string]) => stream[A] where A: Record
Columns to group by. These columns should uniquely identify each track.
Columns to order results by. Default is
Sort precedence is determined by list order (left to right).
Input data. Default is piped-forward data (
Group geotemporal data into tracks
import "experimental/geo" data |> geo.asTracks()
Group geotemporal data into tracks and sort by specified columns
import "experimental/geo" data |> geo.asTracks(orderBy: ["lat", "lon"])
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.