Overview
We were looking to find a client side solution to finding a route free of obstacles. It was possible to use Valhalla, but that required more overhead than what the client was interested in running. We figured there should be a way to do this with Mapbox and Turf.js in the browser. After spending time thinking this through we worked out a solution that leveraged Mapbox GL JS, Turf.js, Polyline.js. Coupling these libraries with the obstacle data allowed us to find a novel solution that solved this problem.