Skip to content

Basic FIT parser that only focuses on extracting geometry from activities

License

Notifications You must be signed in to change notification settings

c2corg/fit-parser-extract-geometry

Repository files navigation

fit-parser-extract-geometry

GitHub license Continuous integration Github Code scanning Codacy Badge Codacy Badge

Basic FIT parser that only focuses on extracting geometry from activities

Installation

npm install @c2corg/fit-parser-extract-geometry

Usage

import { extractGeometry } from '@c2corg/fit-parser-extract-geometry';

const bytes = [0x0E, 0x10, 0xD9, 0x07, 0x00, 0x00, 0x00, 0x00, 0x2E, 0x46, 0x49, 0x54, 0x91, 0x33, 0x00, 0x00];
const geometry = extractGeometry(new Uint8Array(bytes));

When an error is encountered, the parser stops silently and returns the coordinates already processed. Set DEBUG environment variable to fit-parser-extract-geometry to enable error messages (more info).

About

Basic FIT parser that only focuses on extracting geometry from activities

Resources

License

Stars

Watchers

Forks

Packages

No packages published