mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
radar: fix polylines parsing 🐛, 2.7.2
This commit is contained in:
parent
aa480e01a2
commit
a97e0d31e7
2 changed files with 2 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
"name": "hafas-client",
|
"name": "hafas-client",
|
||||||
"description": "JavaScript client for HAFAS public transport APIs.",
|
"description": "JavaScript client for HAFAS public transport APIs.",
|
||||||
"version": "2.7.1",
|
"version": "2.7.2",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
|
|
@ -39,7 +39,7 @@ const createParseMovement = (profile, locations, lines, remarks, polylines = [])
|
||||||
} else if (m.ani.polyG && Array.isArray(m.ani.polyG.polyXL)) {
|
} else if (m.ani.polyG && Array.isArray(m.ani.polyG.polyXL)) {
|
||||||
let p = m.ani.polyG.polyXL[0]
|
let p = m.ani.polyG.polyXL[0]
|
||||||
// todo: there can be >1 polyline
|
// todo: there can be >1 polyline
|
||||||
res.polyline = polylines[p] && polylines[p].crdEncXY || null
|
res.polyline = polylines[p] && polylines[p].crdEncYX || null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue