web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculating Distance b...
Power Apps
Unanswered

Calculating Distance between Two Points in Forms

(0) ShareShare
ReportReport
Posted on by 95

Hi all,

Attached is a sample copy of a customizable form I'm doing. 

My objective is to calculate the distance between two inputs - Vendor Address and Destination. I understand that this can be done using the BingMap get distance function. However. this will require the data source as BingMap. In this case, my datasource is a form linked to a sharepoint list. How do I achieve my goal?

Alois_0-1602497101034.png


Thanks,
Alois

Categories:
I have the same question (0)
  • Verified answer
    rsaikrishna Profile Picture
    3,703 on at

    @Alois 

     

    Add BingMaps data source to your app. 

     

    In the your SharePoint list form, select data card for Distance control. 

     

    In the default & Update property, place the following formula:

    BingMaps.GetRoute(tbVendorAddress.Text, tbDestination.Text).travelDistance

     

    If you want the Units of distance as well, then you can postfix the above value with distanceUnit

     

    Give a try and share your results.

     

    Regards

    Krishna Rachakonda

    If this reply helped you to solve the issue, please mark the post as Accepted SolutionMarking this post as Accepted Solution, will help many other users to use this post to solve same or similar issue without re-posting the issue in the group. Saves a lot of time for everyone.
  • Alois Profile Picture
    95 on at

    Thank you so much for the help! How do I postfix the units?

  • RamyaSai Profile Picture
    6 on at

    PLease let me know how to do the same based on sharepoint List

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard