cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
shemeer
Frequent Visitor

Fleet management with live tracking

Hi Experts

 

Is there a way to display multiple parties travelling to separate locations in bing maps in power apps?

5 REPLIES 5
BCBuizer
Super User
Super User

Hi @shemeer ,

 

For sure this is possible. The interesting part will be how to get your data though. My idea would be to have the tracked parties running a logger app on a mobile device that saves the geolocation of the device on a regular basis, for instance by using a repeating timer and adding something like the below in the OnTimerStart property:

Patch(
    UserLocation, 
    LookUp(
        UserLocation, 
        Email=User().Email
    ), 
    {
        LastUpdate: Now(), 
        Lattitude: Location.Latitude, 
        Longitude: Location.Longitude
    }
)

 

If you have this data saved in a data source, you can then use this in a map control as plot points: https://www.youtube.com/watch?v=iw1ACuJB9cY



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.
shemeer
Frequent Visitor

Thank you for the reply, Apologies that my question was not specific enough. I have already collected the GPS data from different sources running across the country to different destinations. My issue is displaying this data on a map. I am able to display one gps info and plan route for that vehicle. My problem is that at any time I have more than 2 vehicles running to separate destinations. For example flight A going to New York from uk and flight B going to Australia from UAE at the same time. How could we display both these data in a map separately with route tracking?

BCBuizer
Super User
Super User

Hi @shemeer ,

 

Perhaps you can describe what the data you have looks like?

 

In any case this documentation may provide you with further hints on how to proceed:

https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/geospatial-component-map#pin-properti...



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

@BCBuizer , Thank you for for the reply. what I need is to display multiple disconnected routes in the maps

 

Below is an use case sample (But not in power apps)

 

https://samples.bingmapsportal.com/directions/display-multiple-routes

 

I am trying to achieve the above functionality in power apps. If not an Iframe on the power apps portal is fine as well.. If you could guide on that ..

 

Again Thank you for your time

BCBuizer
Super User
Super User

Hi @shemeer ,

 

I don't think it is possible to display multiple routes in the native Power Apps map control. The iframe option may indeed be the way to go.



Did you like my post? Please give it a thumbs up! Did I resolve your issue? Please click Accept as Solution to close the topic and so other members of the community can find solutions more easily.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,014)