From e7fef658b2ce5fa1058473fc264af7bf3d0fc43f Mon Sep 17 00:00:00 2001 From: SebEckl <48828946+SebEckl@users.noreply.github.com> Date: Sat, 26 Jun 2021 19:20:59 +0200 Subject: [PATCH] Update README.md --- README.md | 58 +------------------------------------------------------ 1 file changed, 1 insertion(+), 57 deletions(-) diff --git a/README.md b/README.md index 61de4c8..26dd41f 100644 --- a/README.md +++ b/README.md @@ -2,61 +2,5 @@ ## Overview -Navigation service keeps track of application data that allows other clients to share location, waypoints, -and state between each other. +OSRM Service is responsible for the communication with the OSRM Server. -## 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 - -<pre> -{ - "points": [ - { - "position": "car", - "latitude": 36.12906, - "longitude": -115.17908 - "direction": 273.0, - "distance": 1530.45 - } - ] -} -</pre> - -### waypoints Event - -<pre> -{ - "points": [ - { - "latitude": 36.12906, - "longitude": -115.17908 - } - ] -} -</pre> -- GitLab