Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

BING MAPS - Show ROUTE MAP, based on address, not latitude & longitude

Like (0) ShareShare
ReportReport
Posted on 19 Mar 2021 12:28:54 by 2

The premise:

I'm building an app for my nonprofit that calculates the distance travelled for a work visit. From the amount of kilometres driven, we then calculate the expenses we need to pay out to colleagues. 

 

What I've got:

I managed to make this all work using 'Bingmaps.Getroute'. 

For this part I only needed 2 text inputs with addresses. I noticed they only needed to fill out a minimum of info, that being street name and locality, with house number and postal code being optional (we don't use states).

Kilometres * price per kilometre = amount to receive

Easy peasy

GREAT! 

 

What I can't get done:

As this Getroute calculation just puts out a number of km's, and wanted to show this route on a map, so they can double check if it matches the reality of the route they travelled. 

 

What I've tried:

The Getmap and GetmapV2 fuctions only seem to work with latitude an longtitude.

The Getroute just calculates, I can't get it to show a map in a image frame

 

I also found this URL

https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/Routes?wp.0=Seattle,WA;64;1&wp.1=Redmond,WA;66;2&key={BingMapsAPIKey} 

But for this I need to separate street, house number, postal code and locality in different datacards

 

Help?! 

As Bing is clearly  able to get a route very easily from a string of info in one text field, how do I get it to translate that into a map? What am I missing? I've googled myself cross-eyed, and keep getting the options to get a static map, or to calculate with coordinates. I'm getting heart palpitations, please help.

 

Categories:
  • Community Power Platform Member Profile Picture
    on 25 Aug 2021 at 05:46:52
    Re: BING MAPS - Show ROUTE MAP, based on address, not latitude & longitude

    I solved it using

    "https://dev.virtualearth.net/REST/v1/Imagery/Map/Road/Routes?wp.0= " & AddressInput1.SelectedLatitude & ", " & AddressInput1.SelectedLongitude & ";64;1&wp.1= " & AddressInput2.SelectedLatitude & " , " & AddressInput2.SelectedLongitude & ";66;2&key={Bingkey}"

     

    JHS2020_0-1629870373410.png

     

  • Community Power Platform Member Profile Picture
    on 24 Aug 2021 at 18:25:32
    Re: BING MAPS - Show ROUTE MAP, based on address, not latitude & longitude

    It says bingmap in the left corner at the picture. 

  • KvB1 Profile Picture
    1,596 on 24 Aug 2021 at 14:20:20
    Re: BING MAPS - Show ROUTE MAP, based on address, not latitude & longitude

    I doubt that that is using BingMaps.

     

    I would like to be proven wrong though, since I faced a similar issue myself (actually it was for the same purpose as what you did). I just added an option for users to manually enter the distance they drove if they didn't agree with the suggested distance from the GetRoute. Even if its possible to show the exact map on the route, I don't think there would be a way for a user to change it while leaving the start and end point intact, so I didn't really see the point of it.

  • Community Power Platform Member Profile Picture
    on 24 Aug 2021 at 13:55:20
    Re: BING MAPS - Show ROUTE MAP, based on address, not latitude & longitude

    BingMaps that you suggest is only for one address? I would like to get a picture of the route, just as they have done here https://www.youtube.com/watch?v=9SZ35C_BU2g

    at 5.58

  • KvB1 Profile Picture
    1,596 on 24 Aug 2021 at 12:23:31
    Re: BING MAPS - Show ROUTE MAP, based on address, not latitude & longitude

    The only solution I've seen for this is to have an automate generate a picture of the route, then send that back to powerapps.

     

    You can also use BingMaps.GetLocationByAddress( this will return longitude and latitude

  • Community Power Platform Member Profile Picture
    on 24 Aug 2021 at 12:19:18
    Re: BING MAPS - Show ROUTE MAP, based on address, not latitude & longitude

    Did you solve your issue, I am sitting with the same one

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 89 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 58

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 42 Super User 2025 Season 1

Overall leaderboard