Amended curl function to work with Google Maps Directions API