Author Topic: How to represent summits / valleys in waypoints via Locus API  (Read 1265 times)

Offline Radim V

  • Newbie
  • *
  • Posts: 5
    • View Profile
Hallo Locus team,
I am developing two add ons with Locus API. For both of them, I need to represent summits and valleys in the hierarchy of classes around Point. First I need to encode this generic SUMMIT / VALLEY enumeration and return it as a new Waypoint to Locus (using Locus API, not app import). (Many Garmin Edge devices have the ability to tell me "now you are going to be mostly climbing / descending for 5 km / 10 minutes"). I cannot figure out how to properly represent this summit valley classification.
Then I need to decode it from the data containers that Locus uses around Waypoints and map them together with all other enumerations from PointRteAction to a collection of types that Garmin's fitSDK understands. I have been previously working with .tcx files. Locus imports them ok, it assigns nice icons to both summits and valleys and also parses other data from <coursepoint> element like name and description and adds PASS_PLACE PointRteAction. Of course I could encode summits / valleys in the name e.t.c but having those two add ons related in such a tightly coupled way would be very bad. I can provide any details and data needed. Thanks, Radim.
« Last Edit: December 11, 2018, 14:16:14 by Radim V »
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 11476
  • Thanked: 323 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: How to represent summits / valleys in waypoints via Locus API
« Reply #1 on: December 12, 2018, 18:02:28 »
Good day Radim,
little complicated task for me to perfectly understand your needs :).

Maybe we should discuss it in Czech over email? If so, write me please on jiri.mlavec@asamm.com, thanks. Otherwise try to describe me in a few short steps, what you want to do.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!
 

Offline Radim V

  • Newbie
  • *
  • Posts: 5
    • View Profile
Re: How to represent summits / valleys in waypoints via Locus API
« Reply #2 on: December 13, 2018, 11:33:51 »
Ahh, sorry, will write.