Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Bing Maps connector : Transit option

(1) ShareShare
ReportReport
Posted on by 4

I'm using the Bing Maps connector for calculating travel distances and travel duration, for the default 'Driving' travelMode it works fine, but for the 'Transit' travelMode I just can't get it to work.

I'm not sure what the cause is, but it might be the dateTime property, which is required when using 'Transit' travelMode.

 

I use now something like this :

 

Set(
dist_ov,
BingMaps.GetRoute(
Gallery2_1.Selected.persoon.'Primair adres: Straat' & " " & Gallery2_1.Selected.persoon.'Primair adres: Plaats',
Gallery1_1.Selected.crmrow_accountid.address2_line1 & " " & Gallery1_1.Selected.crmrow_accountid.address2_city,{travelMode:"Transit",dateTime:DateTimeValue("10/11/2020 1:50:24.765 PM","nl"),timeType:"Arrival"}
)
);
 
Which results in a request as this :
 
{
"method": "POST",
"headers": {
"x-ms-user-agent": "PowerApps/3.19123.15 (Web AuthoringTool; AppName=xxxxxxxxxxxxxxxxxxxxxxxx)",
"x-ms-client-session-id": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"x-ms-client-request-id": "xxxxxxxxxxxxxxxxxxxxxxxxxxx",
"Accept-Language": "en-US",
"Accept": "*/*",
"Cache-Control": "no-cache, no-store",
"x-ms-request-method": "GET",
"x-ms-request-url": "/apim/bingmaps/xxxxxxxxxxxxxxxxxxxxxx/REST/V1/Routes/Driving?wp.0=Achter+de+Carmel+NIJMEGEN&wp.1=Griffioenlaan+UTRECHT&travelMode=Transit&dateTime=10%2F11%2F2020+1%3A50+PM&timeType=Arrival"
}
}
 
Anyone any ideas ?
Categories:
  • LowCodeV_R Profile Picture
    15 on at
    Re: Bing Maps connector : Transit option

    Did anyone find a solution for this issue?

  • Rob Driessen Profile Picture
    4 on at
    Re: Bing Maps connector : Transit option

    @v-siky-msft 

    Thanks for your reply, but makes no difference, still have the same problem, I get the same travel duration for the transit option as I get for the (default) driving option.

  • v-siky-msft Profile Picture
    on at
    Re: Bing Maps connector : Transit option

    @robdriessen 

     

    The seconds in DateTimeValue function is not supported as a decimal. Please try this:

     

    Set(
    dist_ov,
    BingMaps.GetRoute(
    Gallery2_1.Selected.persoon.'Primair adres: Straat' & " " & Gallery2_1.Selected.persoon.'Primair adres: Plaats',
    Gallery1_1.Selected.crmrow_accountid.address2_line1 & " " & Gallery1_1.Selected.crmrow_accountid.address2_city,{travelMode:"Transit",dateTime:DateTimeValue("10/11/2020 1:50:24 PM","nl"),timeType:"Arrival"}
    )
    );
    Sik

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard