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 / Speed calculation base...
Power Apps
Unanswered

Speed calculation based on Acceleration

(0) ShareShare
ReportReport
Posted on by 2,944

Hi

 

Recently, too many over speed buses involved in accident (in my Country) and I wish to develop simple apps for traveller to easily email vehicle speed, location, .. to authority to be alert of these.

 

I wish to use:

 

Acceleration.X,. Acceleration.Y and Acceleration.Z & Location.

However, after referring back to my knowledge in v=u+at, ... and internet browsing, I can;t find how can I use these to get the ongoing vehicle speed (as of GPS maps, such as WIn Map, Here Map..which calculate speed).

 

Any clues?

 

TQ

Categories:
  • v-yamao-msft Profile Picture
    Microsoft Employee on at

    Hi Hpkeong,        

     

    We can use Acceleration.X, Acceleration.Y and Acceleration.Z to get “a”, but it seems that currently, PowerApps don’t have any function to get ongoing speed. You could submit your idea at “PowerApps Ideas”:https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas


    Best regards,
    Mabel Mao

  • Steelman70 Profile Picture
    873 on at

    Hello, I think a much more accurate measure of speed would be the distance travelled in a certain time.

    You could have a timer control that every X seconds/minutes records the GPS location with Location.Latitude and Location.Longitude to a table, either in a data source or in a collection.  You can then use this data to calculate the average speed and smooth out any GPS glitches.  Unfortunately PowerApps does not yet have trigonometric functions, but you can use linear approximations for your latitude for example, the accuracy should be enough for your purposes.  Please let me know if you require more details.

    Of course the issue is that you do not travel in a straight line, but using accelerometers to keep track of accelerations can introduce errors if you do not know the initial speed or if your acceleration does not vary smoothly with time (i.e. if you break hard or if you drop your telephone).  In any case this approach should give you a minimum average speed, and if this is already above the limit, then you know that the actual speed is likely to be well above the limit.

  • hpkeong Profile Picture
    2,944 on at

    Hi MM & SM:

     

    Thanks for input.

    In fact, I recalled all the formulas of calculating SPEED from secondary school Physics and Maths.

    I know the contraint and those v1=v2+at, v=d/t,.... may not be accurate with just mere Acc.X, Acc.Y, Acc.Z and Location.

    Anyhow, I will try to consult my Maths Teacher on any possibility of using any complex Mathematical calculation and share here.

     

    Have a nice day.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard