mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-04-20 23:23:56 +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 []
|
||||
|
||||
let polylines = []
|
||||
if (opt.polylines && Array.isArray(d.common.polyL)) {
|
||||
if (opt.polylines && d.common && Array.isArray(d.common.polyL)) {
|
||||
polylines = d.common.polyL
|
||||
}
|
||||
const parse = profile.parseMovement(profile, d.locations, d.lines, d.remarks, polylines)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "hafas-client",
|
||||
"description": "JavaScript client for HAFAS public transport APIs.",
|
||||
"version": "2.7.0",
|
||||
"version": "2.7.1",
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"index.js",
|
||||
|
|
Loading…
Add table
Reference in a new issue