gps-filter icon indicating copy to clipboard operation
gps-filter copied to clipboard

gpsFilter.removeSpikes is not a function

Open lc3t35 opened this issue 5 years ago • 1 comments

I'm trying to use this library in ES6 with the following code but have this error :

import * as gpsFilter from "gps-filter";
/.../
const filteredTrack = gpsFilter.removeSpikes(extractedTrack, 0, 2);

error is TypeError: gpsFilter.removeSpikes is not a function

lc3t35 avatar Jan 06 '19 20:01 lc3t35

Looks like gps-filter exports a single object with several methods, including removeSpikes, so you probably want to import like:

import gpsFilter from "gps-filter"

diachedelic avatar Jun 27 '19 05:06 diachedelic