Skip to main content
1-Visitor
March 8, 2017
Solved

Animation In Thingworx

  • March 8, 2017
  • 3 replies
  • 4727 views

Hello,

Is there a way I can animate the google map widget to track the location of the car. Currently, I am working on a project for car race tracking, so after each 10 sec, I will be getting a set of data which will have a timestamp and latitude & longitude. I need the structure of track and at each second I want the location of the car. So ideally the track should be visible(track of the race course at each point need to be mapped with google map) and in the background, the google map should work in such a way that it should track the car location over the racing-track.

Best answer by ankigupta

Hi isha shrivastava​,

There are two parts of your questions:

1. Creating the Route: You can try it with Planned Route and Actual Route or even Region as Pai Chung said.

2. For Tracking the Car; You will have to Bind the Data in the Google Map widget. Then you will have to call the service every 1 minute to update the value, you can do it using Refresh Widget.

3 replies

20-Turquoise
March 8, 2017

Hi isha shrivastava​, such a functionality of google maps widget is not available.

22-Sapphire I
March 8, 2017

You might be able to do something with Planned Route and Actual Route or even Region for the Track

1-Visitor
March 9, 2017

Thanks for reply, Do I have to create service which give infotable as outpur for Planned Route. What are the fields that infotable should contains? As Planned Route is the target to which we are mapping infotable right?

5-Regular Member
March 9, 2017

It will take the Input as Infotable which contains the Set of Location DataType which will define your Route.

ankigupta5-Regular MemberAnswer
5-Regular Member
March 9, 2017

Hi isha shrivastava​,

There are two parts of your questions:

1. Creating the Route: You can try it with Planned Route and Actual Route or even Region as Pai Chung said.

2. For Tracking the Car; You will have to Bind the Data in the Google Map widget. Then you will have to call the service every 1 minute to update the value, you can do it using Refresh Widget.

1-Visitor
March 9, 2017

Thanks Ankit Gupta​ for reply, I think its helpful... I need one more help how can I do Region formatting. I have to show the track between the markers in different color or  path traced by the car in 10 sec . Is Region formatting the right way to achieve this?. I have mapped all data of service(infotable as output) to region data. I am not able to see any locations on map. I am able to see route and planned route data using same service.

22-Sapphire I
March 9, 2017

My thought was that Route and Planned Route would've sufficed.

Regions takes an InfoTable of regions which are described by an info table field ie a table in a table where the parent table is a list of regions and the inner table is the location points that draws the region.