you can probably do a webscrape for it to grab it out of the returned google maps site code. Scraping uses the insert from URL script step to grab the HTML source of the web viewer.
You then tell filemaker to go through this "scraped" data, looking for the specific html tag or object for your data, then parsing that out.
So if google maps used <div class="altroute-rcol altroute-info">138 mi</div>, you would calculate something like:
Let ( [
position = position(html ; "altroute-rcol altroute-info" ; 1 ; 1 ); //the position of where this class starts.
position2 = position(html ; "</div>" ; 1 ; position ); //the position of where the div closes
startpoint = position + 29 //make sure you start at the right character
middle(html ; start ; position2)
Thanks Mike I new there was a posible solution out there.
i will add this in and see how it works out over time.
Thank you Thomas
I like this idea and the sample you have attached as it gives me a lot more food for thought than I had considered.