Leaflet.Routing is a routing controller for the popular Leaflet mapping framework. The module provides an intuitive interface for routing paths between waypoints using any user specified routing service.
Not sure what you had in mind for error handling (see todo's), but here is my proposal to pass router errors to the client/caller (e.g. to display an error message):
pass err from router to callback in _routeSegment
collect first occuring error for multiple calls and pass to callback and events (routeWaypoint, rerouteAllSegments)
Not sure what you had in mind for error handling (see todo's), but here is my proposal to pass router errors to the client/caller (e.g. to display an error message):
_routeSegment
routeWaypoint
,rerouteAllSegments
)