cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to use the RouteData?

jlee-71
1-Newbie

How to use the RouteData?

Hello Expert,

I want display the truck route on the truckmash map.

Then I need to use the RouteData, I don't know how to use it.

Please help me!!

1 ACCEPTED SOLUTION

Accepted Solutions
ankigupta
5-Regular Member
(To:jlee-71)

You can also use Route (instead of Planned Route) and correspondingly set Show Route property as true.

And set RouteLocationField property as the location from the dropdown.

The binding will be something like:

View solution in original post

4 REPLIES 4
ankigupta
5-Regular Member
(To:jlee-71)

Hi Ji young Lee​,

The data should be in the Infotable format with one column as Type location.

Bind it with Google map widget and select Planned Route.

Also, select the showPlanned Route as true.

Save and view mashup.

Do let me know if you face any issue.

Thanks,

Ankit Gupta

Hello Ankit Gupta

Thank you for your answer.

But I don't know where do this thing  -> Bind it with Google map widget and select Planned Route.

I tried to bind Getproperties - trackLocation to map widget

ankigupta
5-Regular Member
(To:jlee-71)

Hi Ji young Lee,

You are using a location Property which is a single location data. To show Route we need array of location data.

As I mentioned; we need a property with infotable type with one column as location.

Infotable is like a table in database.

Are you logging these properties in a valueStream.

If yes, you can use QueryPropertyHistory to get the history of Truck location in form of a infotable.

When you will try to bind an infotable to the map; you will see the option for Planned Route.

ankigupta
5-Regular Member
(To:jlee-71)

You can also use Route (instead of Planned Route) and correspondingly set Show Route property as true.

And set RouteLocationField property as the location from the dropdown.

The binding will be something like:

Top Tags