GPS internals: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 46: Line 46:
;nearest
;nearest
: load the nearest waypoint (of a type) into the scratch. The following parameters are supported:
: load the nearest waypoint (of a type) into the scratch. The following parameters are supported:
: ;max-results
: <tt>max-results</tt> - maximum number of nearby waypoints to load. Default is 1, larger values are supported, but there may be noticeable delays if this is set to 100 or similar - testing is needed in this area.
: : maximum number of nearby waypoints to load. Default is 1, larger values are supported, but there may be noticeable delays if this is set to 100 or similar - testing is needed in this area.
: <tt>type</tt> - a type string. 'any', 'all' or an empty value mean all types
: ; type
: : a type string. 'any', 'all' or an empty value mean all types


;search
;search
: load waypoints by matching ident. The following parameters are supported:
: load waypoints by matching ident. The following parameters are supported:
: ;type
: <tt>type</tt> - as for 'nearest'
: : as for 'nearest'
: <tt>query</tt> - the string to search on
: ;query
: <tt>order-by-range</tt> - a flag indicating if matches should be returned sorted by distance (the default) or alphabetically
: : the string to search on
: <tt>exact</tt> - a flag indicated if matches must be exact (true) or partial (false).
: ; order-by-range
: : a flag indicating if matches should be returned sorted by distance (the default) or alphabetically
: ;exact
: : a flag indicated if matches must be exact (true) or partial (false). In
;search-name
;search-name
Line 79: Line 73:
;route-insert-before
;route-insert-before
: insert the current scratch data into the route, ''before'' the waypoint at the supplied index.
: insert the current scratch data into the route, ''before'' the waypoint at the supplied index.
: ;index
: <tt>index</tt> - the route index to insert before. If this is negative, the waypoint will be appended to the route.
: : the route index to insert before. If this is negative, the waypoint will be appended to the route.


;route-insert-after
;route-insert-after
: insert the current scratch data into the route, ''after'' the waypoint at the supplied index.
: insert the current scratch data into the route, ''after'' the waypoint at the supplied index.
: ;index
: <tt>index</tt> - the route index to after before. If this is negative, the waypoint will be appended to the route.
: : the route index to after before. If this is negative, the waypoint will be appended to the route.


;route-delete
;route-delete
: delete the route waypoint at the specified index
: delete the route waypoint at the specified index
: ;index
: <tt>index</tt> - the route index to delete
: : the route index to delete


== Configuration ==
== Configuration ==
10

edits

Navigation menu