How does the Google Maps version work?
A The Google Maps version uses the Google Maps API, which is provided by Google. It lets a JavaScript program do things like move the map, and add markers and lines. The actual subway route calculation is done by a CGI program that runs on www.brail.org, and the results are returned to the JavaScript code that runs on your web browser and renders the map on the screen.