-
Matt Ranostay authored
Add more parameter documentation to position event in README.md Bug-AGL: SPEC-2880 Change-Id: Iaabc355752a24fd931b86befdb80738faf7c2dca Signed-off-by:
Matt Ranostay <matt.ranostay@konsulko.com>
Matt Ranostay authoredAdd more parameter documentation to position event in README.md Bug-AGL: SPEC-2880 Change-Id: Iaabc355752a24fd931b86befdb80738faf7c2dca Signed-off-by:
Matt Ranostay <matt.ranostay@konsulko.com>
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
README.md 1.72 KiB
Navigation Service
Overview
Navigation service keeps track of application data that allows other clients to share location, waypoints, and state between each other.
Verbs
Name | Description | JSON Response |
---|---|---|
subscribe | subscribe to an navigation service | Request: {"value": "status"} |
unsubscribe | unsubscribe to an navigation service | Request: {"value": "status"} |
broadcast_status | broadcast status event to other clients | Request: {"state": "stop"} |
broadcast_position | broadcast position event to other clients | See position Verb section |
broadcast_waypoints | broadcast waypoints events to other clients | See waypoints Verb section |
broadcast_position Verb
Populate same data referenced in position Event section for the event
broadcast_waypoints Verb
Populate same data referenced in waypoints Event section for the event
Events
Name | Description |
---|---|
status | status of the navigation engine |
position | current route or car position event |
waypoints | waypoints for routing engine |
position Event
{ "points": [ { "position": "car", "latitude": 36.12906, "longitude": -115.17908 "direction": 273.0, "distance": 1530.45 } ] }
waypoints Event
{ "points": [ { "latitude": 36.12906, "longitude": -115.17908 } ] }