4 Replies Latest reply on Apr 20, 2017 6:24 AM by Ankit Gupta RSS

    How to use the RouteData?

    jlee-7 Newbie

      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!!

        • Re: How to use the RouteData?
          Ankit Gupta Collaborator

          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

            • Re: How to use the RouteData?
              jlee-7 Newbie

              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

                • Re: How to use the RouteData?
                  Ankit Gupta Collaborator

                  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.

                  • Re: How to use the RouteData?
                    Ankit Gupta Collaborator

                    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: