I've managed, after some hacking, to write a wrapper to the pgr_trsp function in pgRouting that allows me to use the Turn Restricted Shortest Path to route between two points on the map. It is in the same structure as the Dijkstra Shortest Path wrapper with just a few