JavaScript
var map = L.map("map").setView([42.24527777890384, -70.86830735206604], 12);
L.tileLayer('http://{s}.tile.osm.org/{z}/{x}/{y}.png', {
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors'
}).addTo(map);
// add a marker to the map
var station = turf.point([-70.86830735206604, 42.24527777890384]);
var lineString = {
"type": "FeatureCollection",
"features": [{
"type": "Feature",
"geometry": {
"type": "LineString",
"coordinates": [
[-70.74676593712621,
42.178772234745864
],
[-70.74634113, 42.18012238],
[-70.74578373, 42.18084232],
[-70.74039593, 42.18637217],
[-70.73990438, 42.18711882],
[-70.73958588, 42.18825828],
[-70.73960286, 42.1887563],
[-70.7399011, 42.19006887],
[-70.74126618, 42.19765383],
[-70.74176192, 42.19893215],
[-70.74212634, 42.19953996],
[-70.74410003, 42.20195987],
[-70.74514658, 42.20282752],
[-70.7456643, 42.20314666],
[-70.75050486, 42.20556388],
[-70.76220263, 42.2123049],
[-70.7636767, 42.21306429],
[-70.77193406, 42.21623732],
[-70.77416334, 42.21702313],
[-70.78712787, 42.21903448],
[-70.787761, 42.21920122],
[-70.78859516665874, 42.219537295145614],
[-70.78914084, 42.21975714],
[-70.79036565, 42.22048529],
[-70.79111435, 42.22110126],
[-70.79420514, 42.22590498],
[-70.79452187, 42.22652698],
[-70.79641103, 42.2311404],
[-70.79917643, 42.23568882],
[-70.80018268, 42.23678727],
[-70.80198847, 42.23826812],
[-70.80239925, 42.23885764],
[-70.80275408, 42.23964563],
[-70.80337178, 42.240334],
[-70.80410618, 42.24071291],
[-70.80495518, 42.24092441],
[-70.83752670669635, 42.24421312226886],
[-70.84722749, 42.2451926],
[-70.8487975, 42.24520901],
...