Distance From not calculating correctly

So after watching a few hours of videos I decided to try an build something in Bubble, most has gone well, however I am having a distance issue I am unsure if it is calculating a straight line distance potentially as opposed to driving distance, if so I am unsure about how to calculate driving distance instead and am struggling to find any documentation to assist me in doing so. Here is what I currently have -

This is calculating distance between 2 searchbox inputs

The calculation is coming up with 18.47 miles

here is Google maps

Where the calculation is over 30 miles

I am not sure if I potentially have an API misconfigured somewhere or if I need to be using a different calculation method all together I am happy to do some reading and or video watching but everything I can find uses the distance from function which is not delivering me with driving distance, any insight is appreciated.

I was finally able to resolve the issue and figure out my Distance Matrix API