Forum Discussion
johnjohn-Peter
Dec 10, 2023Iron Contributor
Calculate the distance between 2 locations (latitude & Latitude) using BingMaps.GetRouteV2
I have an Asset with latitude & Latitude and i am getting it using this formula:- Set(relatedAsset,LookUp(Assets,ID=LookUp('Asset Faces',ID= LookUp('ticket Details',ID=If(IsBlank(varticketID),var...
Rob_Elliott
Dec 10, 2023Bronze Contributor
johnjohn-Peter for your last point make sure you have refreshed the datasource in your app. For my app, I got the distance using the following:
Set(distance, BingMaps.GetRoute((txtStartStreet.Text&", "&txtStartTown.Text), (txtEndStreet.Text&", "&txtEndTown.Text), {distanceUnit: "Mile" }))
Rob
Los Gallardos
Microsoft Power Automate Community Super User.
Principal Consultant, SharePoint and Power Platform WSP (and classic 1967 Morris Traveller driver)
johnjohn-Peter
Dec 10, 2023Iron Contributor
Rob_Elliott Thanks for the reply, do you know how to pass Latitude and Longitude instead of street names? i can not find any relevant documentations regarding this . thanks