Add source code with some functionality to fetch directions in JSON format