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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 525 Most Valuable Professional

#2
Haque Profile Picture

Haque 308

#3
Kalathiya Profile Picture

Kalathiya 234 Super User 2026 Season 1

Last 30 days Overall leaderboard