https://github.com/dride/dride-ws
Node-Express server for dride
https://github.com/dride/dride-ws
Last synced: about 1 year ago
JSON representation
Node-Express server for dride
- Host: GitHub
- URL: https://github.com/dride/dride-ws
- Owner: dride
- Created: 2016-10-30T12:48:12.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-03-19T13:00:15.000Z (about 8 years ago)
- Last Synced: 2025-02-25T07:04:28.050Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://dride.io
- Size: 10.3 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://travis-ci.org/dride/dride-ws)
[](https://badge.fury.io/js/dride-ws)
# dride-ws
This repository is used for the on board Node server. It is a submodule of [dride-core](https://github.com/dride/dride-core)
# Api reference
---
# ADAS
###getRoad()
###### Return: [(int x1,int y1), (int x2,int y2), (int x3,int y3), (int x4,int y4)]
Represent the left roadn lane a line from x1,y1 to x2,y2 and x3,y3 to x4,y4 correspondly
###getFrontCar()
###### Return: [(int x1,int y1), (int x2,int y2)]
Represent a line from the left corner of the object to the right
###roadAngle()
###### Return: int angle
A number between 0-360 that represent the road angle.
###getSpeed()
###### Return: int speed
A number between 0-250 that represent the current speed.
###getCurrenPosition()
###### Return: (real lat, real lon)
A point that represent the current latitude and longitude.
---
# Speech
###startDictation()
###### Return: (string text)
Represent the text that was converted from the voice
###say(string text, string langCode)
###### Return: ()
Will speak the text
---
# DVR
###getVideo(timestamp fromTime, timestamp toTime)
###### Return: (string videoUrl)
The url for the video requested
---
git submodule update --remote --merge