1

I am using leaflet routine machine to get a route between 2 points. I want to be able to draw an invisible polyline around the route and use this as a geofence and if the user goes out of the bounds then reload another route.

Not quite sure how to go about this and the closest thing I have found is this

https://coderwall.com/p/zb_zdw/buffered-polyline

Where do I start?

Most examples use googles routine machine.

closed as off-topic by PolyGeo Feb 14 at 23:44

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – PolyGeo
If this question can be reworded to fit the rules in the help center, please edit the question.