Skip to main content
1-Visitor
May 2, 2019
Solved

Thingworx and Google Maps Modelling Data Structure

  • May 2, 2019
  • 4 replies
  • 2022 views

Hello guys,

 

I'd like some help with some questions I'm facing based on the GoogleMaps Extension and the Thingworx data structure and how they interact with each other:

- How to store data such as routes defined by the user in the GoogleMaps Widget;

- Track vehicles circulating along these routes;

- User defined stops added that are independent (multiples routes can have the same stop) and how to store them.

Basically, I need help understanding WHAT these entities will be and HOW they will be stored (remembering that they will be defined by the user).

Best answer by posipova

it might be helpful to refer to the widget's property table and definitions in the helpcenter: 

http://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/#page/ThingWorx%2FHelp%2FMashup_Builder%2...

 

The route data is an infotable so  you may consider using a data table, for example, to store the routes. There are multiple ways to go around this, but you may also create a custom service defining the vehicles (Things) using the routes.

4 replies

posipova20-TurquoiseAnswer
20-Turquoise
May 3, 2019

it might be helpful to refer to the widget's property table and definitions in the helpcenter: 

http://support.ptc.com/help/thingworx_hc/thingworx_8_hc/en/#page/ThingWorx%2FHelp%2FMashup_Builder%2...

 

The route data is an infotable so  you may consider using a data table, for example, to store the routes. There are multiple ways to go around this, but you may also create a custom service defining the vehicles (Things) using the routes.

tscur1-VisitorAuthor
1-Visitor
May 7, 2019

Thank you for your response posipova!

Yes, I thought about using a data table to store the routes, but how can I use it to let the user define these routes? A vehicle can have different routes, and these vehicles have a group of stops they have to make, and also they can have similar stops (routes that can cross each other). 

20-Turquoise
May 15, 2019

apologize for the delayed response.

 

Considering each route is a set of data points (infotable), I would think you could store them as a property (for example). Write a custom service that assigns/sets the route?