A few weeks back I was getting towards the end of a hackathon with a great group out of Tennessee.  They had one “dream ask” after we had finished building their Power App.  They wanted the app to automatically calculate the mileage their IT support technicians traveled from one site location to the next.  I had never broached this idea in an application I had built in the past, but I said let’s see what we can do.

Well, the good news is Power Apps has a Bing connector that can tap into maps that can do all sorts of things.  One of those is exactly what they wanted, to calculate the distance between two different sites. We started basic by typing in the address of one school location in a text input control and the address of another school location in a second text input control.  From there we wired up a button that used the Bing connector to calculate the driving distance in miles.

Once we figured out how to get that to work, we got more ambitious and said let’s store these site locations in our data source and have our users select them from a drop-down box in a form to calculate the distance.  From there, we took it over to a form in our app to store the mileage calculation.  Now, at the end of the month, we can run a report for each technician to submit their mileage for reimbursement.  I’m sure the technicians are going to be thrilled with this as they don’t have to calculate the mileage and submit on their own.  The department in charge of reimbursement might not be as happy as more mileage reimbursement forms will come through 😉

To get an idea of how this can be done in a canvas app check out this YouTube video I made after we finished our hackathon together. 

Some things to note if you decide to implement this feature in a Canvas app of yours is the connector is still in preview and an API key will need to be generated.  A blog from Rejeeve Pentyala on how to set up your Bing Portal account and generate the API key can be found HERE.

Thanks Rejeeve for the blog, you were a lifesaver during my hackathon.

Stay tuned to our channel for more videos in my power platform series! Click Here To View 

To follow my blog, The Algebra Teacher Powers to B.I. click here

If you want or need to increase your Power BI skills, Pragmatic Works On-Demand Learning platform is the perfect place to do it. Our 17 Power BI courses will turn you into a Power BI expert by providing in-depth instruction on all of the capabilities that Power BI provides. Click the link below to get started with a FREE trial! 

 

Start a 7-day Free Trial
bg-img14.jpg

Join Our Blog

Join other Azure, Power Platform and SQL Server pros by subscribing to our blog.

Leave a comment

Posts by Topic

see all

Recent Articles

Popular Articles