You should be able to do this with the Google Directions API. But it’s not a fast/simple process to integrate that in Thunkable. The first API I tried to integrate into Thunkable took me about ten hours to understand and get working. But if you are familiar with JSON or APIs already, it might take you less time.
Once you have successfully accessed the API from Thunkable, you might find this topic interesting: