Routing in Web maps can be both complicated and time-consuming, or expensive if you need to set up your own server or make a lot of API requests. One alternative option is to use GeoJSON Path Finder, which performs simple routing calculations within the browser, completely offline. Very cool.

GeoJSON Path Finder - Serverless, offline routing in the browser