geo.toRows() function

geo.toRows() is experimental and subject to change at any time. By using this function, you accept the risks of experimental functions.

geo.toRows() pivots fields into columns based on time.

Latitude and longitude should be stored as fields in InfluxDB. Because most geo package transformation functions require rows to have lat and lon columns, lat and lot fields must be pivoted into columns.

Function type signature
(<-tables: stream[A]) => stream[B] where A: Record, B: Record
For more information, see Function type signatures.



Input data. Default is piped-forward data (<-).


Pivot lat and lon fields into columns

import "experimental/geo"

    |> geo.toRows()

View example input and ouput

Was this page helpful?

Thank you for your feedback!

Upgrade to InfluxDB Cloud or InfluxDB 2.0!

InfluxDB Cloud and InfluxDB OSS 2.0 ready for production.