neptunus
Make your GPX files match trails easily.
Installing
Using npm:
$ npm install neptunus
Using yarn:
$ yarn add neptunus
Launching
Import the module
You could import the module using import syntax.
Or using require syntax.
const Neptunus = default
Creating an instance
You have to create a new instance of neptunus with a mapbox access token.
const instance = mapboxAccessToken: 'YOUR_MAPBOX_TOKEN_HERE'
Neptunus.match(path)
Then, open a GPX file and pass it to neptunus as a string.
const file = await const output = await instance
Promises
neptunus depends on a native ES6 Promise implementation to be supported. If your environment doesn't support ES6 Promises, you can polyfill.
TypeScript
neptunus includes TypeScript definitions.