Add optional name property to navigation.course.nextPoint

Open
#676 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
55/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Quiet
Tech stack
json
Domain
api

Research direction

Start with schemas/groups/navigation.json and inspect the nextPoint and previousPoint schema definitions. Add the proposed optional name property to both; the work is done when both schemas describe the human-readable point name as an optional string.

Written by the indexing model from the issue text.

Description

Problem

When navigating to a waypoint or along a route, navigation.course.nextPoint contains position, type, and href, but no human-readable name for the destination point.

Waypoint resources already have name?: string, and route points have names via coordinatesMeta[].name (a required field). But this information is not part of the nextPoint schema, so consumers like NMEA 0183 sentence generators cannot include the waypoint identifier in sentences like APB (field 10) or RMB (fields 4-5).

Proposed change

Add an optional name string property to the nextPoint (and previousPoint) schema in schemas/groups/navigation.json:

"name": {
  "type": "string",
  "description": "Human-readable name or identifier of the point, as provided by the waypoint resource or route point metadata."
}

Context

  • NMEA 0183 APB field 10 (Destination Waypoint ID) requires a waypoint identifier. Without a name in the SK data model, generators must hardcode a placeholder.
  • The server already fetches waypoint resources and route metadata that contain names, but has no spec-defined field to put them in.
  • Related server issue to follow for the implementation side.
Dominant language
JavaScript
Stars
105
Forks
72
Avg merge
11h 49m
Merged PRs (30d)
5

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SignalK/specification

All issues in SignalK/specification

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.