mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-04-30 11:40:04 +03:00
radar: fix polylines parsing 🐛
This commit is contained in:
parent
7b5f13524d
commit
aa480e01a2
2 changed files with 2 additions and 2 deletions
2
index.js
2
index.js
|
@ -341,7 +341,7 @@ const createClient = (profile, request = _request) => {
|
||||||
if (!Array.isArray(d.jnyL)) return []
|
if (!Array.isArray(d.jnyL)) return []
|
||||||
|
|
||||||
let polylines = []
|
let polylines = []
|
||||||
if (opt.polylines && Array.isArray(d.common.polyL)) {
|
if (opt.polylines && d.common && Array.isArray(d.common.polyL)) {
|
||||||
polylines = d.common.polyL
|
polylines = d.common.polyL
|
||||||
}
|
}
|
||||||
const parse = profile.parseMovement(profile, d.locations, d.lines, d.remarks, polylines)
|
const parse = profile.parseMovement(profile, d.locations, d.lines, d.remarks, polylines)
|
||||||
|
|
|
@ -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.0",
|
"version": "2.7.1",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"files": [
|
"files": [
|
||||||
"index.js",
|
"index.js",
|
||||||
|
|
Loading…
Add table
Reference in a new issue