The article states the directions are calculated by the Apple Maps engine.
> like our embedded maps, powered by Apple's MapKit JS framework
The JavaScript framework they use is not necessarily the same as the server-side routing engine. One can overlay data (like the path to drive and turns to take) with any mapping library like google, leaflet, etc.