goodl: github.com/OpenDriversLog/goodl/utils/dataConverter Index | Files

package dataConverter

import "github.com/OpenDriversLog/goodl/utils/dataConverter"

Package dataConverter is responsible for converting different formats to ODL-compatible CSV

Index

Package Files

dataConverter.go

Constants

const TAG = "goodl/dataConverter.go"

Variables

var Err_NoData = errors.New("No data")
var Err_UnknownFormat = errors.New("Unknown format")

func ConvertAnythingToCSV Uses

func ConvertAnythingToCSV(src string, format string, getDataSince int64) (res string, err error)

ConvertAnythingToCSV converts any given string to a CSV, if the given format is known to us. returns CSV and Err_UnknownFormat, Err_NoData or other / nil error if anything fails / not fails. all data with timeStamp < getDataSince will be ignored.

func ConvertKMLToCSV Uses

func ConvertKMLToCSV(src string, getDataSince int64) (res string, err error)

ConvertKMLToCSV converts a KML-file to a CSV. Anything before getDataSince will be ignored.

func ConvertNMEAToCSV Uses

func ConvertNMEAToCSV(src string, getDataSince int64) (res string, err error)

ConvertNMEAToCSV converts NMEA to CSV - currently supporting ONLY $GPRMC (Recommended minimum specific GPS/Transit data). Anything before getDataSince will be ignored.

func KnotsToKmh Uses

func KnotsToKmh(knots float64) (kmh float64)

KnotsToKmh converts Knots to kmh

Package dataConverter imports 12 packages (graph) and is imported by 1 packages. Updated 2016-12-04. Refresh now. Tools for package owners.