Skip to content

How to get distance between two nodes in a plugin. #466

Answered by jooste
nl22-nmsu asked this question in Q&A
Discussion options

You must be logged in to vote

You can find a description of the list of attributes of the navigation database on the wiki. All of these are Python lists with the same order. The idea is therefore that you find the index of a named waypoint from navdb.wpid, and then use that index to access waypoint property lists like wplat/wplon. The navdb also has a function getwpindices(self, wpid, reflat, reflon,crit) with which you can find the most appropriate waypoint for a given id (many waypoint names are used multiple times across the globe).

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@nl22-nmsu
Comment options

@jooste
Comment options

Answer selected by nl22-nmsu
@nl22-nmsu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants