Author Topic: Locus Api - getTargetAzim  (Read 355 times)

Offline zigzag

  • More than Newbie
  • *
  • Posts: 18
  • Thanked: 6 times
    • View Profile
  • Device: Sony Z1 Compact
Locus Api - getTargetAzim
« on: March 27, 2017, 21:26:11 »
Hello,

I'm not sure, how it works.
I use the getTargetAzim() function in the AddonPebble app to show an arrow the direction on the Pebble watch.

When I try it I realized:

- Guide on: direction to the destination point,
lastUpdate.getGuideTypeWaypoint().getTargetAzim()

- Navigate to: direction to the action point,
lastUpdate.getGuideTypeTrack().getTargetAzim()

- Guidance (guidance along the track): direction to the next track point.
lastUpdate.getGuideTypeTrack().getTargetAzim()

Is it true?
http://forum.locusmap.eu/index.php?topic=5096.msg47029#msg47029

Thanks
 

Offline menion

  • Administrator
  • Professor of Locus
  • *****
  • Posts: 10108
  • Thanked: 73 times
    • View Profile
    • http://www.asamm.com
  • Device: SGS7
Re: Locus Api - getTargetAzim
« Reply #1 on: March 29, 2017, 13:39:16 »
Hello zigzag,
this is quite good question. I think that in these values is quite big mess!

So wait please to next Locus Map version. Distance and azim in navigation/guidance mode should be logically values to next active target. So in case of navigation, it should be current waypoint with navigation order, in case of guidance without waypoints, it should be point where guidance arrow/line point.

Will be improved in next version of Locus Map. Maybe it still won't be perfect. Feel free to give me more info in such case, thanks.
Ideas, wishes, problems
Advanced topics, public discussion, sharing of knowledges, testing beta versions: you're here!