mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 07:09:35 +02:00
add todos; readme: fix link, changelog 📝; 5.15.0
This commit is contained in:
parent
0690724d1e
commit
d86b359cb7
5 changed files with 22 additions and 3 deletions
|
@ -1,5 +1,20 @@
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## `5.15.0`
|
||||||
|
|
||||||
|
- 7106d24a add [*VOS* profile](../p/vos)
|
||||||
|
- 2ae6a9a4 add [*AVV* profile](../p/avv)
|
||||||
|
- f47343df add [*BART* profile](../p/bart)
|
||||||
|
- 2853fb04 add [*VVT* profile](../p/vvt)
|
||||||
|
- 0690724d add [*VKG* profile](../p/vkg)
|
||||||
|
- d69d2530 add `profile.remarksGetPolyline` flag
|
||||||
|
- 51af991e `lib/request`: add `profile.(auth|client|ext|ver)` to request
|
||||||
|
- 4ee062a1 `lib/request`: allow string `profile.salt`
|
||||||
|
- c260e34f DB: parse `gridL[].itemL[].remL[]` 🐛
|
||||||
|
- 33f398bd `parseWarning`: use `fromLocations[0]`
|
||||||
|
|
||||||
|
[🏷 `5.15.0`](https://github.com/public-transport/hafas-client/releases/tag/5.15.0), 2021-01-26
|
||||||
|
|
||||||
## `5.14.0`
|
## `5.14.0`
|
||||||
|
|
||||||
- ad6cfd22/3407ad6b/d017e627/02af67e2 add [*mobil.nrw* profile](../p/mobil-nrw)
|
- ad6cfd22/3407ad6b/d017e627/02af67e2 add [*mobil.nrw* profile](../p/mobil-nrw)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "hafas-client",
|
"name": "hafas-client",
|
||||||
"description": "Client for HAFAS public transport APIs.",
|
"description": "Client for HAFAS public transport APIs.",
|
||||||
"version": "5.14.0",
|
"version": "5.15.0",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
"em0lar <hello@em0lar.de>",
|
"em0lar <hello@em0lar.de>",
|
||||||
"Adrian Böhme <hannsadrian@gmail.com> (https://github.com/Adwirawien)"
|
"Adrian Böhme <hannsadrian@gmail.com> (https://github.com/Adwirawien)"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/public-transport/hafas-client/tree/5.14.0",
|
"homepage": "https://github.com/public-transport/hafas-client/tree/5.15.0",
|
||||||
"repository": "public-transport/hafas-client",
|
"repository": "public-transport/hafas-client",
|
||||||
"bugs": "https://github.com/public-transport/hafas-client/issues",
|
"bugs": "https://github.com/public-transport/hafas-client/issues",
|
||||||
"funding": {
|
"funding": {
|
||||||
|
|
|
@ -10,6 +10,8 @@ const findInTree = createFindInTree([
|
||||||
'**.msgL', '**.remL',
|
'**.msgL', '**.remL',
|
||||||
])
|
])
|
||||||
|
|
||||||
|
// there are circular references (e.g. warning -> loc -> warning)
|
||||||
|
// todo: parse either on-the-fly or in a recursive/iterative process
|
||||||
const parseCommonData = (_ctx) => {
|
const parseCommonData = (_ctx) => {
|
||||||
const {profile, opt, res} = _ctx
|
const {profile, opt, res} = _ctx
|
||||||
const c = res.common || {}
|
const c = res.common || {}
|
||||||
|
|
|
@ -28,6 +28,8 @@ const parseMovement = (ctx, m) => { // m = raw movement
|
||||||
}
|
}
|
||||||
|
|
||||||
if (m.ani) {
|
if (m.ani) {
|
||||||
|
// todo: ani.dirGeo, ani.fLocX, ani.proc, ani.procAbs, ani.state, ani.stcOutputX
|
||||||
|
|
||||||
if (Array.isArray(m.ani.mSec)) {
|
if (Array.isArray(m.ani.mSec)) {
|
||||||
for (let i = 0; i < m.ani.mSec.length; i++) {
|
for (let i = 0; i < m.ani.mSec.length; i++) {
|
||||||
res.frames.push({
|
res.frames.push({
|
||||||
|
|
|
@ -28,7 +28,7 @@ npm install hafas-client
|
||||||
|
|
||||||
### with [react-native](https://facebook.github.io/react-native/)
|
### with [react-native](https://facebook.github.io/react-native/)
|
||||||
|
|
||||||
`hafas-client` as well its dependencies use [Node-builtin modules](https://nodejs.org/dist/latest/docs/api/) and [Node globals](https://nodejs.org/api/globals.html). To be able to use it within react-native, follow [the instructions at `node-libs-react-native`](https://github.com/parshap/node-libs-react-native/blob/3/README.md#usage).
|
`hafas-client` as well its dependencies use [Node-builtin modules](https://nodejs.org/dist/latest/docs/api/) and [Node globals](https://nodejs.org/api/globals.html). To be able to use it within react-native, follow [the instructions at `node-libs-react-native`](https://github.com/parshap/node-libs-react-native/blob/master/README.md#usage).
|
||||||
|
|
||||||
|
|
||||||
## API
|
## API
|
||||||
|
|
Loading…
Add table
Reference in a new issue