- Clone this module
- Run
npm ci
Run node main.js
to get the path gradient in a URL encoded fashion.
Other options:
node main.js -r # returns the path gradient in a RAW form that is not URL encoded
node main.js -f # returns a FULL URL that you can use with your Mapbox token
You can watch a 5-minute video tutorial here.