Skip to main content
1-Visitor
June 6, 2017
Solved

Embed Location on Things

  • June 6, 2017
  • 1 reply
  • 1754 views

Hello

I've not found this information anywhere but apart from setting a property of the type Location in a Thing, is there any location information already embed into a Thing by default, if that Thing had some sort of GPS sensor? If so how would you go about getting to it via the API?

Thank you in advance

    Best answer by ankigupta

    Hi Francisco Siviero​,

    Yes, Location will have to be set as a Property in a Thing. You can create your own Thing template which contain a location property. Then all the things created from that Thing template will inherit the location property.

    For the second part of the question; which SDK are you using? Location property can be sent to ThingWorx similar to other properties. Please check PTC Jave SDK Guide for more details.

    I hope it helps.

    1 reply

    ankigupta5-Regular MemberAnswer
    5-Regular Member
    June 7, 2017

    Hi Francisco Siviero​,

    Yes, Location will have to be set as a Property in a Thing. You can create your own Thing template which contain a location property. Then all the things created from that Thing template will inherit the location property.

    For the second part of the question; which SDK are you using? Location property can be sent to ThingWorx similar to other properties. Please check PTC Jave SDK Guide for more details.

    I hope it helps.

    fsiviero1-VisitorAuthor
    1-Visitor
    June 8, 2017

    Hello Ankit

    If there needs to be a property set for the Thing itself than I know where to get it Thank you for your answer, it definitely helped.