@mdevaney
Thank you for posting your this blog to show a route in powerapps.
My only issue is I need to convert it to Miles not Kilometers.
I am not sure how to do this with your code
With(
{
varLengthMeters: map_Routes.RouteDirection.LengthInMeters
},
If(
varLengthMeters>1000000, Text(varLengthMeters/1000, "#,##0")&" miles",
varLengthMeters>0, Text(varLengthMeters/1000, "#,##0.0")&" miles",
Text(varLengthMeters, "0")&" m"
)
)
Can you please help me get this working!!!