Hi @Anonymous ,
Do you want to embed a Google map with direction indicator within your canvas app?
Do you use Image control to display your Google map?
Based on the formula that you mentioned, I think you have some misunderstanding with the Google Directions API (https://maps.googleapis.com/maps/api/directions/outputFormat?parameters).
The output of Google Directions API is a JSON data or a XML data, not a Image data. Please check the following article for more details:
https://developers.google.com/maps/documentation/directions/intro
If you want to display Google map within your canvas app using Image control, you must call Google Maps Static API. More details about Google Maps Static API, please check the following:
https://developers.google.com/maps/documentation/maps-static/dev-guide#Paths
Based on the needs that you mentioned, I afraid that the Google Static Map API could not achieve your needs within PowerApps currently.
As an alternative solution, I think the Bing Maps Imagery API could achieve your needs. I have made a test on my side, please take a try with the following workaround:
Set the Image property of the Image control to following:
"https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/Routes?wp.0="&Location.Latitude&","&Location.Longitude&";64;1&wp.1="&"36.215539,138.203574"&";66;2"&"&key="&txtBingMapsKey.Text
On your side, you should type:
"https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/Routes?wp.0="&Location.Latitude&","&Location.Longitude&";64;1&wp.1="&BrowserGallery1.Selected.Latitute&","BrowserGallery1.Selected.Longitute&&";66;2"&"&key="&txtBingMapsKey.Text
Note: The Latitute and Longitute represents the Latitute/Longtitute value of the Destination address, which selected from your Gallery.
Please check the following article for more details:
https://docs.microsoft.com/en-us/bingmaps/rest-services/imagery/get-a-static-map#get-a-map-with-road-imagery-that-displays-a-route
Best regards,