"python app calculate roadtrip"
>About 6,470,000 results (0.34 seconds)
Four out of the top five results have code. The other one is a video tutorial where the app is coded live.
https://www.google.com/search?q=%22python+app+calculate+road...
If you leave off the quotes (which were present in the comment I responded to) then of course you will get millions of irrelevant hits. Somewhere in that chaff there is some Python code that alleges to have something to with road trips, though it's not always clear what. If I give the same prompt to ChatGPT I get a nicely formatted box with a program that uses the Google Maps Distance Matrix API to calculate distance and duration, without a bunch of junk to wade through. (I haven't tried it so it could be a complete hallucination.)