From 8cd243e1330d1faa6856f29fc5feb57ad985df2d Mon Sep 17 00:00:00 2001
From: Kristjan ESPERANTO <35647502+KristjanESPERANTO@users.noreply.github.com>
Date: Thu, 7 Dec 2023 02:02:38 +0100
Subject: [PATCH] Run linter
---
docs/profile-boilerplate.js | 8 +-
format/address.js | 4 +-
format/date.js | 2 +-
format/filters.js | 2 +-
format/lines-req.js | 2 +-
format/location-filter.js | 8 +-
format/locations-req.js | 8 +-
format/nearby-req.js | 8 +-
format/poi.js | 4 +-
format/products-filter.js | 2 +-
format/radar-req.js | 4 +-
format/reachable-from-req.js | 10 +-
format/rectangle.js | 6 +-
format/refresh-journey-req.js | 2 +-
format/station-board-req.js | 14 +-
format/station.js | 4 +-
format/stop-req.js | 4 +-
format/time.js | 2 +-
format/trip-req.js | 4 +-
index.js | 90 +-
lib/default-profile.js | 4 +-
lib/errors.js | 2 +-
lib/find-in-tree.js | 4 +-
lib/profile-hooks.js | 2 +-
lib/request.js | 19 +-
lib/slice-leg.js | 8 +-
lib/validate-profile.js | 2 +-
p/bvg/index.js | 12 +-
p/bvg/products.js | 16 +-
p/cfl/products.js | 12 +-
p/cmta/products.js | 8 +-
p/db-busradar-nrw/index.js | 18 +-
p/db/ageGroup.js | 19 +-
p/db/index.js | 123 +-
p/db/loyalty-cards.js | 18 +-
p/db/products.js | 22 +-
p/insa/products.js | 16 +-
p/invg/products.js | 18 +-
p/irish-rail/products.js | 10 +-
p/mobil-nrw/products.js | 2 +-
p/mobiliteit-lu/products.js | 12 +-
p/nahsh/index.js | 6 +-
p/nahsh/products.js | 22 +-
p/nvv/products.js | 16 +-
p/oebb/index.js | 2 +-
p/oebb/products.js | 22 +-
p/pkp/products.js | 10 +-
p/rejseplanen/products.js | 2 +-
p/rmv/products.js | 22 +-
p/rsag/products.js | 22 +-
p/saarfahrplan/index.js | 2 +-
p/saarfahrplan/products.js | 24 +-
p/sbahn-muenchen/index.js | 2 +-
p/sbahn-muenchen/products.js | 20 +-
p/sncb/index.js | 12 +-
p/sncb/products.js | 16 +-
p/svv/products.js | 16 +-
p/vbb/parse-loc-dhid.js | 4 +-
p/vbb/products.js | 16 +-
p/vbn/products.js | 20 +-
p/vmt/products.js | 10 +-
p/vsn/products.js | 20 +-
parse/arrival-or-departure.js | 18 +-
parse/common.js | 14 +-
parse/date-time.js | 10 +-
parse/find-remarks.js | 4 +-
parse/hint.js | 14 +-
parse/icon.js | 2 +-
parse/journey-leg.js | 22 +-
parse/journey.js | 2 +-
parse/line.js | 17 +-
parse/location.js | 71 +-
parse/movement.js | 27 +-
parse/operator.js | 2 +-
parse/platform.js | 4 +-
parse/polyline.js | 8 +-
parse/products-bitmask.js | 4 +-
parse/prognosis-type.js | 4 +-
parse/scheduled-days.js | 2 +-
parse/stopover.js | 14 +-
parse/trip.js | 10 +-
parse/warning.js | 36 +-
parse/when.js | 12 +-
retry.js | 22 +-
test/bvg-arrivals.js | 2 +-
test/bvg-journey.js | 2 +-
test/bvg-radar.js | 2 +-
test/db-arrivals.js | 2 +-
test/db-journey-2.js | 2 +-
test/db-journey-additional-stopover.js | 24 +-
test/db-journey-tzoffset-0.js | 4 +-
test/db-journey.js | 2 +-
test/db-netz-remarks.js | 38 +-
test/e2e/bvg.js | 86 +-
test/e2e/cfl.js | 42 +-
test/e2e/cmta.js | 42 +-
test/e2e/db-busradar-nrw.js | 24 +-
test/e2e/db.js | 85 +-
test/e2e/insa.js | 48 +-
test/e2e/invg.js | 40 +-
test/e2e/lib/arrivals.js | 6 +-
test/e2e/lib/departures-in-direction.js | 13 +-
test/e2e/lib/departures.js | 6 +-
test/e2e/lib/earlier-later-journeys.js | 16 +-
.../e2e/lib/journeys-fails-with-no-product.js | 2 +-
test/e2e/lib/journeys-station-to-address.js | 4 +-
test/e2e/lib/journeys-station-to-poi.js | 14 +-
test/e2e/lib/journeys-station-to-station.js | 16 +-
test/e2e/lib/journeys-walking-speed.js | 4 +-
test/e2e/lib/journeys-with-detour.js | 7 +-
test/e2e/lib/leg-cycle-alternatives.js | 2 +-
test/e2e/lib/reachable-from.js | 4 +-
test/e2e/lib/refresh-journey.js | 6 +-
test/e2e/lib/util.js | 4 +-
test/e2e/lib/validators.js | 26 +-
test/e2e/lib/vbb-bvg-validators.js | 4 +-
test/e2e/mobil-nrw.js | 24 +-
test/e2e/mobiliteit-lu.js | 40 +-
test/e2e/nahsh.js | 60 +-
test/e2e/nvv.js | 38 +-
test/e2e/oebb.js | 54 +-
test/e2e/pkp.js | 30 +-
test/e2e/rejseplanen.js | 4 +-
test/e2e/rmv.js | 14 +-
test/e2e/rsag.js | 16 +-
test/e2e/saarfahrplan.js | 40 +-
test/e2e/sbahn-muenchen.js | 44 +-
test/e2e/sncb.js | 16 +-
test/e2e/svv.js | 10 +-
test/e2e/vbb.js | 70 +-
test/e2e/vbn.js | 16 +-
test/e2e/vrn.js | 24 +-
test/e2e/vsn.js | 34 +-
test/e2e/zvv.js | 8 +-
test/fixtures/bvg-arrivals.js | 166 +-
test/fixtures/bvg-journey.js | 376 +-
test/fixtures/bvg-radar.js | 930 +--
test/fixtures/bvg-trip-with-occupancy.js | 572 +-
test/fixtures/db-arrivals.js | 64 +-
test/fixtures/db-journey-2.js | 248 +-
test/fixtures/db-journey-polyline.js | 5134 ++++++++---------
test/fixtures/db-journey.js | 22 +-
test/fixtures/db-stop.js | 206 +-
test/fixtures/insa-stop.js | 4 +-
test/fixtures/oebb-trip.js | 306 +-
test/fixtures/rejseplanen-trip.js | 32 +-
test/fixtures/rsag-journey.js | 24 +-
test/fixtures/vbb-departures.js | 340 +-
test/fixtures/vbb-journeys.js | 64 +-
test/fixtures/vbb-on-demand-trip.js | 8 +-
test/fixtures/vsn-departures.js | 4 +-
test/fixtures/vsn-remarks.js | 118 +-
test/format/products-filter.js | 16 +-
test/lib/request.js | 6 +-
test/parse/date-time.js | 6 +-
test/parse/hint.js | 20 +-
test/parse/icon.js | 52 +-
test/parse/line.js | 18 +-
test/parse/location.js | 40 +-
test/parse/operator.js | 10 +-
test/parse/warning.js | 16 +-
test/parse/when.js | 12 +-
test/retry.js | 24 +-
test/rsag-journey.js | 2 +-
test/throttle.js | 4 +-
test/vbb-departures.js | 2 +-
throttle.js | 2 +-
tools/debug-cli/cli.js | 15 +-
tools/endpoint-hci-version/cli.js | 13 +-
169 files changed, 5616 insertions(+), 5521 deletions(-)
diff --git a/docs/profile-boilerplate.js b/docs/profile-boilerplate.js
index 925a36fde..0cc80cd0d 100644
--- a/docs/profile-boilerplate.js
+++ b/docs/profile-boilerplate.js
@@ -7,7 +7,7 @@ const products = [
bitmasks: [16],
name: 'ACME Commuter Rail',
short: 'CR',
- default: true
+ default: true,
},
{
id: 'metro',
@@ -15,8 +15,8 @@ const products = [
bitmasks: [8],
name: 'Foo Bar Metro',
short: 'M',
- default: true
- }
+ default: true,
+ },
]
const transformReqBody = (body) => {
@@ -37,7 +37,7 @@ const insaProfile = {
products: products,
trip: false,
- radar: false
+ radar: false,
}
export {
diff --git a/format/address.js b/format/address.js
index 74c73ce6f..ca81d1d6a 100644
--- a/format/address.js
+++ b/format/address.js
@@ -10,13 +10,13 @@ const formatAddress = (a) => {
A: '2', // address?
O: a.address,
X: formatCoord(a.longitude),
- Y: formatCoord(a.latitude)
+ Y: formatCoord(a.latitude),
}
if (a.id) data.L = a.id
return {
type: 'A', // address
name: a.address,
- lid: formatLocationIdentifier(data)
+ lid: formatLocationIdentifier(data),
}
}
diff --git a/format/date.js b/format/date.js
index 45f6faffb..477172f26 100644
--- a/format/date.js
+++ b/format/date.js
@@ -12,7 +12,7 @@ const formatDate = (profile, when) => {
return DateTime.fromMillis(+when, {
locale: profile.locale,
- zone: timezone
+ zone: timezone,
}).toFormat('yyyyMMdd')
}
diff --git a/format/filters.js b/format/filters.js
index 92630998c..4d64e5caf 100644
--- a/format/filters.js
+++ b/format/filters.js
@@ -3,7 +3,7 @@ const bike = {type: 'BC', mode: 'INC'}
const accessibility = {
none: {type: 'META', mode: 'INC', meta: 'notBarrierfree'},
partial: {type: 'META', mode: 'INC', meta: 'limitedBarrierfree'},
- complete: {type: 'META', mode: 'INC', meta: 'completeBarrierfree'}
+ complete: {type: 'META', mode: 'INC', meta: 'completeBarrierfree'},
}
export {
diff --git a/format/lines-req.js b/format/lines-req.js
index 8eab450fe..629a1d668 100644
--- a/format/lines-req.js
+++ b/format/lines-req.js
@@ -3,7 +3,7 @@ const formatLinesReq = (ctx, query) => {
meth: 'LineMatch',
req: {
input: query,
- }
+ },
}
}
diff --git a/format/location-filter.js b/format/location-filter.js
index 49fdc4c16..cd7dde83e 100644
--- a/format/location-filter.js
+++ b/format/location-filter.js
@@ -1,6 +1,12 @@
const formatLocationFilter = (stops, addresses, poi) => {
if (stops && addresses && poi) return 'ALL'
- return (stops ? 'S' : '') + (addresses ? 'A' : '') + (poi ? 'P' : '')
+ return (stops
+ ? 'S'
+ : '') + (addresses
+ ? 'A'
+ : '') + (poi
+ ? 'P'
+ : '')
}
export {
diff --git a/format/locations-req.js b/format/locations-req.js
index c5192f8cf..9e2efb3fe 100644
--- a/format/locations-req.js
+++ b/format/locations-req.js
@@ -7,11 +7,13 @@ const formatLocationsReq = (ctx, query) => {
req: {input: {
loc: {
type: profile.formatLocationFilter(opt.stops, opt.addresses, opt.poi),
- name: opt.fuzzy ? query + '?' : query
+ name: opt.fuzzy
+ ? query + '?'
+ : query,
},
maxLoc: opt.results,
- field: 'S' // todo: what is this?
- }}
+ field: 'S', // todo: what is this?
+ }},
}
}
diff --git a/format/nearby-req.js b/format/nearby-req.js
index 94e9b7e8a..f02928098 100644
--- a/format/nearby-req.js
+++ b/format/nearby-req.js
@@ -8,18 +8,18 @@ const formatNearbyReq = (ctx, location) => {
ring: {
cCrd: {
x: profile.formatCoord(location.longitude),
- y: profile.formatCoord(location.latitude)
+ y: profile.formatCoord(location.latitude),
},
maxDist: opt.distance || -1,
- minDist: 0
+ minDist: 0,
},
locFltrL: [
profile.formatProductsFilter(ctx, opt.products || {}),
],
getPOIs: !!opt.poi,
getStops: !!opt.stops,
- maxLoc: opt.results
- }
+ maxLoc: opt.results,
+ },
}
}
diff --git a/format/poi.js b/format/poi.js
index 7e5101b61..9621b4098 100644
--- a/format/poi.js
+++ b/format/poi.js
@@ -15,8 +15,8 @@ const formatPoi = (p) => {
O: p.name,
L: p.id,
X: formatCoord(p.longitude),
- Y: formatCoord(p.latitude)
- })
+ Y: formatCoord(p.latitude),
+ }),
}
}
diff --git a/format/products-filter.js b/format/products-filter.js
index 569b06144..0498b6ca0 100644
--- a/format/products-filter.js
+++ b/format/products-filter.js
@@ -26,7 +26,7 @@ const formatProductsFilter = (ctx, filter) => {
return {
type: 'PROD',
mode: 'INC',
- value: res + ''
+ value: res + '',
}
}
diff --git a/format/radar-req.js b/format/radar-req.js
index c4aaa6317..0a5358b65 100644
--- a/format/radar-req.js
+++ b/format/radar-req.js
@@ -14,13 +14,13 @@ const formatRadarReq = (ctx, north, west, south, east) => {
perStep: Math.round(opt.duration / Math.max(opt.frames, 1) * 1000),
ageOfReport: true, // todo: what is this?
jnyFltrL: [
- profile.formatProductsFilter(ctx, opt.products || {})
+ profile.formatProductsFilter(ctx, opt.products || {}),
],
// todo: what is this? what about realtime?
// - CALC
// - CALC_REPORT (as seen in the INSA Young app)
trainPosMode: 'CALC',
- }
+ },
}
}
diff --git a/format/reachable-from-req.js b/format/reachable-from-req.js
index 95dd7d96b..7878f74cd 100644
--- a/format/reachable-from-req.js
+++ b/format/reachable-from-req.js
@@ -5,15 +5,17 @@ const formatReachableFromReq = (ctx, address) => {
meth: 'LocGeoReach',
req: {
loc: profile.formatLocation(profile, address, 'address'),
- maxDur: opt.maxDuration === null ? -1 : opt.maxDuration,
+ maxDur: opt.maxDuration === null
+ ? -1
+ : opt.maxDuration,
maxChg: opt.maxTransfers,
date: profile.formatDate(profile, opt.when),
time: profile.formatTime(profile, opt.when),
period: 120, // todo: what is this?
jnyFltrL: [
- profile.formatProductsFilter(ctx, opt.products || {})
- ]
- }
+ profile.formatProductsFilter(ctx, opt.products || {}),
+ ],
+ },
}
}
diff --git a/format/rectangle.js b/format/rectangle.js
index eb12da173..a46a89505 100644
--- a/format/rectangle.js
+++ b/format/rectangle.js
@@ -2,12 +2,12 @@ const formatRectangle = (profile, north, west, south, east) => {
return {
llCrd: {
x: profile.formatCoord(west),
- y: profile.formatCoord(south)
+ y: profile.formatCoord(south),
},
urCrd: {
x: profile.formatCoord(east),
- y: profile.formatCoord(north)
- }
+ y: profile.formatCoord(north),
+ },
}
}
diff --git a/format/refresh-journey-req.js b/format/refresh-journey-req.js
index b91a7604b..ebef24860 100644
--- a/format/refresh-journey-req.js
+++ b/format/refresh-journey-req.js
@@ -6,7 +6,7 @@ const formatRefreshJourneyReq = (ctx, refreshToken) => {
getIST: true, // todo: make an option
getPasslist: !!opt.stopovers,
getPolyline: !!opt.polylines,
- getTariff: !!opt.tickets
+ getTariff: !!opt.tickets,
}
if (profile.refreshJourneyUseOutReconL) {
req.outReconL = [{ctx: refreshToken}]
diff --git a/format/station-board-req.js b/format/station-board-req.js
index e4bbc001e..e40a8065b 100644
--- a/format/station-board-req.js
+++ b/format/station-board-req.js
@@ -2,7 +2,7 @@ const formatStationBoardReq = (ctx, station, type) => {
const {profile, opt} = ctx
const jnyFltrL = [
- profile.formatProductsFilter(ctx, opt.products || {})
+ profile.formatProductsFilter(ctx, opt.products || {}),
]
if (opt.line !== null) {
jnyFltrL.push({type: 'LINEID', mode: 'INC', value: opt.line})
@@ -13,19 +13,23 @@ const formatStationBoardReq = (ctx, station, type) => {
date: profile.formatDate(profile, opt.when),
time: profile.formatTime(profile, opt.when),
stbLoc: station,
- dirLoc: opt.direction ? profile.formatStation(opt.direction) : undefined,
+ dirLoc: opt.direction
+ ? profile.formatStation(opt.direction)
+ : undefined,
jnyFltrL,
- dur: opt.duration
+ dur: opt.duration,
}
if (opt.results !== null) {
- req.maxJny = opt.results === Infinity ? 10000 : opt.results
+ req.maxJny = opt.results === Infinity
+ ? 10000
+ : opt.results
}
if (profile.departuresGetPasslist) req.getPasslist = !!opt.stopovers
if (profile.departuresStbFltrEquiv) req.stbFltrEquiv = !opt.includeRelatedStations
return {
meth: 'StationBoard',
- req
+ req,
}
}
diff --git a/format/station.js b/format/station.js
index d9ce95abf..c6e92cdc8 100644
--- a/format/station.js
+++ b/format/station.js
@@ -6,9 +6,9 @@ const formatStation = (id) => {
// todo: name necessary?
lid: formatLocationIdentifier({
A: '1', // station?
- L: id
+ L: id,
// todo: `p` – timestamp of when the ID was obtained
- })
+ }),
}
}
diff --git a/format/stop-req.js b/format/stop-req.js
index 6a98a9112..25d45a55e 100644
--- a/format/stop-req.js
+++ b/format/stop-req.js
@@ -3,8 +3,8 @@ const formatStopReq = (ctx, stopRef) => {
// todo: there's also `StationDetails`, are there differences?
meth: 'LocDetails',
req: {
- locL: [stopRef]
- }
+ locL: [stopRef],
+ },
}
}
diff --git a/format/time.js b/format/time.js
index bd7a31bd9..eae7f3231 100644
--- a/format/time.js
+++ b/format/time.js
@@ -12,7 +12,7 @@ const formatTime = (profile, when) => {
return DateTime.fromMillis(+when, {
locale: profile.locale,
- zone: timezone
+ zone: timezone,
}).toFormat('HHmmss')
}
diff --git a/format/trip-req.js b/format/trip-req.js
index bca4f25c6..25b40c8f7 100644
--- a/format/trip-req.js
+++ b/format/trip-req.js
@@ -8,8 +8,8 @@ const formatTripReq = ({opt}, id) => {
// HAFAS apparently ignores the date in the trip ID and uses the `date` field.
// Thus, it will find a different trip if you pass the wrong date via `opt.when`.
// date: profile.formatDate(profile, opt.when),
- getPolyline: !!opt.polyline
- }
+ getPolyline: !!opt.polyline,
+ },
}
}
diff --git a/index.js b/index.js
index d9b411a00..b108cdde3 100644
--- a/index.js
+++ b/index.js
@@ -40,10 +40,10 @@ const createClient = (profile, userAgent, opt = {}) => {
validateProfile(profile)
if ('string' !== typeof userAgent) {
- throw new TypeError('userAgent must be a string');
+ throw new TypeError('userAgent must be a string')
}
if (FORBIDDEN_USER_AGENTS.includes(userAgent.toLowerCase())) {
- throw new TypeError(`userAgent should tell the HAFAS API operators how to contact you. If you have copied "${userAgent}" value from the documentation, please adapt it.`);
+ throw new TypeError(`userAgent should tell the HAFAS API operators how to contact you. If you have copied "${userAgent}" value from the documentation, please adapt it.`)
}
const _stationBoard = async (station, type, resultsField, parse, opt = {}) => {
@@ -55,10 +55,10 @@ const createClient = (profile, userAgent, opt = {}) => {
throw new TypeError('type must be a non-empty string.')
}
- if (!profile.departuresGetPasslist && ('stopovers' in opt)) {
+ if (!profile.departuresGetPasslist && 'stopovers' in opt) {
throw new Error('opt.stopovers is not supported by this endpoint')
}
- if (!profile.departuresStbFltrEquiv && ('includeRelatedStations' in opt)) {
+ if (!profile.departuresStbFltrEquiv && 'includeRelatedStations' in opt) {
throw new Error('opt.includeRelatedStations is not supported by this endpoint')
}
@@ -75,7 +75,7 @@ const createClient = (profile, userAgent, opt = {}) => {
stopovers: false, // fetch & parse previous/next stopovers?
// departures at related stations
// e.g. those that belong together on the metro map.
- includeRelatedStations: true
+ includeRelatedStations: true,
}, opt)
opt.when = new Date(opt.when || Date.now())
if (Number.isNaN(+opt.when)) throw new Error('opt.when is invalid')
@@ -85,9 +85,11 @@ const createClient = (profile, userAgent, opt = {}) => {
const {res, common} = await profile.request({profile, opt}, userAgent, req)
const ctx = {profile, opt, common, res}
- const jnyL = Array.isArray(res.jnyL) ? res.jnyL : []
+ const jnyL = Array.isArray(res.jnyL)
+ ? res.jnyL
+ : []
const results = jnyL.map(res => parse(ctx, res))
- .sort((a, b) => new Date(a.when) - new Date(b.when)) // todo
+ .sort((a, b) => new Date(a.when) - new Date(b.when)) // todo
return {
[resultsField]: results,
@@ -108,10 +110,10 @@ const createClient = (profile, userAgent, opt = {}) => {
from = profile.formatLocation(profile, from, 'from')
to = profile.formatLocation(profile, to, 'to')
- if (('earlierThan' in opt) && ('laterThan' in opt)) {
+ if ('earlierThan' in opt && 'laterThan' in opt) {
throw new TypeError('opt.earlierThan and opt.laterThan are mutually exclusive.')
}
- if (('departure' in opt) && ('arrival' in opt)) {
+ if ('departure' in opt && 'arrival' in opt) {
throw new TypeError('opt.departure and opt.arrival are mutually exclusive.')
}
let journeysRef = null
@@ -119,7 +121,7 @@ const createClient = (profile, userAgent, opt = {}) => {
if (!isNonEmptyString(opt.earlierThan)) {
throw new TypeError('opt.earlierThan must be a non-empty string.')
}
- if (('departure' in opt) || ('arrival' in opt)) {
+ if ('departure' in opt || 'arrival' in opt) {
throw new TypeError('opt.earlierThan and opt.departure/opt.arrival are mutually exclusive.')
}
journeysRef = opt.earlierThan
@@ -128,7 +130,7 @@ const createClient = (profile, userAgent, opt = {}) => {
if (!isNonEmptyString(opt.laterThan)) {
throw new TypeError('opt.laterThan must be a non-empty string.')
}
- if (('departure' in opt) || ('arrival' in opt)) {
+ if ('departure' in opt || 'arrival' in opt) {
throw new TypeError('opt.laterThan and opt.departure/opt.arrival are mutually exclusive.')
}
journeysRef = opt.laterThan
@@ -172,7 +174,7 @@ const createClient = (profile, userAgent, opt = {}) => {
}
const filters = [
- profile.formatProductsFilter({profile}, opt.products || {})
+ profile.formatProductsFilter({profile}, opt.products || {}),
]
if (
opt.accessibility &&
@@ -183,7 +185,7 @@ const createClient = (profile, userAgent, opt = {}) => {
filters.push(profile.filters.accessibility[opt.accessibility])
}
- if (!['slow','normal','fast'].includes(opt.walkingSpeed)) {
+ if (!['slow', 'normal', 'fast'].includes(opt.walkingSpeed)) {
throw new Error('opt.walkingSpeed must be one of these values: "slow", "normal", "fast".')
}
const gisFltrL = []
@@ -191,7 +193,7 @@ const createClient = (profile, userAgent, opt = {}) => {
gisFltrL.push({
meta: 'foot_speed_' + opt.walkingSpeed,
mode: 'FB',
- type: 'M'
+ type: 'M',
})
}
@@ -200,7 +202,9 @@ const createClient = (profile, userAgent, opt = {}) => {
maxChg: opt.transfers,
minChgTime: opt.transferTime,
depLocL: [from],
- viaLocL: opt.via ? [{loc: opt.via}] : [],
+ viaLocL: opt.via
+ ? [{loc: opt.via}]
+ : [],
arrLocL: [to],
jnyFltrL: filters,
gisFltrL,
@@ -211,7 +215,7 @@ const createClient = (profile, userAgent, opt = {}) => {
getPT: true, // todo: what is this?
getIV: false, // todo: walk & bike as alternatives?
- getPolyline: !!opt.polylines
+ getPolyline: !!opt.polylines,
// todo: `getConGroups: false` what is this?
// todo: what is getEco, fwrd?
}
@@ -226,14 +230,14 @@ const createClient = (profile, userAgent, opt = {}) => {
const {res, common} = await profile.request({profile, opt}, userAgent, {
cfg: {polyEnc: 'GPA'},
meth: 'TripSearch',
- req: profile.transformJourneysQuery({profile, opt}, query)
+ req: profile.transformJourneysQuery({profile, opt}, query),
})
if (!Array.isArray(res.outConL)) return []
// todo: outConGrpL
const ctx = {profile, opt, common, res}
const journeys = res.outConL
- .map(j => profile.parseJourney(ctx, j))
+ .map(j => profile.parseJourney(ctx, j))
return {
earlierRef: res.outCtxScrB || null,
@@ -328,7 +332,7 @@ const createClient = (profile, userAgent, opt = {}) => {
if (opt.when) throw new Error('journeysFromTrip + opt.when is not supported by HAFAS.')
const filters = [
- profile.formatProductsFilter({profile}, opt.products || {})
+ profile.formatProductsFilter({profile}, opt.products || {}),
]
if (
opt.accessibility &&
@@ -360,7 +364,7 @@ const createClient = (profile, userAgent, opt = {}) => {
loc: prevStop,
type: 'DEP', // todo: are there other values?
date: profile.formatDate(profile, depAtPrevStop),
- time: profile.formatTime(profile, depAtPrevStop)
+ time: profile.formatTime(profile, depAtPrevStop),
},
arrLocL: [to],
jnyFltrL: filters,
@@ -379,24 +383,24 @@ const createClient = (profile, userAgent, opt = {}) => {
const ctx = {profile, opt, common, res}
const journeys = res.outConL
- .map(rawJourney => profile.parseJourney(ctx, rawJourney))
- .map((journey) => {
+ .map(rawJourney => profile.parseJourney(ctx, rawJourney))
+ .map((journey) => {
// For the first (transit) leg, HAFAS sometimes returns *all* past
// stopovers of the trip, even though it should only return stopovers
// between the specified `depAtPrevStop` and the arrival at the
// interchange station. We slice the leg accordingly.
- const fromLegI = journey.legs.findIndex(l => l.tripId === fromTripId)
- if (fromLegI < 0) return journey
- const fromLeg = journey.legs[fromLegI]
- return {
- ...journey,
- legs: [
- ...journey.legs.slice(0, fromLegI),
- sliceLeg(fromLeg, previousStopover.stop, fromLeg.destination),
- ...journey.legs.slice(fromLegI + 2),
- ],
- }
- })
+ const fromLegI = journey.legs.findIndex(l => l.tripId === fromTripId)
+ if (fromLegI < 0) return journey
+ const fromLeg = journey.legs[fromLegI]
+ return {
+ ...journey,
+ legs: [
+ ...journey.legs.slice(0, fromLegI),
+ sliceLeg(fromLeg, previousStopover.stop, fromLeg.destination),
+ ...journey.legs.slice(fromLegI + 2),
+ ],
+ }
+ })
return {
journeys,
@@ -418,7 +422,7 @@ const createClient = (profile, userAgent, opt = {}) => {
poi: true, // points of interest
subStops: true, // parse & expose sub-stops of stations?
entrances: true, // parse & expose entrances of stops/stations?
- linesOfStops: false // parse & expose lines at each stop/station?
+ linesOfStops: false, // parse & expose lines at each stop/station?
}, opt)
const req = profile.formatLocationsReq({profile, opt}, query)
@@ -466,7 +470,7 @@ const createClient = (profile, userAgent, opt = {}) => {
stops: true, // return stops/stations?
subStops: true, // parse & expose sub-stops of stations?
entrances: true, // parse & expose entrances of stops/stations?
- linesOfStops: false // parse & expose lines at each stop/station?
+ linesOfStops: false, // parse & expose lines at each stop/station?
}, opt)
const req = profile.formatNearbyReq({profile, opt}, location)
@@ -568,9 +572,9 @@ const createClient = (profile, userAgent, opt = {}) => {
}
if (opt.operatorNames !== null) {
if (
- !Array.isArray(opt.operatorNames)
- || opt.operatorNames.length === 0
- || !opt.operatorNames.every(isNonEmptyString)
+ !Array.isArray(opt.operatorNames) ||
+ opt.operatorNames.length === 0 ||
+ !opt.operatorNames.every(isNonEmptyString)
) {
throw new TypeError('opt.operatorNames must be an array of non-empty strings.')
}
@@ -667,7 +671,7 @@ const createClient = (profile, userAgent, opt = {}) => {
i = byDuration.length
byDuration.push({
duration: pos.dur,
- stations: [loc]
+ stations: [loc],
})
} else {
byDuration[i].stations.push(loc)
@@ -690,7 +694,7 @@ const createClient = (profile, userAgent, opt = {}) => {
to: null,
products: null, // filter by affected products
polylines: false, // return leg shapes? (not supported by all endpoints)
- ...opt
+ ...opt,
}
if (opt.from !== null) {
@@ -709,7 +713,7 @@ const createClient = (profile, userAgent, opt = {}) => {
const ctx = {profile, opt, common, res}
const remarks = (res.msgL || [])
- .map(w => profile.parseWarning(ctx, w))
+ .map(w => profile.parseWarning(ctx, w))
return {
remarks,
@@ -757,7 +761,7 @@ const createClient = (profile, userAgent, opt = {}) => {
const serverInfo = async (opt = {}) => {
opt = {
versionInfo: true, // query HAFAS versions?
- ...opt
+ ...opt,
}
const {res, common} = await profile.request({profile, opt}, userAgent, {
diff --git a/lib/default-profile.js b/lib/default-profile.js
index 2578bd704..e75442b0c 100644
--- a/lib/default-profile.js
+++ b/lib/default-profile.js
@@ -46,7 +46,7 @@ import {formatLocation} from '../format/location.js'
import {formatRectangle} from '../format/rectangle.js'
import * as filters from '../format/filters.js'
-const DEBUG = /(^|,)hafas-client(,|$)/.test(process.env.DEBUG || '')
+const DEBUG = (/(^|,)hafas-client(,|$)/).test(process.env.DEBUG || '')
const logRequest = DEBUG
? (_, req, reqId) => console.error(req.body + '')
: () => {}
@@ -115,7 +115,7 @@ const defaultProfile = {
formatRectangle,
filters,
- journeysOutFrwd: true, // `journeys()` method: support for `outFrwd` field?
+ journeysOutFrwd: true, // `journeys()` method: support for `outFrwd` field?
// todo: https://github.com/KDE/kpublictransport/commit/c7c54304160d8f22eab0c91812a107aca82304b7
// `departures()` method: support for `getPasslist` field?
diff --git a/lib/errors.js b/lib/errors.js
index b11f22590..0960ecadf 100644
--- a/lib/errors.js
+++ b/lib/errors.js
@@ -285,7 +285,7 @@ const byErrorCode = Object.assign(Object.create(null), {
props: {
shouldRetry: true,
},
- }
+ },
})
export {
diff --git a/lib/find-in-tree.js b/lib/find-in-tree.js
index fae8b3316..ebe0af414 100644
--- a/lib/find-in-tree.js
+++ b/lib/find-in-tree.js
@@ -2,11 +2,11 @@ import objectScan from 'object-scan'
const createFindInTree = (needles) => {
const scanner = objectScan(needles, {
- filterFn: ({ value, parents, matchedBy, context }) => {
+ filterFn: ({value, parents, matchedBy, context}) => {
matchedBy.forEach((needle) => {
context[needle].push([value, parents])
})
- }
+ },
})
return (haystack) => {
diff --git a/lib/profile-hooks.js b/lib/profile-hooks.js
index bc5aa981e..6668d9f9a 100644
--- a/lib/profile-hooks.js
+++ b/lib/profile-hooks.js
@@ -13,7 +13,7 @@ const parseHook = (oldParse, newParse) => {
return (ctx, ...args) => {
return newParse({
...ctx,
- parsed: oldParse({...ctx, parsed: {}}, ...args)
+ parsed: oldParse({...ctx, parsed: {}}, ...args),
}, ...args)
}
}
diff --git a/lib/request.js b/lib/request.js
index 24ea83d09..74a77a7d4 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -31,14 +31,14 @@ if (proxyAddress) {
getAgent = () => agent
} else if (localAddresses) {
const agents = process.env.LOCAL_ADDRESS.split(',')
- .map((addr) => {
- const family = isIP(addr)
- if (family === 0) throw new Error('invalid local address:' + addr)
- return new HttpsAgent({
- localAddress: addr, family,
- keepAlive: true,
+ .map((addr) => {
+ const family = isIP(addr)
+ if (family === 0) throw new Error('invalid local address:' + addr)
+ return new HttpsAgent({
+ localAddress: addr, family,
+ keepAlive: true,
+ })
})
- })
const pool = roundRobin(agents)
getAgent = () => pool.get()
}
@@ -57,7 +57,8 @@ const randomizeUserAgent = (userAgent) => {
return ua
}
-const md5 = input => createHash('md5').update(input).digest()
+const md5 = input => createHash('md5').update(input)
+ .digest()
const checkIfResponseIsOk = (_) => {
const {
@@ -128,7 +129,7 @@ const request = async (ctx, userAgent, reqData) => {
'connection': 'keep-alive', // prevent excessive re-connecting
},
redirect: 'follow',
- query: {}
+ query: {},
})
if (profile.addChecksum || profile.addMicMac) {
diff --git a/lib/slice-leg.js b/lib/slice-leg.js
index 7723bf27b..bb837d6f7 100644
--- a/lib/slice-leg.js
+++ b/lib/slice-leg.js
@@ -1,10 +1,14 @@
const findById = (needle) => {
const needleStopId = needle.id
- const needleStationId = needle.station ? needle.station.id : null
+ const needleStationId = needle.station
+ ? needle.station.id
+ : null
return (stop) => {
if (needleStopId === stop.id) return true
- const stationId = stop.station ? stop.station.id : null
+ const stationId = stop.station
+ ? stop.station.id
+ : null
if (needleStationId && stationId && needleStationId === stationId) return true
// todo: `needleStationId === stop.id`? `needleStopId === stationId`?
return false
diff --git a/lib/validate-profile.js b/lib/validate-profile.js
index 55fb35130..8eef10895 100644
--- a/lib/validate-profile.js
+++ b/lib/validate-profile.js
@@ -43,7 +43,7 @@ const types = {
formatStation: 'function',
formatTime: 'function',
formatLocation: 'function',
- formatRectangle: 'function'
+ formatRectangle: 'function',
}
const validateProfile = (profile) => {
diff --git a/p/bvg/index.js b/p/bvg/index.js
index 0e92abbf9..f16d9178e 100644
--- a/p/bvg/index.js
+++ b/p/bvg/index.js
@@ -19,8 +19,8 @@ import {products} from './products.js'
// todo: there's also a referenced icon `{"res":"occup_fig_{low,mid}"}`
const addOccupancy = (item, occupancyCodes) => {
const remIdx = (item.remarks || [])
- .findIndex(r => r.code && occupancyCodes.has(r.code))
- if (remIdx < 0) return;
+ .findIndex(r => r.code && occupancyCodes.has(r.code))
+ if (remIdx < 0) return
const rem = item.remarks[remIdx]
item.occupancy = occupancyCodes.get(rem.code)
@@ -86,7 +86,7 @@ const parseJourneyLegWithBerlkönig = (ctx, leg, date) => {
const icon = ctx.common.icons[leg.icoX]
if (icon && icon.type === 'prod_berl') {
const res = _parseJourneyLeg(ctx, {
- ...leg, type: 'WALK'
+ ...leg, type: 'WALK',
}, date)
delete res.walking
@@ -102,7 +102,7 @@ const parseJourneyLegWithBerlkönig = (ctx, leg, date) => {
name: mcpData.providerName,
public: true,
mode: 'taxi',
- product: 'berlkoenig'
+ product: 'berlkoenig',
// todo: operator
}
return res
@@ -120,7 +120,7 @@ const parseJourneyLegWithOccupancy = ({parsed}, leg, date) => {
// use the Berlkönig ride sharing service?
// todo: https://github.com/alexander-albers/tripkit/issues/26#issuecomment-825437320
const requestJourneysWithBerlkoenig = ({opt}, query) => {
- if (('numF' in query) && opt.berlkoenig) {
+ if ('numF' in query && opt.berlkoenig) {
// todo: check if this is still true
throw new Error('The `berlkoenig` and `results` options are mutually exclusive.')
}
@@ -160,7 +160,7 @@ const profile = {
trip: true,
radar: true,
refreshJourney: true,
- reachableFrom: true
+ reachableFrom: true,
}
export {
diff --git a/p/bvg/products.js b/p/bvg/products.js
index 9ad80d73a..bf005ebe1 100644
--- a/p/bvg/products.js
+++ b/p/bvg/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'subway',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [4],
name: 'Tram',
short: 'T',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [8],
name: 'Bus',
short: 'B',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [16],
name: 'Fähre',
short: 'F',
- default: true
+ default: true,
},
{
id: 'express',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [32],
name: 'IC/ICE',
short: 'E',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -53,8 +53,8 @@ const products = [
bitmasks: [64],
name: 'RB/RE',
short: 'R',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/cfl/products.js b/p/cfl/products.js
index 8b17110b7..51b9aba8b 100644
--- a/p/cfl/products.js
+++ b/p/cfl/products.js
@@ -6,7 +6,7 @@ const products = [
bitmasks: [1, 2],
name: 'TGV, ICE, EuroCity',
short: 'TGV/ICE/EC',
- default: true
+ default: true,
},
{
id: 'local-train',
@@ -14,7 +14,7 @@ const products = [
bitmasks: [8, 16],
name: 'local trains',
short: 'local',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -22,7 +22,7 @@ const products = [
bitmasks: [256],
name: 'tram',
short: 'tram',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -30,7 +30,7 @@ const products = [
bitmasks: [32],
name: 'bus',
short: 'bus',
- default: true
+ default: true,
},
{
id: 'gondola',
@@ -38,8 +38,8 @@ const products = [
bitmasks: [512],
name: 'Fun', // taken from the horaires.cfl.lu website
short: 'Fun', // abbreviation for funicular?
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/cmta/products.js b/p/cmta/products.js
index a11e787d2..3ba7f6f83 100644
--- a/p/cmta/products.js
+++ b/p/cmta/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [32],
name: 'MetroBus',
short: 'B',
- default: true
+ default: true,
},
{
id: 'rapid',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [4096],
name: 'MetroRapid',
short: 'R',
- default: true
+ default: true,
},
{
id: 'rail',
@@ -21,8 +21,8 @@ const products = [
bitmasks: [8],
name: 'MetroRail',
short: 'M',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/db-busradar-nrw/index.js b/p/db-busradar-nrw/index.js
index ecf3218ef..e7703aac3 100644
--- a/p/db-busradar-nrw/index.js
+++ b/p/db-busradar-nrw/index.js
@@ -14,7 +14,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'national',
@@ -22,7 +22,7 @@ const products = [
bitmasks: [2],
name: 'InterCity & EuroCity',
short: 'IC/EC',
- default: true
+ default: true,
},
// todo: not always true when a station has RE stopping at it
// maybe something else?
@@ -32,7 +32,7 @@ const products = [
bitmasks: [4],
name: 'Regionalexpress',
short: 'RE',
- default: true
+ default: true,
},
// todo: also used for replacement service incl. S-Bahn replacement
{
@@ -41,7 +41,7 @@ const products = [
bitmasks: [8],
name: 'Regionalzug',
short: 'RB/RE',
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -49,7 +49,7 @@ const products = [
bitmasks: [16],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -57,7 +57,7 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -65,7 +65,7 @@ const products = [
bitmasks: [64],
name: 'Ferry',
short: 'F',
- default: true
+ default: true,
},
// todo: are `128` & `256` unused?
{
@@ -74,8 +74,8 @@ const products = [
bitmasks: [512],
name: 'AnrufSammelTaxi',
short: 'AST',
- default: true
- }
+ default: true,
+ },
]
const profile = {
diff --git a/p/db/ageGroup.js b/p/db/ageGroup.js
index 40198ebf6..1e0cd9725 100644
--- a/p/db/ageGroup.js
+++ b/p/db/ageGroup.js
@@ -9,22 +9,17 @@ const ageGroup = {
CHILD: 15,
YOUNG: 27,
ADULT: 65,
- SENIOR: Infinity
- }
+ SENIOR: Infinity,
+ },
}
const ageGroupFromAge = (age) => {
const {upperBoundOf} = ageGroup
- if (age < upperBoundOf.BABY)
- return ageGroup.BABY
- if (age < upperBoundOf.CHILD)
- return ageGroup.CHILD
- if (age < upperBoundOf.YOUNG)
- return ageGroup.YOUNG
- if (age < upperBoundOf.ADULT)
- return ageGroup.ADULT
- if (age < upperBoundOf.SENIOR)
- return ageGroup.SENIOR
+ if (age < upperBoundOf.BABY) return ageGroup.BABY
+ if (age < upperBoundOf.CHILD) return ageGroup.CHILD
+ if (age < upperBoundOf.YOUNG) return ageGroup.YOUNG
+ if (age < upperBoundOf.ADULT) return ageGroup.ADULT
+ if (age < upperBoundOf.SENIOR) return ageGroup.SENIOR
throw new TypeError(`Invalid age '${age}'`)
}
diff --git a/p/db/index.js b/p/db/index.js
index 865854e79..e05f7d7cf 100644
--- a/p/db/index.js
+++ b/p/db/index.js
@@ -29,7 +29,9 @@ const transformReqBody = (ctx, body) => {
const req = body.svcReqL[0] || {}
// see https://pastebin.com/qZ9WS3Cx
- const rtMode = ('routingMode' in ctx.opt) ? ctx.opt.routingMode : routingModes.REALTIME
+ const rtMode = 'routingMode' in ctx.opt
+ ? ctx.opt.routingMode
+ : routingModes.REALTIME
req.cfg = {
...req.cfg,
@@ -78,11 +80,10 @@ const parseGrid = (g) => {
// iterative process.
return {
title: g.title,
- rows: slices(g.nCols, g.itemL.map(item => (
- Array.isArray(item.hints) && item.hints[0] ||
+ rows: slices(g.nCols, g.itemL.map(item => Array.isArray(item.hints) && item.hints[0] ||
Array.isArray(item.remarkRefs) && item.remarkRefs[0] && item.remarkRefs[0].hint ||
- {}
- ))),
+ {},
+ )),
}
}
@@ -96,11 +97,15 @@ const ausstattungKeys = Object.assign(Object.create(null), {
'reisebedarf': 'travelShop',
'stufenfreier-zugang': 'stepFreeAccess',
'ein-umsteigehilfe': 'boardingAid',
- 'taxi-am-bahnhof': 'taxis'
+ 'taxi-am-bahnhof': 'taxis',
})
const parseAusstattungVal = (val) => {
val = val.toLowerCase()
- return val === 'ja' ? true : (val === 'nein' ? false : val)
+ return val === 'ja'
+ ? true
+ : val === 'nein'
+ ? false
+ : val
}
const parseAusstattungGrid = (g) => {
@@ -134,8 +139,8 @@ const parseLocWithDetails = ({parsed, common}, l) => {
})
let grids = l.gridL
- .map(grid => parseGrid(grid, common))
- .map(resolveCells)
+ .map(grid => parseGrid(grid, common))
+ .map(resolveCells)
const ausstattung = grids.find(g => slugg(g.title) === 'ausstattung')
if (ausstattung) {
@@ -161,7 +166,9 @@ loadFactors[3] = 'very-high'
loadFactors[4] = 'exceptionally-high'
const parseLoadFactor = (opt, tcocL, tcocX) => {
- const cls = opt.firstClass ? 'FIRST' : 'SECOND'
+ const cls = opt.firstClass
+ ? 'FIRST'
+ : 'SECOND'
const load = tcocX.map(i => tcocL[i]).find(lf => lf.c === cls)
return load && loadFactors[load.r] || null
}
@@ -178,29 +185,35 @@ const transformJourneysQuery = ({opt}, query) => {
const filters = query.jnyFltrL
if (opt.bike) filters.push(bike)
- if (('age' in opt) && ('ageGroup' in opt)) {
+ if ('age' in opt && 'ageGroup' in opt) {
throw new TypeError(`\
opt.age and opt.ageGroup are mutually exclusive.
Pass in just opt.age, and the age group will calculated automatically.`)
}
- const tvlrAgeGroup = ('age' in opt) ? ageGroupFromAge(opt.age) : opt.ageGroup
+ const tvlrAgeGroup = 'age' in opt
+ ? ageGroupFromAge(opt.age)
+ : opt.ageGroup
query.trfReq = {
// todo: what are these?
// "directESuiteCall": true,
// "rType": "DB-PE",
- jnyCl: opt.firstClass === true ? 1 : 2,
+ jnyCl: opt.firstClass === true
+ ? 1
+ : 2,
// todo [breaking]: support multiple travelers
tvlrProf: [{
type: tvlrAgeGroup || ageGroup.ADULT,
- ...(('age' in opt) ? {age: opt.age} : {}),
+ ...'age' in opt
+ ? {age: opt.age}
+ : {},
redtnCard: opt.loyaltyCard
? formatLoyaltyCard(opt.loyaltyCard)
- : null
+ : null,
}],
- cType: 'PK'
+ cType: 'PK',
}
return query
@@ -285,7 +298,7 @@ const parseJourneyWithPrice = ({parsed}, raw) => {
parsed.price = {
amount: tariff.price.amount / 100,
currency: 'EUR',
- hint: null
+ hint: null,
}
}
}
@@ -310,188 +323,188 @@ const hintsByCode = Object.assign(Object.create(null), {
fb: {
type: 'hint',
code: 'bicycle-conveyance',
- summary: 'bicycles conveyed'
+ summary: 'bicycles conveyed',
},
fr: {
type: 'hint',
code: 'bicycle-conveyance-reservation',
- summary: 'bicycles conveyed, subject to reservation'
+ summary: 'bicycles conveyed, subject to reservation',
},
nf: {
type: 'hint',
code: 'no-bicycle-conveyance',
- summary: 'bicycles not conveyed'
+ summary: 'bicycles not conveyed',
},
k2: {
type: 'hint',
code: '2nd-class-only',
- summary: '2. class only'
+ summary: '2. class only',
},
eh: {
type: 'hint',
code: 'boarding-ramp',
- summary: 'vehicle-mounted boarding ramp available'
+ summary: 'vehicle-mounted boarding ramp available',
},
ro: {
type: 'hint',
code: 'wheelchairs-space',
- summary: 'space for wheelchairs'
+ summary: 'space for wheelchairs',
},
oa: {
type: 'hint',
code: 'wheelchairs-space-reservation',
- summary: 'space for wheelchairs, subject to reservation'
+ summary: 'space for wheelchairs, subject to reservation',
},
wv: {
type: 'hint',
code: 'wifi',
- summary: 'WiFi available'
+ summary: 'WiFi available',
},
wi: {
type: 'hint',
code: 'wifi',
- summary: 'WiFi available'
+ summary: 'WiFi available',
},
sn: {
type: 'hint',
code: 'snacks',
- summary: 'snacks available for purchase'
+ summary: 'snacks available for purchase',
},
mb: {
type: 'hint',
code: 'snacks',
- summary: 'snacks available for purchase'
+ summary: 'snacks available for purchase',
},
mp: {
type: 'hint',
code: 'snacks',
- summary: 'snacks available for purchase at the seat'
+ summary: 'snacks available for purchase at the seat',
},
bf: {
type: 'hint',
code: 'barrier-free',
- summary: 'barrier-free'
+ summary: 'barrier-free',
},
rg: {
type: 'hint',
code: 'barrier-free-vehicle',
- summary: 'barrier-free vehicle'
+ summary: 'barrier-free vehicle',
},
bt: {
type: 'hint',
code: 'on-board-bistro',
- summary: 'Bordbistro available'
+ summary: 'Bordbistro available',
},
br: {
type: 'hint',
code: 'on-board-restaurant',
- summary: 'Bordrestaurant available'
+ summary: 'Bordrestaurant available',
},
ki: {
type: 'hint',
code: 'childrens-area',
- summary: `children's area available`
+ summary: 'children\'s area available',
},
kk: {
type: 'hint',
code: 'parents-childrens-compartment',
- summary: `parent-and-children compartment available`
+ summary: 'parent-and-children compartment available',
},
kr: {
type: 'hint',
code: 'kids-service',
- summary: 'DB Kids Service available'
+ summary: 'DB Kids Service available',
},
ls: {
type: 'hint',
code: 'power-sockets',
- summary: 'power sockets available'
+ summary: 'power sockets available',
},
ev: {
type: 'hint',
code: 'replacement-service',
- summary: 'replacement service'
+ summary: 'replacement service',
},
kl: {
type: 'hint',
code: 'air-conditioned',
- summary: 'air-conditioned vehicle'
+ summary: 'air-conditioned vehicle',
},
r0: {
type: 'hint',
code: 'upward-escalator',
- summary: 'upward escalator'
+ summary: 'upward escalator',
},
au: {
type: 'hint',
code: 'elevator',
- summary: 'elevator available'
+ summary: 'elevator available',
},
ck: {
type: 'hint',
code: 'komfort-checkin',
- summary: 'Komfort-Checkin available'
+ summary: 'Komfort-Checkin available',
},
it: {
type: 'hint',
code: 'ice-sprinter',
- summary: 'ICE Sprinter service'
+ summary: 'ICE Sprinter service',
},
rp: {
type: 'hint',
code: 'compulsory-reservation',
- summary: 'compulsory seat reservation'
+ summary: 'compulsory seat reservation',
},
rm: {
type: 'hint',
code: 'optional-reservation',
- summary: 'optional seat reservation'
+ summary: 'optional seat reservation',
},
scl: {
type: 'hint',
code: 'all-2nd-class-seats-reserved',
- summary: 'all 2nd class seats reserved'
+ summary: 'all 2nd class seats reserved',
},
acl: {
type: 'hint',
code: 'all-seats-reserved',
- summary: 'all seats reserved'
+ summary: 'all seats reserved',
},
sk: {
type: 'hint',
code: 'oversize-luggage-forbidden',
- summary: 'oversize luggage not allowed'
+ summary: 'oversize luggage not allowed',
},
hu: {
type: 'hint',
code: 'animals-forbidden',
- summary: 'animals not allowed, except guide dogs'
+ summary: 'animals not allowed, except guide dogs',
},
ik: {
type: 'hint',
code: 'baby-cot-required',
- summary: 'baby cot/child seat required'
+ summary: 'baby cot/child seat required',
},
ee: {
type: 'hint',
code: 'on-board-entertainment',
- summary: 'on-board entertainment available'
+ summary: 'on-board entertainment available',
},
toilet: {
type: 'hint',
code: 'toilet',
- summary: 'toilet available'
+ summary: 'toilet available',
},
oc: {
type: 'hint',
code: 'wheelchair-accessible-toilet',
- summary: 'wheelchair-accessible toilet available'
+ summary: 'wheelchair-accessible toilet available',
},
iz: {
type: 'hint',
code: 'intercity-2',
- summary: 'Intercity 2'
- }
+ summary: 'Intercity 2',
+ },
})
const codesByText = Object.assign(Object.create(null), {
diff --git a/p/db/loyalty-cards.js b/p/db/loyalty-cards.js
index 3445c2f60..e91a57231 100644
--- a/p/db/loyalty-cards.js
+++ b/p/db/loyalty-cards.js
@@ -6,18 +6,26 @@ const c = {
HALBTAXABO: Symbol('HalbtaxAbo'),
VOORDEELURENABO: Symbol('Voordeelurenabo'),
SHCARD: Symbol('SH-Card'),
- GENERALABONNEMENT: Symbol('General-Abonnement')
+ GENERALABONNEMENT: Symbol('General-Abonnement'),
}
// see https://gist.github.com/juliuste/202bb04f450a79f8fa12a2ec3abcd72d
const formatLoyaltyCard = (data) => {
if (data.type === c.BAHNCARD) {
- if (data.discount === 25) return data.class === 1 ? 1 : 2
- if (data.discount === 50) return data.class === 1 ? 3 : 4
+ if (data.discount === 25) return data.class === 1
+ ? 1
+ : 2
+ if (data.discount === 50) return data.class === 1
+ ? 3
+ : 4
}
if (data.type === c.VORTEILSCARD) return 9
- if (data.type === c.HALBTAXABO) return data.railplus ? 10 : 11
- if (data.type === c.VOORDEELURENABO) return data.railplus ? 12 : 13
+ if (data.type === c.HALBTAXABO) return data.railplus
+ ? 10
+ : 11
+ if (data.type === c.VOORDEELURENABO) return data.railplus
+ ? 12
+ : 13
if (data.type === c.SHCARD) return 14
if (data.type === c.GENERALABONNEMENT) return 15
return 0
diff --git a/p/db/products.js b/p/db/products.js
index 219bad468..92207a5fb 100644
--- a/p/db/products.js
+++ b/p/db/products.js
@@ -6,7 +6,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'national',
@@ -14,7 +14,7 @@ const products = [
bitmasks: [2],
name: 'InterCity & EuroCity',
short: 'IC/EC',
- default: true
+ default: true,
},
{
id: 'regionalExpress',
@@ -22,7 +22,7 @@ const products = [
bitmasks: [4],
name: 'RegionalExpress & InterRegio',
short: 'RE/IR',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -30,7 +30,7 @@ const products = [
bitmasks: [8],
name: 'Regio',
short: 'RB',
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -38,7 +38,7 @@ const products = [
bitmasks: [16],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -46,7 +46,7 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'B',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -54,7 +54,7 @@ const products = [
bitmasks: [64],
name: 'Ferry',
short: 'F',
- default: true
+ default: true,
},
{
id: 'subway',
@@ -62,7 +62,7 @@ const products = [
bitmasks: [128],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -70,7 +70,7 @@ const products = [
bitmasks: [256],
name: 'Tram',
short: 'T',
- default: true
+ default: true,
},
{
id: 'taxi',
@@ -78,8 +78,8 @@ const products = [
bitmasks: [512],
name: 'Group Taxi',
short: 'Taxi',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/insa/products.js b/p/insa/products.js
index 37edb087a..72f614c06 100644
--- a/p/insa/products.js
+++ b/p/insa/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'national',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2],
name: 'InterCity & EuroCity',
short: 'IC/EC',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [8],
name: 'RegionalExpress & RegionalBahn',
short: 'RE/RB',
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [16],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [32],
name: 'Tram',
short: 'T',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [64, 128],
name: 'Bus',
short: 'B',
- default: true
+ default: true,
},
{
id: 'tourismTrain',
@@ -53,8 +53,8 @@ const products = [
bitmasks: [256],
name: 'Tourism Train',
short: 'TT',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/invg/products.js b/p/invg/products.js
index ba9549146..8b838735c 100644
--- a/p/invg/products.js
+++ b/p/invg/products.js
@@ -6,7 +6,7 @@ const products = [
bitmasks: [1, 16],
name: 'Bus',
short: 'Bus',
- default: true // the other `bus` has `false`
+ default: true, // the other `bus` has `false`
},
{
id: 'express-train',
@@ -14,7 +14,7 @@ const products = [
bitmasks: [2],
name: 'High-speed train',
short: 'Train',
- default: false
+ default: false,
},
{
id: 'regional-train',
@@ -22,7 +22,7 @@ const products = [
bitmasks: [4],
name: 'Regional train',
short: 'Train',
- default: false
+ default: false,
},
{
id: 'local-train',
@@ -30,7 +30,7 @@ const products = [
bitmasks: [8],
name: 'Nahverkehrszug',
short: 'Zug',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -38,7 +38,7 @@ const products = [
bitmasks: [32],
name: 'Ferry',
short: 'Ferry',
- default: false
+ default: false,
},
{
id: 'subway',
@@ -46,7 +46,7 @@ const products = [
bitmasks: [64],
name: 'Subway',
short: 'Subway',
- default: false
+ default: false,
},
{
id: 'tram',
@@ -54,7 +54,7 @@ const products = [
bitmasks: [128],
name: 'Tram',
short: 'Tram',
- default: false
+ default: false,
},
{
id: 'on-demand',
@@ -62,8 +62,8 @@ const products = [
bitmasks: [256],
name: 'On-demand traffic',
short: 'on demand',
- default: false
- }
+ default: false,
+ },
]
export {
diff --git a/p/irish-rail/products.js b/p/irish-rail/products.js
index 30f413358..d975b19de 100644
--- a/p/irish-rail/products.js
+++ b/p/irish-rail/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [2],
name: 'InterCity',
short: 'IC',
- default: true
+ default: true,
},
// todo: 4
{
@@ -14,7 +14,7 @@ const products = [
bitmasks: [8],
name: 'Commuter',
short: 'Commuter',
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -22,7 +22,7 @@ const products = [
bitmasks: [16],
name: 'Dublin Area Rapid Transit',
short: 'DART',
- default: true
+ default: true,
},
// todo: 32
{
@@ -31,8 +31,8 @@ const products = [
bitmasks: [64],
name: 'LUAS Tram',
short: 'LUAS',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/mobil-nrw/products.js b/p/mobil-nrw/products.js
index 4add90051..dff0d7134 100644
--- a/p/mobil-nrw/products.js
+++ b/p/mobil-nrw/products.js
@@ -72,7 +72,7 @@ const products = [
name: 'EC/IC',
short: 'EC/IC',
default: true,
- }
+ },
]
export {
diff --git a/p/mobiliteit-lu/products.js b/p/mobiliteit-lu/products.js
index 2602bce64..61a734843 100644
--- a/p/mobiliteit-lu/products.js
+++ b/p/mobiliteit-lu/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'local train (TGV/ICE)',
short: 'TGV/ICE',
- default: true
+ default: true,
},
{
id: 'national-train',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2, 4],
name: 'national train (IC/RE/IRE)',
short: 'IC/RE/IRE',
- default: true
+ default: true,
},
{
id: 'local-train',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [8],
name: 'local train (RB/TER)',
short: 'RB/TER',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -37,8 +37,8 @@ const products = [
bitmasks: [256],
name: 'Tram',
short: 'Tram',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/nahsh/index.js b/p/nahsh/index.js
index bfd528a2c..502f2d31c 100644
--- a/p/nahsh/index.js
+++ b/p/nahsh/index.js
@@ -40,14 +40,14 @@ const parseJourneyWithTickets = ({parsed}, j) => {
if (!tariff || !Array.isArray(t.fareL)) continue
for (let v of t.fareL) {
const variant = v.name
- if(!variant) continue
+ if (!variant) continue
const ticket = {
name: [tariff, variant].join(' - '),
tariff,
- variant
+ variant,
}
if (v.prc && Number.isInteger(v.prc) && v.cur) {
- ticket.amount = v.prc/100
+ ticket.amount = v.prc / 100
ticket.currency = v.cur
} else {
ticket.amount = null
diff --git a/p/nahsh/products.js b/p/nahsh/products.js
index 07d5e36c1..09265bb91 100644
--- a/p/nahsh/products.js
+++ b/p/nahsh/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'High-speed rail',
short: 'ICE/HSR',
- default: true
+ default: true,
},
{
id: 'national',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2],
name: 'InterCity & EuroCity',
short: 'IC/EC',
- default: true
+ default: true,
},
{ // todo: also includes EN?
id: 'interregional',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [4],
name: 'Interregional',
short: 'IR',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [8],
name: 'Regional & RegionalExpress',
short: 'RB/RE',
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [16],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'B',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -53,7 +53,7 @@ const products = [
bitmasks: [64],
name: 'Ferry',
short: 'F',
- default: true
+ default: true,
},
{
id: 'subway',
@@ -61,7 +61,7 @@ const products = [
bitmasks: [128],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -69,7 +69,7 @@ const products = [
bitmasks: [256],
name: 'Tram',
short: 'T',
- default: true
+ default: true,
},
{
id: 'onCall',
@@ -77,8 +77,8 @@ const products = [
bitmasks: [512],
name: 'On-call transit',
short: 'on-call',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/nvv/products.js b/p/nvv/products.js
index 0b7137d6c..7b2edc9b7 100644
--- a/p/nvv/products.js
+++ b/p/nvv/products.js
@@ -6,7 +6,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'national',
@@ -14,7 +14,7 @@ const products = [
bitmasks: [2],
name: 'EuroCity/InterCity',
short: 'EC/IC',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -22,7 +22,7 @@ const products = [
bitmasks: [4],
name: 'Regionalzug',
short: 'RE/RB',
- default: true
+ default: true,
},
{
id: 'regiotram',
@@ -30,7 +30,7 @@ const products = [
bitmasks: [1024, 16, 8], // it is `1048` actually
name: 'RegioTram',
short: 'RegioTram',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -38,7 +38,7 @@ const products = [
bitmasks: [4, 32],
name: 'Tram',
short: 'Tram',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -46,7 +46,7 @@ const products = [
bitmasks: [128, 64], // it is `192` actually
name: 'Bus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'on-call',
@@ -54,8 +54,8 @@ const products = [
bitmasks: [512],
name: 'AnrufSammelTaxi',
short: 'Sammeltaxi',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/oebb/index.js b/p/oebb/index.js
index 9736ada16..ecf005619 100644
--- a/p/oebb/index.js
+++ b/p/oebb/index.js
@@ -26,7 +26,7 @@ const fixWeirdPOIs = ({parsed}) => {
type: 'location',
id: parsed.id,
poi: true,
- name: parsed.name
+ name: parsed.name,
}, parsed.location)
}
return parsed
diff --git a/p/oebb/products.js b/p/oebb/products.js
index f2fd67086..f0f4fbe18 100644
--- a/p/oebb/products.js
+++ b/p/oebb/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress & RailJet',
short: 'ICE/RJ',
- default: true
+ default: true,
},
{
id: 'national',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2, 4],
name: 'InterCity & EuroCity',
short: 'IC/EC',
- default: true
+ default: true,
},
{
id: 'interregional',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [8, 4096],
name: 'Durchgangszug & EuroNight',
short: 'D/EN',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [16],
name: 'Regional & RegionalExpress',
short: 'R/REX',
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [32],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [64],
name: 'Bus',
short: 'B',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -53,7 +53,7 @@ const products = [
bitmasks: [128],
name: 'Ferry',
short: 'F',
- default: true
+ default: true,
},
{
id: 'subway',
@@ -61,7 +61,7 @@ const products = [
bitmasks: [256],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -69,7 +69,7 @@ const products = [
bitmasks: [512],
name: 'Tram',
short: 'T',
- default: true
+ default: true,
},
{
id: 'onCall',
@@ -77,8 +77,8 @@ const products = [
bitmasks: [2048],
name: 'on-call transit, lifts, etc',
short: 'on-call/lift',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/pkp/products.js b/p/pkp/products.js
index 6b109d026..a170800ae 100644
--- a/p/pkp/products.js
+++ b/p/pkp/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1, 2],
name: 'ExpressInterCity & ExpressInterCity Premium & InterCityExpress',
short: 'EIC/EIP/ICE',
- default: true
+ default: true,
},
{
id: 'long-distance-train',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [4],
name: 'InterCity & Twoje Linie Kolejowe & EuroCity & EuroNight',
short: 'IC/TLK/EC/EN',
- default: true
+ default: true,
},
{
id: 'regional-train',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [8],
name: 'Regional',
short: 'R',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -29,8 +29,8 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'B',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/rejseplanen/products.js b/p/rejseplanen/products.js
index 8c7ba9cca..e04e90063 100644
--- a/p/rejseplanen/products.js
+++ b/p/rejseplanen/products.js
@@ -38,7 +38,7 @@ const products = [
name: 'S-Tog A/B/Bx/C/E/F/H',
short: 'S',
default: true,
- }
+ },
]
export {
diff --git a/p/rmv/products.js b/p/rmv/products.js
index f9adbab22..5869c0125 100644
--- a/p/rmv/products.js
+++ b/p/rmv/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress/Fernzug',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'long-distance-train',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2],
name: 'EuroCity/InterCity/EuroNight/InterRegio',
short: 'EC/IC/EN/IR',
- default: true
+ default: true,
},
{
id: 'regiona-train',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [4],
name: 'RegionalExpress/Regionalbahn',
short: 'RE/RB',
- default: true
+ default: true,
},
{
id: 's-bahn',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [8],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'u-bahn',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [16],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [32],
name: 'Straßenbahn',
short: 'Tram',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -53,7 +53,7 @@ const products = [
bitmasks: [64, 128],
name: 'Bus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'watercraft',
@@ -61,7 +61,7 @@ const products = [
bitmasks: [256],
name: 'Schiff',
short: 'Schiff',
- default: true
+ default: true,
},
{
id: 'ast',
@@ -69,7 +69,7 @@ const products = [
bitmasks: [512],
name: 'Anruf-Sammel-Taxi',
short: 'AST',
- default: true
+ default: true,
},
{
id: 'cable-car',
@@ -77,8 +77,8 @@ const products = [
bitmasks: [1024],
name: 'Seilbahn',
short: 'Seilbahn',
- default: true
- }
+ default: true,
+ },
// todo: remaining bitmask `1015`
]
diff --git a/p/rsag/products.js b/p/rsag/products.js
index ba9d431d8..0442aeba1 100644
--- a/p/rsag/products.js
+++ b/p/rsag/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'ic-ec',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2],
name: 'InterCity & EuroCity',
short: 'IC/EC',
- default: true
+ default: true,
},
{
id: 'long-distance-train',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [4],
name: 'InterRegio/high-speed train',
short: 'IR/other',
- default: true
+ default: true,
},
{
id: 'regional-train', // todo: rename
@@ -29,7 +29,7 @@ const products = [
bitmasks: [8],
name: 'regional train',
short: 'RE/RB',
- default: true
+ default: true,
},
{
id: 's-bahn',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [16],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'B',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -53,7 +53,7 @@ const products = [
bitmasks: [64],
name: 'Schiff',
short: 'F',
- default: true
+ default: true,
},
{
id: 'u-bahn',
@@ -61,7 +61,7 @@ const products = [
bitmasks: [128],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -69,7 +69,7 @@ const products = [
bitmasks: [256],
name: 'Tram',
short: 'T',
- default: true
+ default: true,
},
{
id: 'on-call',
@@ -77,8 +77,8 @@ const products = [
bitmasks: [512],
name: 'Taxi/on-call vehicle',
short: 'AST',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/saarfahrplan/index.js b/p/saarfahrplan/index.js
index 39fdc09fb..b578fdbd5 100644
--- a/p/saarfahrplan/index.js
+++ b/p/saarfahrplan/index.js
@@ -29,7 +29,7 @@ const profile = {
refreshJourneyUseOutReconL: true,
trip: true,
radar: true,
- reachableFrom: true
+ reachableFrom: true,
}
export {
diff --git a/p/saarfahrplan/products.js b/p/saarfahrplan/products.js
index d1bd22388..a43d2f54b 100644
--- a/p/saarfahrplan/products.js
+++ b/p/saarfahrplan/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [8192],
name: 'Hochgeschwindigkeitszug',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'national',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [4096],
name: 'InterCity & EuroCity',
short: 'IC/EC',
- default: true
+ default: true,
},
{
id: 'interregional',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [2048],
name: 'InterRegio',
short: 'IR',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [1024],
name: 'Regionalzug',
short: 'RB ?', // todo
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [512],
name: 'S-Bahn',
short: 'S-Bahn',
- default: true
+ default: true,
},
{
id: 'subway',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [256],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'saarbahn',
@@ -53,7 +53,7 @@ const products = [
bitmasks: [128],
name: 'Saarbahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -61,7 +61,7 @@ const products = [
bitmasks: [64],
name: 'Bus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'watercraft',
@@ -69,7 +69,7 @@ const products = [
bitmasks: [32], // todo: correct?
name: 'Schiff',
short: 'Schiff',
- default: true
+ default: true,
},
{
id: 'onCall',
@@ -77,7 +77,7 @@ const products = [
bitmasks: [16],
name: 'Anruf-Sammel-Taxi',
short: 'AST',
- default: true
+ default: true,
},
{
id: 'school-bus',
@@ -85,8 +85,8 @@ const products = [
bitmasks: [8],
name: 'Schulbus',
short: 'Schulbus',
- default: true
- }
+ default: true,
+ },
// todo: `1`, `2`, `4` bitmasks?
]
diff --git a/p/sbahn-muenchen/index.js b/p/sbahn-muenchen/index.js
index fdbc8ee33..44c6ab61c 100644
--- a/p/sbahn-muenchen/index.js
+++ b/p/sbahn-muenchen/index.js
@@ -19,7 +19,7 @@ const profile = {
trip: true,
radar: true,
refreshJourney: true,
- reachableFrom: true
+ reachableFrom: true,
}
export {
diff --git a/p/sbahn-muenchen/products.js b/p/sbahn-muenchen/products.js
index 48501a3b1..70dd882d0 100644
--- a/p/sbahn-muenchen/products.js
+++ b/p/sbahn-muenchen/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'ic-ec',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2],
name: 'InterCity/EuroCity',
short: 'IC/EC',
- default: true
+ default: true,
},
{
id: 'ir-d',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [4],
name: 'Interregio/Schnellzug',
short: 'IRE',
- default: true
+ default: true,
},
{
id: 'region',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [8],
name: 'Regio- und Nahverkehr',
short: 'RE/RB',
- default: true
+ default: true,
},
{
id: 'sbahn',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [16],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'Bus',
- default: true
+ default: true,
},
// todo: 64
{
@@ -54,7 +54,7 @@ const products = [
bitmasks: [128],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -62,7 +62,7 @@ const products = [
bitmasks: [256],
name: 'Straßenbahn',
short: 'Tram',
- default: true
+ default: true,
},
{
id: 'on-call',
@@ -70,8 +70,8 @@ const products = [
bitmasks: [512],
name: 'Anrufsammeltaxi',
short: 'Sammeltaxi',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/sncb/index.js b/p/sncb/index.js
index b94d6e353..ec1cce7bc 100644
--- a/p/sncb/index.js
+++ b/p/sncb/index.js
@@ -21,12 +21,12 @@ const transformReq = (ctx, req) => ({...req, agent})
// todo: this is ugly
const lineNameWithoutFahrtNr = ({parsed}) => {
const {name, fahrtNr} = parsed
- if (!name || !fahrtNr || !/s\d/i.test(name)) return parsed
+ if (!name || !fahrtNr || !(/s\d/i).test(name)) return parsed
const i = name.indexOf(fahrtNr)
if (i < 0) return parsed
if (
- /\s/.test(name[i - 1] || '') && // space before
+ (/\s/).test(name[i - 1] || '') && // space before
name.length === i + fahrtNr.length // nothing behind
) return {
...parsed,
@@ -35,16 +35,16 @@ const lineNameWithoutFahrtNr = ({parsed}) => {
return parsed
}
eql(lineNameWithoutFahrtNr({
- parsed: {name: 'THA 123', fahrtNr: '123'}
+ parsed: {name: 'THA 123', fahrtNr: '123'},
}).name, 'THA 123')
eql(lineNameWithoutFahrtNr({
- parsed: {name: 'S1 123', fahrtNr: '123'}
+ parsed: {name: 'S1 123', fahrtNr: '123'},
}).name, 'S1')
eql(lineNameWithoutFahrtNr({
- parsed: {name: 'S1-123', fahrtNr: '123'}
+ parsed: {name: 'S1-123', fahrtNr: '123'},
}).name, 'S1-123')
eql(lineNameWithoutFahrtNr({
- parsed: {name: 'S1 123a', fahrtNr: '123'}
+ parsed: {name: 'S1 123a', fahrtNr: '123'},
}).name, 'S1 123a')
const profile = {
diff --git a/p/sncb/products.js b/p/sncb/products.js
index 40317fdd5..13e70fb54 100644
--- a/p/sncb/products.js
+++ b/p/sncb/products.js
@@ -6,7 +6,7 @@ const products = [ // todo: 2, 8, 32, 128
bitmasks: [1],
name: 'high-speed train',
short: 'HST',
- default: true
+ default: true,
},
{
id: 'intercity-p',
@@ -14,7 +14,7 @@ const products = [ // todo: 2, 8, 32, 128
bitmasks: [4],
name: 'InterCity/Peak',
short: 'IC/P',
- default: true
+ default: true,
},
{
id: 's-train',
@@ -22,7 +22,7 @@ const products = [ // todo: 2, 8, 32, 128
bitmasks: [16],
name: 'S-train',
short: 'S',
- default: true
+ default: true,
},
{
id: 'local-train',
@@ -30,7 +30,7 @@ const products = [ // todo: 2, 8, 32, 128
bitmasks: [64],
name: 'local train',
short: 'L',
- default: true
+ default: true,
},
{
id: 'metro',
@@ -38,7 +38,7 @@ const products = [ // todo: 2, 8, 32, 128
bitmasks: [256],
name: 'Metro',
short: 'M',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -46,7 +46,7 @@ const products = [ // todo: 2, 8, 32, 128
bitmasks: [512],
name: 'bus',
short: 'bus',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -54,8 +54,8 @@ const products = [ // todo: 2, 8, 32, 128
bitmasks: [1024],
name: 'tram',
short: 'tram',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/svv/products.js b/p/svv/products.js
index 38588c0b2..f620f9112 100644
--- a/p/svv/products.js
+++ b/p/svv/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1, 2],
name: 'Bahn & S-Bahn',
short: 'S/Zug',
- default: true
+ default: true,
},
{
id: 'u-bahn',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [4],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'strassenbahn',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [16],
name: 'Strassenbahn',
short: 'Str',
- default: true
+ default: true,
},
{
id: 'fernbus',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [32],
name: 'Fernbus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'regionalbus',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [64],
name: 'Regionalbus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'stadtbus',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [128],
name: 'Stadtbus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'seilbahn-zahnradbahn',
@@ -53,7 +53,7 @@ const products = [
bitmasks: [256],
name: 'Seil-/Zahnradbahn',
short: 'Seil-/Zahnradbahn',
- default: true
+ default: true,
},
{
id: 'schiff',
@@ -61,7 +61,7 @@ const products = [
bitmasks: [512],
name: 'Schiff',
short: 'F',
- default: true
+ default: true,
},
]
diff --git a/p/vbb/parse-loc-dhid.js b/p/vbb/parse-loc-dhid.js
index a787c166b..21417c914 100644
--- a/p/vbb/parse-loc-dhid.js
+++ b/p/vbb/parse-loc-dhid.js
@@ -1,10 +1,10 @@
const dhidPrefix = 'A×'
const parseAndAddLocationDHID = (loc, l) => {
- if (!Array.isArray(l.gidL)) return;
+ if (!Array.isArray(l.gidL)) return
const dhidGid = l.gidL.find(gid => gid.slice(0, dhidPrefix.length) === dhidPrefix)
- if (!dhidGid) return;
+ if (!dhidGid) return
const dhid = dhidGid.slice(dhidPrefix.length)
// It seems that the DHID of the parent station is being used, not of the stop.
diff --git a/p/vbb/products.js b/p/vbb/products.js
index 9ad80d73a..bf005ebe1 100644
--- a/p/vbb/products.js
+++ b/p/vbb/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'subway',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [4],
name: 'Tram',
short: 'T',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [8],
name: 'Bus',
short: 'B',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [16],
name: 'Fähre',
short: 'F',
- default: true
+ default: true,
},
{
id: 'express',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [32],
name: 'IC/ICE',
short: 'E',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -53,8 +53,8 @@ const products = [
bitmasks: [64],
name: 'RB/RE',
short: 'R',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/vbn/products.js b/p/vbn/products.js
index 1846d564f..5be30e611 100644
--- a/p/vbn/products.js
+++ b/p/vbn/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'national-train',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2, 4],
name: 'InterCity, EuroCity, CityNightLine, InterRegio',
short: 'IC/EC/CNL/IR',
- default: true
+ default: true,
},
{
id: 'local-train',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [8],
name: 'Nahverkehr',
short: 'Nahv.',
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [16],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'watercraft',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [64],
name: 'Schiff',
short: 'Schiff',
- default: true
+ default: true,
},
{
id: 'subway',
@@ -53,7 +53,7 @@ const products = [
bitmasks: [128],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -61,7 +61,7 @@ const products = [
bitmasks: [256],
name: 'Tram',
short: 'Tram',
- default: true
+ default: true,
},
{
id: 'dial-a-ride',
@@ -69,8 +69,8 @@ const products = [
bitmasks: [256],
name: 'Anrufverkehr',
short: 'AST',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/vmt/products.js b/p/vmt/products.js
index cfe752790..a1c3bf531 100644
--- a/p/vmt/products.js
+++ b/p/vmt/products.js
@@ -6,7 +6,7 @@ const products = [
bitmasks: [1, 2, 4],
name: 'long-distance train',
short: 'ICE/IC/EC',
- default: true
+ default: true,
},
{
id: 'regional-train',
@@ -15,7 +15,7 @@ const products = [
bitmasks: [8, 16],
name: 'regional train',
short: 'RE/RB',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -23,7 +23,7 @@ const products = [
bitmasks: [32],
name: 'tram',
short: 'tram',
- default: true
+ default: true,
},
// todo: what are `64` & `128`?
{
@@ -32,8 +32,8 @@ const products = [
bitmasks: [256],
name: 'bus',
short: 'bus',
- default: true
- }
+ default: true,
+ },
]
export {
diff --git a/p/vsn/products.js b/p/vsn/products.js
index 49efd25ed..c0c4df019 100644
--- a/p/vsn/products.js
+++ b/p/vsn/products.js
@@ -5,7 +5,7 @@ const products = [
bitmasks: [1],
name: 'InterCityExpress',
short: 'ICE',
- default: true
+ default: true,
},
{
id: 'national',
@@ -13,7 +13,7 @@ const products = [
bitmasks: [2],
name: 'Fernzug',
short: 'IC/EC/CNL',
- default: true
+ default: true,
},
{
id: 'regionalExpress',
@@ -21,7 +21,7 @@ const products = [
bitmasks: [4],
name: 'RegionalExpress & InterRegio',
short: 'RE/IR',
- default: true
+ default: true,
},
{
id: 'regional',
@@ -29,7 +29,7 @@ const products = [
bitmasks: [8],
name: 'Nahverhehr',
short: 'NV',
- default: true
+ default: true,
},
{
id: 'suburban',
@@ -37,7 +37,7 @@ const products = [
bitmasks: [16],
name: 'S-Bahn',
short: 'S',
- default: true
+ default: true,
},
{
id: 'bus',
@@ -45,7 +45,7 @@ const products = [
bitmasks: [32],
name: 'Bus',
short: 'Bus',
- default: true
+ default: true,
},
{
id: 'ferry',
@@ -53,7 +53,7 @@ const products = [
bitmasks: [64],
name: 'Schiff',
short: 'F',
- default: true
+ default: true,
},
{
id: 'subway',
@@ -61,7 +61,7 @@ const products = [
bitmasks: [128],
name: 'U-Bahn',
short: 'U',
- default: true
+ default: true,
},
{
id: 'tram',
@@ -69,7 +69,7 @@ const products = [
bitmasks: [256],
name: 'Straßen-/Stadtbahn',
short: 'T',
- default: true
+ default: true,
},
{
id: 'anrufSammelTaxi',
@@ -77,7 +77,7 @@ const products = [
bitmasks: [512],
name: 'Anruf-Sammel-Taxi',
short: 'AST',
- default: true
+ default: true,
},
]
diff --git a/parse/arrival-or-departure.js b/parse/arrival-or-departure.js
index 0da93f2d1..41ba2a848 100644
--- a/parse/arrival-or-departure.js
+++ b/parse/arrival-or-departure.js
@@ -18,8 +18,8 @@ const createParseArrOrDep = (prefix) => {
const tPrognosed = d.stbStop[prefix + 'TimeR']
const tzOffset = d.stbStop[prefix + 'TZOffset'] || null
const cancelled = !!d.stbStop[prefix + 'Cncl']
- const plPlanned = d.stbStop[prefix + 'PlatfS'] || (d.stbStop[prefix + 'PltfS'] && d.stbStop[prefix + 'PltfS'].txt) || null
- const plPrognosed = d.stbStop[prefix + 'PlatfR'] || (d.stbStop[prefix + 'PltfR'] && d.stbStop[prefix + 'PltfR'].txt) || null
+ const plPlanned = d.stbStop[prefix + 'PlatfS'] || d.stbStop[prefix + 'PltfS'] && d.stbStop[prefix + 'PltfS'].txt || null
+ const plPrognosed = d.stbStop[prefix + 'PlatfR'] || d.stbStop[prefix + 'PltfR'] && d.stbStop[prefix + 'PltfR'].txt || null
const res = {
tripId: d.jid,
@@ -33,7 +33,7 @@ const createParseArrOrDep = (prefix) => {
line: d.line || null,
remarks: [],
origin: null,
- destination: null
+ destination: null,
}
if (prefix === DEPARTURE && Array.isArray(d.prodL) && d.prodL[0] && locL[d.prodL[0].tLocX]) {
@@ -59,18 +59,18 @@ const createParseArrOrDep = (prefix) => {
if (opt.remarks) {
res.remarks = findRemarks([
- ...(d.remL || []),
- ...(d.msgL || []),
- ...(d.stbStop.remL || []),
- ...(d.stbStop.msgL || []),
+ ...d.remL || [],
+ ...d.msgL || [],
+ ...d.stbStop.remL || [],
+ ...d.stbStop.msgL || [],
]).map(([remark]) => remark)
}
if (opt.stopovers && Array.isArray(d.stopL)) {
// Filter stations the train passes without stopping, as this doesn't comply with FPTF (yet).
const stopovers = d.stopL
- .map(st => profile.parseStopover(ctx, st, d.date))
- .filter(st => !st.passBy)
+ .map(st => profile.parseStopover(ctx, st, d.date))
+ .filter(st => !st.passBy)
if (prefix === ARRIVAL) res.previousStopovers = stopovers
else if (prefix === DEPARTURE) res.nextStopovers = stopovers
}
diff --git a/parse/common.js b/parse/common.js
index f7693cf64..c0ed25532 100644
--- a/parse/common.js
+++ b/parse/common.js
@@ -56,15 +56,15 @@ const parseCommonData = (_ctx) => {
if ('number' === typeof idx) parents[0].hint = common.hints[idx]
})
matches['**.remL'].forEach(([idxs, parents]) => {
- if (!Array.isArray(idxs)) return;
+ if (!Array.isArray(idxs)) return
parents[0].hints = idxs
- .filter(idx => !!common.hints[idx])
- .map(idx => common.hints[idx])
+ .filter(idx => !!common.hints[idx])
+ .map(idx => common.hints[idx])
})
matches['**.rRefL'].forEach(([idxs, parents]) => {
parents[0].hints = idxs
- .filter(idx => !!common.hints[idx])
- .map(idx => common.hints[idx])
+ .filter(idx => !!common.hints[idx])
+ .map(idx => common.hints[idx])
})
}
@@ -83,8 +83,8 @@ const parseCommonData = (_ctx) => {
matches['**.msgL'].forEach(([refs, parents]) => {
// todo: store as parents[0].(hints|warnings)
parents[0].remarkRefs = refs
- .map(parseRemarkRef)
- .filter(ref => ref !== null)
+ .map(parseRemarkRef)
+ .filter(ref => ref !== null)
})
common.locations = []
diff --git a/parse/date-time.js b/parse/date-time.js
index 4110b212a..753d3eeae 100644
--- a/parse/date-time.js
+++ b/parse/date-time.js
@@ -12,7 +12,9 @@ const parseDateTime = ({profile}, date, time, tzOffset = null, timestamp = false
throw new Error('invalid time format: ' + time)
}
- const daysOffset = time.length > 6 ? parseInt(time.slice(0, -6)) : 0
+ const daysOffset = time.length > 6
+ ? parseInt(time.slice(0, -6))
+ : 0
let timezone
if (tzOffset !== null) {
@@ -26,10 +28,12 @@ const parseDateTime = ({profile}, date, time, tzOffset = null, timestamp = false
let dt = DateTime.fromISO(pDate.join('-') + 'T' + pTime.join(':'), {
locale: profile.locale,
- zone: timezone
+ zone: timezone,
})
if (daysOffset > 0) dt = dt.plus({days: daysOffset})
- return timestamp ? dt.toMillis() : dt.toISO({suppressMilliseconds: true})
+ return timestamp
+ ? dt.toMillis()
+ : dt.toISO({suppressMilliseconds: true})
}
export {
diff --git a/parse/find-remarks.js b/parse/find-remarks.js
index bde9f64f6..a7c3803ad 100644
--- a/parse/find-remarks.js
+++ b/parse/find-remarks.js
@@ -13,8 +13,8 @@ import flatMap from 'lodash/flatMap.js'
const findRemarks = (refs) => {
return flatMap(refs, (ref) => {
return [ref.warning, ref.hint]
- .filter(rem => !!rem)
- .map(rem => [rem, ref])
+ .filter(rem => !!rem)
+ .map(rem => [rem, ref])
})
}
diff --git a/parse/hint.js b/parse/hint.js
index a979a800c..1ee547dbc 100644
--- a/parse/hint.js
+++ b/parse/hint.js
@@ -115,7 +115,9 @@ const parseHint = (ctx, h) => {
if (h.type === 'I' && h.code && h.txtN) {
if (h.code in linkTypesByCode) {
- const text = h.txtN === 'NULL' ? null : h.txtN
+ const text = h.txtN === 'NULL'
+ ? null
+ : h.txtN
return {type: linkTypesByCode[h.code], text}
}
if (h.code === 'TW' && h.txtN[0] === '$') {
@@ -128,14 +130,14 @@ const parseHint = (ctx, h) => {
const text = h.txtN && h.txtN.trim() || ''
const icon = h.icon || null
- const code = h.code || (icon && icon.type && codesByIcon[icon.type]) || null
+ const code = h.code || icon && icon.type && codesByIcon[icon.type] || null
if (h.type === 'M') {
return {
type: 'status',
summary: h.txtS && h.txtS.trim() || '',
code,
- text
+ text,
}
}
@@ -144,14 +146,14 @@ const parseHint = (ctx, h) => {
type: 'status',
code: 'alternative-trip',
text,
- tripId: h.jid
+ tripId: h.jid,
}
}
if (h.type === 'A' || h.type === 'I') {
return {
type: 'hint',
code,
- text
+ text,
}
}
@@ -164,7 +166,7 @@ const parseHint = (ctx, h) => {
return {
type: 'status',
code,
- text
+ text,
}
}
diff --git a/parse/icon.js b/parse/icon.js
index fb190f06e..cea4f8533 100644
--- a/parse/icon.js
+++ b/parse/icon.js
@@ -2,7 +2,7 @@ const parseIcon = (ctx, i) => {
if (i.res === 'Empty') return null
const res = {
type: i.res || null,
- title: i.text || i.txt || i.txtS || null
+ title: i.text || i.txt || i.txtS || null,
}
if (i.fg) res.fgColor = i.fg
if (i.bg) res.bgColor = i.bg
diff --git a/parse/journey-leg.js b/parse/journey-leg.js
index 22b887ccd..3952c4dca 100644
--- a/parse/journey-leg.js
+++ b/parse/journey-leg.js
@@ -24,7 +24,7 @@ const applyRemarks = (leg, refs) => {
toI = leg.stopovers.findIndex(s => s.stop === toLocation)
if (toI < 0) continue
}
- wholeLeg = fromI === 0 && toI === (leg.stopovers.length - 1)
+ wholeLeg = fromI === 0 && toI === leg.stopovers.length - 1
}
if (wholeLeg) addRemark(leg, remark)
@@ -54,7 +54,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
const res = {
origin: clone(pt.dep.location) || null,
- destination: clone(pt.arr.location)
+ destination: clone(pt.arr.location),
}
// HAFAS seems to have a bug where a journey's first leg has a `dTZOffset` of `0`.
@@ -78,7 +78,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
res.arrivalDelay = arr.delay
if (arr.prognosedWhen) res.prognosedArrival = arr.prognosedWhen
- if (pt.jny && ('isRchbl' in pt.jny)) {
+ if (pt.jny && 'isRchbl' in pt.jny) {
res.reachable = !!pt.jny.isRchbl
}
@@ -119,13 +119,21 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
}
}
- const arrPl = profile.parsePlatform(ctx, pt.arr.aPlatfS || (pt.arr.aPltfS !== undefined ? pt.arr.aPltfS.txt : null), pt.arr.aPlatfR || (pt.arr.aPltfR !== undefined ? pt.arr.aPltfR.txt : null), pt.arr.aCncl)
+ const arrPl = profile.parsePlatform(ctx, pt.arr.aPlatfS || (pt.arr.aPltfS !== undefined
+ ? pt.arr.aPltfS.txt
+ : null), pt.arr.aPlatfR || (pt.arr.aPltfR !== undefined
+ ? pt.arr.aPltfR.txt
+ : null), pt.arr.aCncl)
res.arrivalPlatform = arrPl.platform
res.plannedArrivalPlatform = arrPl.plannedPlatform
if (arrPl.prognosedPlatform) res.prognosedArrivalPlatform = arrPl.prognosedPlatform
res.arrivalPrognosisType = profile.parsePrognosisType(ctx, pt.arr.aProgType) || null
- const depPl = profile.parsePlatform(ctx, pt.dep.dPlatfS || (pt.dep.dPltfS !== undefined ? pt.dep.dPltfS.txt : null), pt.dep.dPlatfR || (pt.dep.dPltfR !== undefined ? pt.dep.dPltfR.txt : null), pt.dep.dCncl)
+ const depPl = profile.parsePlatform(ctx, pt.dep.dPlatfS || (pt.dep.dPltfS !== undefined
+ ? pt.dep.dPltfS.txt
+ : null), pt.dep.dPlatfR || (pt.dep.dPltfR !== undefined
+ ? pt.dep.dPltfR.txt
+ : null), pt.dep.dCncl)
res.departurePlatform = depPl.platform
res.plannedDeparturePlatform = depPl.plannedPlatform
if (depPl.prognosedPlatform) res.prognosedDeparturePlatform = depPl.prognosedPlatform
@@ -143,7 +151,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
// filter stations the train passes without stopping, as this doesn't comply with fptf (yet)
res.stopovers = res.stopovers.filter((x) => !x.passBy)
} else if (opt.remarks && Array.isArray(pt.jny.msgL)) {
- applyRemarks(res, pt.jny.msgL);
+ applyRemarks(res, pt.jny.msgL)
}
const freq = pt.jny.freq || {}
@@ -151,7 +159,7 @@ const parseJourneyLeg = (ctx, pt, date) => { // pt = raw leg
if (freq.minC && freq.maxC) {
res.cycle = {
min: freq.minC * 60,
- max: freq.maxC * 60
+ max: freq.maxC * 60,
}
// nr of connections in this frequency, from now on
if (freq.numC) res.cycle.nr = freq.numC
diff --git a/parse/journey.js b/parse/journey.js
index 40cba50e6..f1b471624 100644
--- a/parse/journey.js
+++ b/parse/journey.js
@@ -19,7 +19,7 @@ const parseJourney = (ctx, j) => { // j = raw jouney
const res = {
type: 'journey',
legs,
- refreshToken: (j.recon && j.recon.ctx) || j.ctxRecon || null
+ refreshToken: j.recon && j.recon.ctx || j.ctxRecon || null,
}
const freq = j.freq || {}
diff --git a/parse/line.js b/parse/line.js
index c45bc9117..57fe4f027 100644
--- a/parse/line.js
+++ b/parse/line.js
@@ -6,15 +6,14 @@ const parseLine = ({profile}, p) => {
const res = {
type: 'line',
// This is terrible, but FPTF demands an ID. Let's pray for HAFAS.
- id: (
- p.prodCtx && p.prodCtx.lineId && slugg(p.prodCtx.lineId.trim())
- || name && slugg(name.trim())
- || null
- ),
+ id:
+ p.prodCtx && p.prodCtx.lineId && slugg(p.prodCtx.lineId.trim()) ||
+ name && slugg(name.trim()) ||
+ null,
// todo: what is p.prodCtx.matchId? use as `id`? expose it.
fahrtNr: p.prodCtx && p.prodCtx.num || null,
name,
- public: true
+ public: true,
}
// todo: what is p.number?
// todo: what is p.prodCtx.catCode?
@@ -24,9 +23,9 @@ const parseLine = ({profile}, p) => {
}
if (p.prodCtx && 'string' === typeof p.prodCtx.catOut) {
- const productName = p.prodCtx.catOut.trim();
- if (productName != "") {
- res.productName = productName;
+ const productName = p.prodCtx.catOut.trim()
+ if (productName != '') {
+ res.productName = productName
}
}
diff --git a/parse/location.js b/parse/location.js
index db4a3567d..e06aa15ba 100644
--- a/parse/location.js
+++ b/parse/location.js
@@ -20,13 +20,13 @@ const parseLocation = (ctx, l) => {
const lid = parse(l.lid, {delimiter: '@'})
const res = {
type: 'location',
- id: (l.extId || lid.L || '').replace(leadingZeros, '') || null
+ id: (l.extId || lid.L || '').replace(leadingZeros, '') || null,
}
if (l.crd) {
res.latitude = l.crd.y / 1000000
res.longitude = l.crd.x / 1000000
- } else if (('X' in lid) && ('Y' in lid)) {
+ } else if ('X' in lid && 'Y' in lid) {
res.latitude = lid.Y / 1000000
res.longitude = lid.X / 1000000
}
@@ -35,19 +35,27 @@ const parseLocation = (ctx, l) => {
// todo: https://github.com/public-transport/hafas-client/issues/151
const locL = get(ctx.res, ['common', 'locL'], [])
- const mMastLocX = 'mMastLocX' in l ? l.mMastLocX : NaN
+ const mMastLocX = 'mMastLocX' in l
+ ? l.mMastLocX
+ : NaN
const subStops = (l.stopLocL || [])
- .filter(locX => locX !== mMastLocX)
- .map(locX => locL[locX])
- .filter(s => !!s)
- .map(s => profile.parseLocation(ctx, s))
- .filter(stop => !!stop)
+ .filter(locX => locX !== mMastLocX)
+ .map(locX => locL[locX])
+ .filter(s => !!s)
+ .map(s => profile.parseLocation(ctx, s))
+ .filter(stop => !!stop)
const stop = {
- type: l.isMainMast || subStops.length > 0 ? 'station' : 'stop',
+ type: l.isMainMast || subStops.length > 0
+ ? 'station'
+ : 'stop',
id: res.id,
- name: l.name || lid.O ? profile.parseStationName(ctx, l.name || lid.O) : null,
- location: 'number' === typeof res.latitude ? res : null // todo: remove `.id`
+ name: l.name || lid.O
+ ? profile.parseStationName(ctx, l.name || lid.O)
+ : null,
+ location: 'number' === typeof res.latitude
+ ? res
+ : null, // todo: remove `.id`
}
if (opt.subStops && subStops.length > 0) stop.stops = subStops
@@ -64,11 +72,11 @@ const parseLocation = (ctx, l) => {
if (opt.entrances) {
const entrances = (l.entryLocL || [])
- .map(locX => locL[locX])
- .filter(l => !!l)
- .map(l => profile.parseLocation(ctx, l))
- .filter(loc => !!loc)
- .map(loc => loc.location)
+ .map(locX => locL[locX])
+ .filter(l => !!l)
+ .map(l => profile.parseLocation(ctx, l))
+ .filter(loc => !!loc)
+ .map(loc => loc.location)
if (entrances.length > 0) stop.entrances = entrances
}
@@ -77,14 +85,13 @@ const parseLocation = (ctx, l) => {
}
const locHints = (l.remarkRefs || [])
- .filter(ref => !!ref.hint && Array.isArray(ref.tagL))
- .filter(({tagL}) => (
- tagL.includes('RES_LOC') ||
- tagL.find(t => t.slice(0, 8) === 'RES_LOC_') // e.g. `RES_LOC_H3`
- ))
- .map(ref => ref.hint)
+ .filter(ref => !!ref.hint && Array.isArray(ref.tagL))
+ .filter(({tagL}) => tagL.includes('RES_LOC') ||
+ tagL.find(t => t.slice(0, 8) === 'RES_LOC_'), // e.g. `RES_LOC_H3`
+ )
+ .map(ref => ref.hint)
const hints = [
- ...(l.hints || []),
+ ...l.hints || [],
...locHints,
]
const byType = type => hints.find(h => h.type === type)
@@ -99,13 +106,13 @@ const parseLocation = (ctx, l) => {
}
const otherIds = hints
- .filter(h => h.type === 'foreign-id')
- .filter(h => 'string' === typeof h.text && h.text.includes(':'))
- .map(({text}) => {
- const i = text.indexOf(':')
- return [text.slice(0, i), text.slice(i + 1)]
- })
- .filter(([src]) => src !== 'NULL')
+ .filter(h => h.type === 'foreign-id')
+ .filter(h => 'string' === typeof h.text && h.text.includes(':'))
+ .map(({text}) => {
+ const i = text.indexOf(':')
+ return [text.slice(0, i), text.slice(i + 1)]
+ })
+ .filter(([src]) => src !== 'NULL')
if (otherIds.length > 0) {
if (!stop.ids) stop.ids = {}
for (const [src, id] of otherIds) stop.ids[src] = id
@@ -127,7 +134,9 @@ const seen = Symbol('parseLocation seen items')
const parseLocationWithoutCycles = (ctx, l, ...args) => {
if (ctx[seen] && ctx[seen].includes(l)) return null
- const newSeen = ctx[seen] ? [...ctx[seen], l] : [l]
+ const newSeen = ctx[seen]
+ ? [...ctx[seen], l]
+ : [l]
return parseLocation({...ctx, [seen]: newSeen}, l, ...args)
}
diff --git a/parse/movement.js b/parse/movement.js
index ac616f8c2..9c91578bc 100644
--- a/parse/movement.js
+++ b/parse/movement.js
@@ -8,21 +8,24 @@ const parseMovement = (ctx, m) => { // m = raw movement
const {profile, opt} = ctx
const res = {
- direction: m.dirTxt ? profile.parseStationName(ctx, m.dirTxt) : null,
+ direction: m.dirTxt
+ ? profile.parseStationName(ctx, m.dirTxt)
+ : null,
tripId: m.jid || null,
line: m.line || null,
- location: m.pos ? {
- type: 'location',
- latitude: m.pos.y / 1000000,
- longitude: m.pos.x / 1000000
- } : null,
+ location: m.pos
+ ? {
+ type: 'location',
+ latitude: m.pos.y / 1000000,
+ longitude: m.pos.x / 1000000,
+ }
+ : null,
// todo: stopL[0] is the first of the trip! -> filter out
- nextStopovers: (
+ nextStopovers:
m.stopL
- .filter(s => !!s.location)
- .map(s => profile.parseStopover(ctx, s, m.date))
- ),
- frames: []
+ .filter(s => !!s.location)
+ .map(s => profile.parseStopover(ctx, s, m.date)),
+ frames: [],
}
if (m.ani) {
@@ -33,7 +36,7 @@ const parseMovement = (ctx, m) => { // m = raw movement
res.frames.push({
origin: m.ani.fromLocations[i] || null,
destination: m.ani.toLocations[i] || null,
- t: m.ani.mSec[i]
+ t: m.ani.mSec[i],
})
}
}
diff --git a/parse/operator.js b/parse/operator.js
index 07ac2e656..9e1c6a36d 100644
--- a/parse/operator.js
+++ b/parse/operator.js
@@ -6,7 +6,7 @@ const parseOperator = (ctx, a) => {
return {
type: 'operator',
id: slugg(a.name), // todo: find a more reliable way
- name
+ name,
}
}
diff --git a/parse/platform.js b/parse/platform.js
index 3fef0deae..5e347a4ea 100644
--- a/parse/platform.js
+++ b/parse/platform.js
@@ -6,12 +6,12 @@ const parsePlatform = (ctx, platfS, platfR, cncl = false) => {
return {
platform: null,
plannedPlatform: planned,
- prognosedPlatform: prognosed
+ prognosedPlatform: prognosed,
}
}
return {
platform: prognosed || planned,
- plannedPlatform: planned
+ plannedPlatform: planned,
}
}
diff --git a/parse/polyline.js b/parse/polyline.js
index 55164c780..c5341eb67 100644
--- a/parse/polyline.js
+++ b/parse/polyline.js
@@ -16,8 +16,8 @@ const parsePolyline = (ctx, p) => { // p = raw polyline
properties: {},
geometry: {
type: 'Point',
- coordinates: [lon, lat]
- }
+ coordinates: [lon, lat],
+ },
}))
if (Array.isArray(p.ppLocRefL)) {
@@ -32,7 +32,7 @@ const parsePolyline = (ctx, p) => { // p = raw polyline
const p1 = res[i - 1].geometry.coordinates
const p2 = res[i].geometry.coordinates
const d = distance(p1[1], p1[0], p2[1], p2[0])
- if (d >= .005) continue
+ if (d >= 0.005) continue
const l1 = Object.keys(res[i - 1].properties).length
const l2 = Object.keys(res[i].properties).length
if (l1 === 0 && l2 > 0) res.splice(i - 1, 1)
@@ -42,7 +42,7 @@ const parsePolyline = (ctx, p) => { // p = raw polyline
return {
type: 'FeatureCollection',
- features: res
+ features: res,
}
}
diff --git a/parse/products-bitmask.js b/parse/products-bitmask.js
index f9f335baa..27f6f3eef 100644
--- a/parse/products-bitmask.js
+++ b/parse/products-bitmask.js
@@ -2,7 +2,9 @@ const parseBitmask = ({profile}, bitmask) => {
const res = {}
for (let product of profile.products) res[product.id] = false
- const bits = bitmask.toString(2).split('').map(i => parseInt(i)).reverse()
+ const bits = bitmask.toString(2).split('')
+ .map(i => parseInt(i))
+ .reverse()
for (let i = 0; i < bits.length; i++) {
if (!bits[i]) continue // ignore `0`
diff --git a/parse/prognosis-type.js b/parse/prognosis-type.js
index 057f044e2..99ae07b82 100644
--- a/parse/prognosis-type.js
+++ b/parse/prognosis-type.js
@@ -1,7 +1,7 @@
const parsePrognosisType = (_, progType) => {
return {
- 'PROGNOSED': 'prognosed',
- 'CALCULATED': 'calculated',
+ PROGNOSED: 'prognosed',
+ CALCULATED: 'calculated',
// todo: are there more?
}[progType] || null
}
diff --git a/parse/scheduled-days.js b/parse/scheduled-days.js
index 20266f4f7..1143d48f0 100644
--- a/parse/scheduled-days.js
+++ b/parse/scheduled-days.js
@@ -26,7 +26,7 @@ const parseScheduledDays = (ctx, sDays) => {
const _fpB = parseDate(fpB)
let d = DateTime.fromObject({
year: _fpB.year, month: _fpB.month, day: _fpB.day,
- hour: 0, minute: 0, second: 0, millisecond: 0
+ hour: 0, minute: 0, second: 0, millisecond: 0,
}, {
zone: profile.timezone,
locale: profile.locale,
diff --git a/parse/stopover.js b/parse/stopover.js
index ba5e2cce9..74bed8b9a 100644
--- a/parse/stopover.js
+++ b/parse/stopover.js
@@ -4,9 +4,9 @@ const parseStopover = (ctx, st, date) => { // st = raw stopover
const {profile, opt} = ctx
const arr = profile.parseWhen(ctx, date, st.aTimeS, st.aTimeR, st.aTZOffset, st.aCncl)
- const arrPl = profile.parsePlatform(ctx, st.aPlatfS || (st.aPltfS && st.aPltfS.txt) || null, st.aPlatfR || (st.aPltfR && st.aPltfR.txt) || null, st.aCncl)
+ const arrPl = profile.parsePlatform(ctx, st.aPlatfS || st.aPltfS && st.aPltfS.txt || null, st.aPlatfR || st.aPltfR && st.aPltfR.txt || null, st.aCncl)
const dep = profile.parseWhen(ctx, date, st.dTimeS, st.dTimeR, st.dTZOffset, st.dCncl)
- const depPl = profile.parsePlatform(ctx, st.dPlatfS || (st.dPltfS && st.dPltfS.txt) || null, st.dPlatfR || (st.dPltfR && st.dPltfR.txt) || null, st.dCncl)
+ const depPl = profile.parsePlatform(ctx, st.dPlatfS || st.dPltfS && st.dPltfS.txt || null, st.dPlatfR || st.dPltfR && st.dPltfR.txt || null, st.dCncl)
const res = {
stop: st.location || null,
@@ -21,7 +21,7 @@ const parseStopover = (ctx, st, date) => { // st = raw stopover
departureDelay: dep.delay,
departurePlatform: depPl.platform,
departurePrognosisType: profile.parsePrognosisType(ctx, st.dProgType),
- plannedDeparturePlatform: depPl.plannedPlatform
+ plannedDeparturePlatform: depPl.plannedPlatform,
}
if (arr.prognosedWhen) res.prognosedArrival = arr.prognosedWhen
@@ -30,16 +30,16 @@ const parseStopover = (ctx, st, date) => { // st = raw stopover
if (depPl.prognosedPlatform) res.prognosedDeparturePlatform = depPl.prognosedPlatform
// mark stations the train passes without stopping
- if(st.dInS === false && st.aOutS === false) res.passBy = true
+ if (st.dInS === false && st.aOutS === false) res.passBy = true
if (st.aCncl || st.dCncl) {
res.cancelled = true
Object.defineProperty(res, 'canceled', {value: true})
}
- if (st.isAdd) {
- res.additional = true
- }
+ if (st.isAdd) {
+ res.additional = true
+ }
if (opt.remarks && Array.isArray(st.msgL)) {
res.remarks = findRemarks(st.msgL).map(([remark]) => remark)
diff --git a/parse/trip.js b/parse/trip.js
index 76bfd000a..207da87d8 100644
--- a/parse/trip.js
+++ b/parse/trip.js
@@ -30,13 +30,17 @@ const parseTrip = (ctx, t) => { // t = raw trip
if (opt.scheduledDays) {
const nrOfStopovers = t.stopL.length
// trips seem to use sDaysL[], journeys use sDays
- const sDaysL = Array.isArray(t.sDaysL) ? t.sDaysL : []
+ const sDaysL = Array.isArray(t.sDaysL)
+ ? t.sDaysL
+ : []
const matchingSDays = sDaysL.filter((sDays) => {
- return sDays.fLocIdx === 0 && sDays.tLocIdx === (nrOfStopovers - 1)
+ return sDays.fLocIdx === 0 && sDays.tLocIdx === nrOfStopovers - 1
})
// if there are >1 sDays, we don't know how to interpret them
- const sDays = matchingSDays.length === 1 ? matchingSDays[0] : null
+ const sDays = matchingSDays.length === 1
+ ? matchingSDays[0]
+ : null
// todo [breaking]: rename to scheduledDates
trip.scheduledDays = profile.parseScheduledDays(ctx, sDays)
}
diff --git a/parse/warning.js b/parse/warning.js
index d478827eb..13aea6ca2 100644
--- a/parse/warning.js
+++ b/parse/warning.js
@@ -2,14 +2,14 @@ import brToNewline from '@derhuerst/br2nl'
import omit from 'lodash/omit.js'
const typesByIcon = Object.assign(Object.create(null), {
- HimWarn: 'status'
+ HimWarn: 'status',
})
const parseMsgEdge = (ctx) => (e) => {
const res = omit(e, [
'icoX',
'fLocX', 'fromLocation',
- 'tLocX', 'toLocation'
+ 'tLocX', 'toLocation',
])
res.icon = e.icon || null
res.fromLocation = Array.isArray(e.fromLocations) && e.fromLocations[0] || e.fromLocation || null
@@ -25,7 +25,7 @@ const parseMsgEvent = (ctx) => (e) => {
toLocation: Array.isArray(e.toLocations) && e.toLocations[0] || e.toLocation || null,
start: profile.parseDateTime(ctx, e.fDate, e.fTime || fallbackTime, null),
end: profile.parseDateTime(ctx, e.tDate, e.tTime || fallbackTime, null),
- sections: e.sectionNums || [] // todo: parse
+ sections: e.sectionNums || [], // todo: parse
}
}
@@ -59,8 +59,12 @@ const parseWarning = (ctx, w) => {
const res = {
id: w.hid || null,
type,
- summary: w.head ? brToNewline(w.head) : null, // todo: decode HTML entities?
- text: w.text ? brToNewline(w.text) : null, // todo: decode HTML entities?
+ summary: w.head
+ ? brToNewline(w.head)
+ : null, // todo: decode HTML entities?
+ text: w.text
+ ? brToNewline(w.text)
+ : null, // todo: decode HTML entities?
icon, // todo: parse icon
priority: w.prio,
}
@@ -71,28 +75,28 @@ const parseWarning = (ctx, w) => {
if ('cat' in w) res.category = w.cat
if (w.catRefL && resp.common && resp.common.himMsgCatL) {
res.categories = w.catRefL
- .map(i => resp.common.himMsgCatL[i])
- .filter(e => !!e)
- .map(cat => cat.id)
+ .map(i => resp.common.himMsgCatL[i])
+ .filter(e => !!e)
+ .map(cat => cat.id)
}
if (w.edgeRefL && resp.common && resp.common.himMsgEdgeL) {
res.edges = w.edgeRefL
- .map(i => resp.common.himMsgEdgeL[i])
- .filter(e => !!e)
- .map(parseMsgEdge(ctx))
+ .map(i => resp.common.himMsgEdgeL[i])
+ .filter(e => !!e)
+ .map(parseMsgEdge(ctx))
}
if (w.eventRefL && resp.common && resp.common.himMsgEventL) {
res.events = w.eventRefL
- .map(i => resp.common.himMsgEventL[i])
- .filter(e => !!e)
- .map(parseMsgEvent(ctx))
+ .map(i => resp.common.himMsgEventL[i])
+ .filter(e => !!e)
+ .map(parseMsgEvent(ctx))
}
if (w.affProdRefL) {
res.affectedLines = w.affProdRefL
- .map(i => common.lines[i])
- .filter(l => !!l)
+ .map(i => common.lines[i])
+ .filter(l => !!l)
}
if (w.fromLocations) res.fromStops = w.fromLocations
if (w.toLocations) res.toStops = w.toLocations
diff --git a/parse/when.js b/parse/when.js
index 3d339e9c0..d36d34158 100644
--- a/parse/when.js
+++ b/parse/when.js
@@ -1,8 +1,12 @@
const parseWhen = (ctx, date, timeS, timeR, tzOffset, cncl = false) => {
const parse = ctx.profile.parseDateTime
- let planned = timeS ? parse(ctx, date, timeS, tzOffset, false) : null
- let prognosed = timeR ? parse(ctx, date, timeR, tzOffset, false) : null
+ let planned = timeS
+ ? parse(ctx, date, timeS, tzOffset, false)
+ : null
+ let prognosed = timeR
+ ? parse(ctx, date, timeR, tzOffset, false)
+ : null
let delay = null
if (planned && prognosed) {
@@ -16,13 +20,13 @@ const parseWhen = (ctx, date, timeS, timeR, tzOffset, cncl = false) => {
when: null,
plannedWhen: planned,
prognosedWhen: prognosed,
- delay
+ delay,
}
}
return {
when: prognosed || planned,
plannedWhen: planned,
- delay
+ delay,
}
}
diff --git a/retry.js b/retry.js
index 3fde5b152..14f0758f7 100644
--- a/retry.js
+++ b/retry.js
@@ -4,7 +4,7 @@ import {defaultProfile} from './lib/default-profile.js'
const retryDefaults = {
retries: 3,
factor: 3,
- minTimeout: 5 * 1000
+ minTimeout: 5 * 1000,
}
const withRetrying = (profile, retryOpts = {}) => {
@@ -15,22 +15,22 @@ const withRetrying = (profile, retryOpts = {}) => {
const retryingRequest = (...args) => {
const attempt = () => {
return request(...args)
- .catch((err) => {
- if (err.isHafasError) throw err // continue
- if (err.code === 'ENOTFOUND') { // abort
- const abortErr = new retry.AbortError(err)
- Object.assign(abortErr, err)
- throw abortErr
- }
- throw err // continue
- })
+ .catch((err) => {
+ if (err.isHafasError) throw err // continue
+ if (err.code === 'ENOTFOUND') { // abort
+ const abortErr = new retry.AbortError(err)
+ Object.assign(abortErr, err)
+ throw abortErr
+ }
+ throw err // continue
+ })
}
return retry(attempt, retryOpts)
}
return {
...profile,
- request: retryingRequest
+ request: retryingRequest,
}
}
diff --git a/test/bvg-arrivals.js b/test/bvg-arrivals.js
index bee83e949..377173c0c 100644
--- a/test/bvg-arrivals.js
+++ b/test/bvg-arrivals.js
@@ -21,7 +21,7 @@ const opt = {
stopovers: true,
includeRelatedStations: true,
when: '2021-10-28T10:35:00+02:00',
- products: {}
+ products: {},
}
tap.test('parses an arrival correctly (BVG)', (t) => {
diff --git a/test/bvg-journey.js b/test/bvg-journey.js
index 009b2bcbd..e96276856 100644
--- a/test/bvg-journey.js
+++ b/test/bvg-journey.js
@@ -28,7 +28,7 @@ const opt = {
startWithWalking: true,
scheduledDays: true,
departure: '2019-08-18T14:03:50+02:00',
- products: {}
+ products: {},
}
tap.test('parses a journey correctly (BVG)', (t) => {
diff --git a/test/bvg-radar.js b/test/bvg-radar.js
index 75f09435e..db0321270 100644
--- a/test/bvg-radar.js
+++ b/test/bvg-radar.js
@@ -19,7 +19,7 @@ const opt = {
frames: 3,
polylines: true,
when: '2019-08-19T21:00:00+02:00',
- products: {}
+ products: {},
}
tap.test('parses a radar() response correctly (BVG)', (t) => {
diff --git a/test/db-arrivals.js b/test/db-arrivals.js
index a82652559..c9ac14765 100644
--- a/test/db-arrivals.js
+++ b/test/db-arrivals.js
@@ -21,7 +21,7 @@ const opt = {
stopovers: true,
includeRelatedStations: true,
when: '2019-08-19T20:30:00+02:00',
- products: {}
+ products: {},
}
tap.test('parses an arrival correctly (DB)', (t) => {
diff --git a/test/db-journey-2.js b/test/db-journey-2.js
index 34972b03d..7e89ad1c3 100644
--- a/test/db-journey-2.js
+++ b/test/db-journey-2.js
@@ -28,7 +28,7 @@ const opt = {
startWithWalking: true,
scheduledDays: false,
departure: '2020-11-16T10:00:00+01:00',
- products: {}
+ products: {},
}
tap.test('parses a journey remarks without failing', (t) => {
diff --git a/test/db-journey-additional-stopover.js b/test/db-journey-additional-stopover.js
index d39b34618..628435735 100644
--- a/test/db-journey-additional-stopover.js
+++ b/test/db-journey-additional-stopover.js
@@ -15,21 +15,21 @@ const client = createClient(rawProfile, 'public-transport/hafas-client:test')
const {profile} = client
const opt = {
- results: 1,
- stopovers: true
+ results: 1,
+ stopovers: true,
}
// https://github.com/public-transport/hafas-client/issues/303
tap.test('parses a journey having a leg with an additional stopover', (t) => {
- const common = profile.parseCommon({profile, opt, res: resAdditionalStopover})
- const ctx = {profile, opt, common, res: resAdditionalStopover}
- const journey = profile.parseJourney(ctx, resAdditionalStopover.outConL[0])
- const stopovers = journey.legs[0].stopovers
-
- const stopoverRegular = stopovers[6]
- const stopoverAdditional = stopovers[7]
- t.notOk('additional' in stopoverRegular, 'regular stopover has attribute additional')
- t.equal(stopoverAdditional.additional, true, 'additional stopover doesn\'t have attribute additional')
- t.end()
+ const common = profile.parseCommon({profile, opt, res: resAdditionalStopover})
+ const ctx = {profile, opt, common, res: resAdditionalStopover}
+ const journey = profile.parseJourney(ctx, resAdditionalStopover.outConL[0])
+ const stopovers = journey.legs[0].stopovers
+
+ const stopoverRegular = stopovers[6]
+ const stopoverAdditional = stopovers[7]
+ t.notOk('additional' in stopoverRegular, 'regular stopover has attribute additional')
+ t.equal(stopoverAdditional.additional, true, 'additional stopover doesn\'t have attribute additional')
+ t.end()
})
diff --git a/test/db-journey-tzoffset-0.js b/test/db-journey-tzoffset-0.js
index 614501060..136d2fcb1 100644
--- a/test/db-journey-tzoffset-0.js
+++ b/test/db-journey-tzoffset-0.js
@@ -30,7 +30,7 @@ tap.test('parses a journey whose first leg has a dTZOffset of 0 (#237)', (t) =>
const journey = profile.parseJourney(ctx, resDTZOffset0.outConL[0])
const firstLeg = journey.legs[0]
- t.notOk(/Z$/.test(firstLeg.departure), 'firstLeg.departure has TZ offset "Z"')
+ t.notOk((/Z$/).test(firstLeg.departure), 'firstLeg.departure has TZ offset "Z"')
t.end()
})
@@ -40,6 +40,6 @@ tap.test('parses a journey whose first leg has a aTZOffset of 0 (#237)', (t) =>
const journey = profile.parseJourney(ctx, resATZOffset0.outConL[0])
const lastLeg = journey.legs[0]
- t.notOk(/Z$/.test(lastLeg.departure), 'lastLeg.departure has TZ offset "Z"')
+ t.notOk((/Z$/).test(lastLeg.departure), 'lastLeg.departure has TZ offset "Z"')
t.end()
})
diff --git a/test/db-journey.js b/test/db-journey.js
index 8360d41c2..a4203e93a 100644
--- a/test/db-journey.js
+++ b/test/db-journey.js
@@ -28,7 +28,7 @@ const opt = {
startWithWalking: true,
scheduledDays: false,
departure: '2020-04-10T20:33+02:00',
- products: {}
+ products: {},
}
tap.test('parses a journey with a DEVI leg correctly (DB)', (t) => {
diff --git a/test/db-netz-remarks.js b/test/db-netz-remarks.js
index d892a9279..773d6c8a0 100644
--- a/test/db-netz-remarks.js
+++ b/test/db-netz-remarks.js
@@ -16,12 +16,12 @@ const profile = {
products: [
{id: 'a', bitmasks: [1, 2, 4, 8], name: 'A'},
{id: 'b', bitmasks: [16, 32, 64, 128], name: 'B'},
- {id: 'c', bitmasks: [256, 512], name: 'C'}
- ]
+ {id: 'c', bitmasks: [256, 512], name: 'C'},
+ ],
}
const opt = {
- remarks: true
+ remarks: true,
}
tap.test('parseCommon parses a DB Netz response properly', (t) => {
@@ -34,15 +34,15 @@ tap.test('parseCommon parses a DB Netz response properly', (t) => {
type: 'warning',
summary: 'Abweichung Fpl f Zmst BKRW - NEB nur nach Gl101',
text: 'Brückenarbeiten NKK// BKAR S-Bahn BrüArb Pankgrafenstraße - BKAR nur Gl101 für die NEB nutzbar / 59047 Po 2.2 in Bln-Karow S-B Bft',
- icon: { type: 'HIM11307', title: null },
+ icon: {type: 'HIM11307', title: null},
priority: 80,
category: 1,
- products: { a: true, b: true, c: true },
+ products: {a: true, b: true, c: true},
edges: [{
dir: 3,
- icoCrd: { x: 13469131, y: 52614672, type: 'WGS84' },
- msgRefL: [ 3, 7, 17, 18, 20, 21 ],
- icon: { type: 'HIM11216', title: null },
+ icoCrd: {x: 13469131, y: 52614672, type: 'WGS84'},
+ msgRefL: [3, 7, 17, 18, 20, 21],
+ icon: {type: 'HIM11216', title: null},
fromLocation: {
type: 'stop',
id: '8011046',
@@ -51,9 +51,9 @@ tap.test('parseCommon parses a DB Netz response properly', (t) => {
type: 'location',
id: '8011046',
latitude: 52.614672,
- longitude: 13.469131
+ longitude: 13.469131,
},
- products: { a: true, b: false, c: true }
+ products: {a: true, b: false, c: true},
},
toLocation: {
type: 'stop',
@@ -63,10 +63,10 @@ tap.test('parseCommon parses a DB Netz response properly', (t) => {
type: 'location',
id: '8011046',
latitude: 52.614672,
- longitude: 13.469131
+ longitude: 13.469131,
},
- products: { a: true, b: false, c: true }
- }
+ products: {a: true, b: false, c: true},
+ },
}],
events: [{
fromLocation: {
@@ -77,9 +77,9 @@ tap.test('parseCommon parses a DB Netz response properly', (t) => {
type: 'location',
id: '8011046',
latitude: 52.614672,
- longitude: 13.469131
+ longitude: 13.469131,
},
- products: { a: true, b: false, c: true }
+ products: {a: true, b: false, c: true},
},
toLocation: {
type: 'stop',
@@ -89,17 +89,17 @@ tap.test('parseCommon parses a DB Netz response properly', (t) => {
type: 'location',
id: '8011046',
latitude: 52.614672,
- longitude: 13.469131
+ longitude: 13.469131,
},
- products: { a: true, b: false, c: true }
+ products: {a: true, b: false, c: true},
},
start: '2020-01-11T00:00:00+01:00',
end: '2020-04-03T23:59:00+02:00',
- sections: [ '6500' ]
+ sections: ['6500'],
}],
validFrom: '2019-12-15T00:00:00+01:00',
validUntil: '2020-05-29T04:00:00+02:00',
- modified: '2019-10-26T04:09:19+02:00'
+ modified: '2019-10-26T04:09:19+02:00',
})
t.end()
})
diff --git a/test/e2e/bvg.js b/test/e2e/bvg.js
index e3843653d..ea1d34a2d 100644
--- a/test/e2e/bvg.js
+++ b/test/e2e/bvg.js
@@ -35,7 +35,7 @@ const {
validateStation,
validateJourneyLeg,
validateDeparture,
- validateMovement
+ validateMovement,
} = createVbbBvgValidators({
when,
})
@@ -44,7 +44,7 @@ const validate = createValidate(cfg, {
station: validateStation,
journeyLeg: validateJourneyLeg,
departure: validateDeparture,
- movement: validateMovement
+ movement: validateMovement,
})
const client = createClient(bvgProfile, 'public-transport/hafas-client:test')
@@ -64,7 +64,7 @@ tap.test('journeys – Spichernstr. to Bismarckstr.', async (t) => {
const res = await client.journeys(spichernstr, bismarckstr, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -72,7 +72,7 @@ tap.test('journeys – Spichernstr. to Bismarckstr.', async (t) => {
res,
validate,
fromId: spichernstr,
- toId: bismarckstr
+ toId: bismarckstr,
})
// todo: find a journey where there ticket info is always available
@@ -85,13 +85,13 @@ tap.test('journeys – only subway', async (t) => {
departure: when,
products: {
suburban: false,
- subway: true,
- tram: false,
- bus: false,
- ferry: false,
- express: false,
- regional: false
- }
+ subway: true,
+ tram: false,
+ bus: false,
+ ferry: false,
+ express: false,
+ regional: false,
+ },
})
validate(t, res, 'journeysResult', 'res')
@@ -131,27 +131,29 @@ tap.skip('journeys – BerlKönig', async (t) => {
const when = DateTime.fromMillis(Date.now(), {
zone: 'Europe/Berlin',
locale: 'de-De',
- }).startOf('day').plus({days: 1, hours: 18}).toISO()
+ }).startOf('day')
+ .plus({days: 1, hours: 18})
+ .toISO()
const {journeys} = await client.journeys({
type: 'location',
address: '12101 Berlin-Tempelhof, Peter-Str.r-Weg 1',
latitude: 52.476283,
- longitude: 13.384947
+ longitude: 13.384947,
}, {
type: 'location',
id: '900981505',
poi: true,
name: 'Berlin, Tempelhofer Park Eingang Oderstr.',
latitude: 52.476688,
- longitude: 13.41872
+ longitude: 13.41872,
}, {
berlkoenig: true,
- departure: when
+ departure: when,
})
const withBerlkoenig = flatMap(journeys, j => j.legs)
- .find(l => l.line && l.line.product === 'berlkoenig')
+ .find(l => l.line && l.line.product === 'berlkoenig')
t.ok(withBerlkoenig, 'journey with BerlKönig not found')
t.ok(withBerlkoenig.line)
@@ -167,7 +169,7 @@ tap.skip('journeys: walkingSpeed', async (t) => {
type: 'location',
address: 'Havelchaussee',
latitude: 52.443576,
- longitude: 13.198973
+ longitude: 13.198973,
}
const wannsee = '900053301'
@@ -178,7 +180,7 @@ tap.skip('journeys: walkingSpeed', async (t) => {
from: havelchaussee,
to: wannsee,
products: {bus: false},
- minTimeDifference: 5 * 60 * 1000
+ minTimeDifference: 5 * 60 * 1000,
})
})
@@ -189,7 +191,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: spichernstr,
toId: bismarckstr,
- when
+ when,
})
t.end()
@@ -201,7 +203,7 @@ if (!process.env.VCR_MODE) {
test: t,
fetchJourneys: client.journeys,
fromId: tiergarten,
- toId: jannowitzbrücke
+ toId: jannowitzbrücke,
})
t.end()
})
@@ -215,14 +217,14 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: spichernstr,
toId: bismarckstr,
- when
+ when,
})
t.end()
})
tap.test('trip details', async (t) => {
const res = await client.journeys(spichernstr, amrumerStr, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -240,11 +242,11 @@ tap.test('journeys – station to address', async (t) => {
type: 'location',
address: '13353 Berlin-Wedding, Torfstr. 17',
latitude: 52.541797,
- longitude: 13.350042
+ longitude: 13.350042,
}
const res = await client.journeys(spichernstr, torfstr, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -252,7 +254,7 @@ tap.test('journeys – station to address', async (t) => {
res,
validate,
fromId: spichernstr,
- to: torfstr
+ to: torfstr,
})
t.end()
})
@@ -264,11 +266,11 @@ tap.test('journeys – station to POI', async (t) => {
poi: true,
name: 'Berlin, Atze Musiktheater für Kinder',
latitude: 52.543333,
- longitude: 13.351686
+ longitude: 13.351686,
}
const res = await client.journeys(spichernstr, atze, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -276,7 +278,7 @@ tap.test('journeys – station to POI', async (t) => {
res,
validate,
fromId: spichernstr,
- to: atze
+ to: atze,
})
t.end()
})
@@ -288,14 +290,14 @@ tap.test('journeys: via works – with detour', async (t) => {
via: württembergallee,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysWithDetour({
test: t,
res,
validate,
- detourIds: [württembergallee]
+ detourIds: [württembergallee],
})
t.end()
})
@@ -304,14 +306,14 @@ tap.test('journeys: via works – with detour', async (t) => {
tap.test('departures', async (t) => {
const res = await client.departures(spichernstr, {
- duration: 5, when
+ duration: 5, when,
})
await testDepartures({
test: t,
res,
validate,
- id: spichernstr
+ id: spichernstr,
})
t.end()
})
@@ -324,8 +326,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -340,7 +342,7 @@ tap.test('departures at Spichernstr. in direction of Westhafen', async (t) => {
id: spichernstr,
directionIds: [westhafen],
when,
- validate
+ validate,
})
t.end()
})
@@ -354,14 +356,14 @@ tap.test('departures at 7-digit station', async (t) => {
tap.test('arrivals', async (t) => {
const res = await client.arrivals(spichernstr, {
- duration: 5, when
+ duration: 5, when,
})
await testArrivals({
test: t,
res,
validate,
- id: spichernstr
+ id: spichernstr,
})
t.end()
})
@@ -374,7 +376,7 @@ tap.test('nearby', async (t) => {
const nearby = await client.nearby({
type: 'location',
latitude: 52.4873452,
- longitude: 13.3310411
+ longitude: 13.3310411,
}, {
// Even though HAFAS reports Landhausstr. to be 179m, we have to pass way more here. 🙄
distance: 600,
@@ -423,9 +425,9 @@ tap.test('radar', async (t) => {
north: 52.52411,
west: 13.41002,
south: 52.51942,
- east: 13.41709
+ east: 13.41709,
}, {
- duration: 5 * 60, when
+ duration: 5 * 60, when,
})
validate(t, res, 'radarResult', 'res')
@@ -437,7 +439,7 @@ tap.test('reachableFrom', async (t) => {
type: 'location',
address: '13353 Berlin-Wedding, Torfstr. 17',
latitude: 52.541797,
- longitude: 13.350042
+ longitude: 13.350042,
}
await testReachableFrom({
@@ -446,7 +448,7 @@ tap.test('reachableFrom', async (t) => {
address: torfstr17,
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/cfl.js b/test/e2e/cfl.js
index 7c2b67a15..abd5dc340 100644
--- a/test/e2e/cfl.js
+++ b/test/e2e/cfl.js
@@ -28,7 +28,7 @@ const cfg = {
minLatitude: 47.24,
maxLatitude: 52.9,
minLongitude: -0.63,
- maxLongitude: 14.07
+ maxLongitude: 14.07,
}
const _validateLine = createValidateLine(cfg)
@@ -49,7 +49,7 @@ const validateMovement = (val, m, name = 'movement') => {
const withFakeLocation = Object.assign({}, m)
withFakeLocation.location = Object.assign({}, m.location, {
latitude: 50,
- longitude: 12
+ longitude: 12,
})
_validateMovement(val, withFakeLocation, name)
@@ -62,7 +62,7 @@ const validateMovement = (val, m, name = 'movement') => {
const validate = createValidate(cfg, {
line: validateLine,
journeyLeg: validateJourneyLeg,
- movement: validateMovement
+ movement: validateMovement,
})
const client = createClient(cflProfile, 'public-transport/hafas-client:test')
@@ -75,7 +75,7 @@ tap.test('journeys – Ettelbruck to Luxembourg', async (t) => {
const res = await client.journeys(ettelbruck, luxembourgGareCentrale, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -83,7 +83,7 @@ tap.test('journeys – Ettelbruck to Luxembourg', async (t) => {
res,
validate,
fromId: ettelbruck,
- toId: luxembourgGareCentrale
+ toId: luxembourgGareCentrale,
})
t.end()
})
@@ -107,12 +107,12 @@ tap.test('Luxembourg to 9071 Ettelbruck, Rue des Romains 4', async (t) => {
type: 'location',
address: '9071 Ettelbruck, Rue des Romains 4',
latitude: 49.847469,
- longitude: 6.097608
+ longitude: 6.097608,
}
const res = await client.journeys(luxembourgGareCentrale, rueDeRomain, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -120,7 +120,7 @@ tap.test('Luxembourg to 9071 Ettelbruck, Rue des Romains 4', async (t) => {
res,
validate,
fromId: luxembourgGareCentrale,
- to: rueDeRomain
+ to: rueDeRomain,
})
t.end()
})
@@ -137,7 +137,7 @@ tap.test('Luxembourg to Centre Hospitalier du Nord', async (t) => {
}
const res = await client.journeys(luxembourgGareCentrale, centreHospitalier, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -145,7 +145,7 @@ tap.test('Luxembourg to Centre Hospitalier du Nord', async (t) => {
res,
validate,
fromId: luxembourg,
- to: centreHospitalier
+ to: centreHospitalier,
})
t.end()
})
@@ -167,8 +167,8 @@ tap.test('earlier/later journeys', async (t) => {
})
tap.test('trip', async (t) => {
- const { journeys } = await client.journeys(luxembourgGareCentrale, ettelbruck, {
- results: 1, departure: when
+ const {journeys} = await client.journeys(luxembourgGareCentrale, ettelbruck, {
+ results: 1, departure: when,
})
const p = journeys[0].legs.find(l => !l.walking)
@@ -183,28 +183,28 @@ tap.test('trip', async (t) => {
tap.test('departures at Ettelbruck.', async (t) => {
const res = await client.departures(ettelbruck, {
- duration: 20, when
+ duration: 20, when,
})
await testDepartures({
test: t,
res,
validate,
- id: ettelbruck
+ id: ettelbruck,
})
t.end()
})
tap.test('arrivals at Ettelbruck.', async (t) => {
const res = await client.arrivals(ettelbruck, {
- duration: 20, when
+ duration: 20, when,
})
await testArrivals({
test: t,
res,
validate,
- id: ettelbruck
+ id: ettelbruck,
})
t.end()
})
@@ -217,8 +217,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 49.847298,
- longitude: 6.106157
- }
+ longitude: 6.106157,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -229,7 +229,7 @@ tap.test('departures with station object', async (t) => {
tap.test('locations named Mersch', async (t) => {
const locations = await client.locations('Mersch', {
- results: 20
+ results: 20,
})
validate(t, locations, 'locations', 'locations')
@@ -259,9 +259,9 @@ tap.test('radar', async (t) => {
north: 49.9,
west: 6.05,
south: 49.8,
- east: 6.15
+ east: 6.15,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
diff --git a/test/e2e/cmta.js b/test/e2e/cmta.js
index a262f0e51..1219364fd 100644
--- a/test/e2e/cmta.js
+++ b/test/e2e/cmta.js
@@ -25,7 +25,7 @@ const cfg = {
minLatitude: 26,
maxLatitude: 33,
minLongitude: -100,
- maxLongitude: -95
+ maxLongitude: -95,
}
const validate = createValidate(cfg)
@@ -40,7 +40,7 @@ tap.test('journeys – Broadie Oaks to Domain', async (t) => {
const res = await client.journeys(broadieOaks, domain, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -48,7 +48,7 @@ tap.test('journeys – Broadie Oaks to Domain', async (t) => {
res,
validate,
fromId: broadieOaks,
- toId: domain
+ toId: domain,
})
t.end()
})
@@ -72,12 +72,12 @@ tap.test('Domain to 1104 Elm Street, Austin, TX 78703', async (t) => {
type: 'location',
address: '1104 ELM ST, Austin, TX 78703',
latitude: 30.279220,
- longitude: -97.758292
+ longitude: -97.758292,
}
const res = await client.journeys(domain, someAddress, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -85,7 +85,7 @@ tap.test('Domain to 1104 Elm Street, Austin, TX 78703', async (t) => {
res,
validate,
fromId: domain,
- to: someAddress
+ to: someAddress,
})
t.end()
})
@@ -101,7 +101,7 @@ tap.test('Domain to WHOLE FOODS MARKET - ARBOR TRAILS', async (t) => {
}
const res = await client.journeys(domain, wholeFoodsMarket, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -109,7 +109,7 @@ tap.test('Domain to WHOLE FOODS MARKET - ARBOR TRAILS', async (t) => {
res,
validate,
fromId: domain,
- to: wholeFoodsMarket
+ to: wholeFoodsMarket,
})
t.end()
})
@@ -125,7 +125,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: broadieOaks,
toId: domain,
- when
+ when,
})
t.end()
@@ -139,14 +139,14 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: broadieOaks,
toId: domain,
- when
+ when,
})
t.end()
})
tap.test('trip details', async (t) => {
const res = await client.journeys(broadieOaks, domain, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -168,7 +168,7 @@ tap.test('departures at Broadie Oaks', async (t) => {
test: t,
res,
validate,
- id: broadieOaks
+ id: broadieOaks,
})
t.end()
})
@@ -181,8 +181,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -191,14 +191,14 @@ tap.test('departures with station object', async (t) => {
tap.test('arrivals at Broadie Oaks', async (t) => {
const res = await client.arrivals(broadieOaks, {
- duration: 10, when
+ duration: 10, when,
})
await testArrivals({
test: t,
res,
validate,
- id: broadieOaks
+ id: broadieOaks,
})
t.end()
})
@@ -207,7 +207,7 @@ tap.test('arrivals at Broadie Oaks', async (t) => {
tap.test('locations named "Capitol"', async (t) => {
const locations = await client.locations('Capitol', {
- results: 10
+ results: 10,
})
validate(t, locations, 'locations', 'locations')
@@ -236,9 +236,9 @@ tap.test('radar', async (t) => {
north: 30.240877,
west: -97.804588,
south: 30.225378,
- east: -97.786692
+ east: -97.786692,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
@@ -253,11 +253,11 @@ tap.test('reachableFrom', async (t) => {
type: 'location',
address: '604 W 9TH ST, Austin, TX 78701',
latitude: 30.272910,
- longitude: -97.747883
+ longitude: -97.747883,
},
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/db-busradar-nrw.js b/test/e2e/db-busradar-nrw.js
index 34a812b98..bee9dff96 100644
--- a/test/e2e/db-busradar-nrw.js
+++ b/test/e2e/db-busradar-nrw.js
@@ -20,7 +20,7 @@ const cfg = {
minLatitude: 49.5,
maxLatitude: 55,
minLongitude: 4,
- maxLongitude: 14
+ maxLongitude: 14,
}
const validate = createValidate(cfg, {})
@@ -40,14 +40,14 @@ tap.test('departures at Hagen Bauhaus', async (t) => {
test: t,
res,
validate,
- id: hagenBauhaus
+ id: hagenBauhaus,
})
t.end()
})
tap.test('trip details', async (t) => {
const res = await client.departures(hagenBauhaus, {
- results: 1, duration: 120, when
+ results: 1, duration: 120, when,
})
const p = res.departures[0] || {}
@@ -68,8 +68,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 51.375141,
- longitude: 7.455626
- }
+ longitude: 7.455626,
+ },
}, {when, duration: 120})
validate(t, res, 'departuresResponse', 'res')
@@ -80,14 +80,14 @@ tap.test('departures with station object', async (t) => {
tap.test('arrivals at Hagen Bauhaus', async (t) => {
const res = await client.arrivals(hagenBauhaus, {
- duration: 120, when
+ duration: 120, when,
})
await testArrivals({
test: t,
res,
validate,
- id: hagenBauhaus
+ id: hagenBauhaus,
})
t.end()
})
@@ -96,7 +96,7 @@ tap.test('arrivals at Hagen Bauhaus', async (t) => {
tap.test('locations named Vorhalle', async (t) => {
const locations = await client.locations('vorhalle', {
- results: 10
+ results: 10,
})
validate(t, locations, 'locations', 'locations')
@@ -104,8 +104,8 @@ tap.test('locations named Vorhalle', async (t) => {
t.ok(locations.find(s => s.type === 'stop' || s.type === 'station'))
t.ok(locations.some((l) => {
- return l.station && l.station.id === hagenVorhalle
- || l.id === hagenVorhalle
+ return l.station && l.station.id === hagenVorhalle ||
+ l.id === hagenVorhalle
}))
t.end()
@@ -125,9 +125,9 @@ tap.test('radar', async (t) => {
north: 51.5,
west: 7.2,
south: 51.2,
- east: 7.8
+ east: 7.8,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
const validate = createValidate({
diff --git a/test/e2e/db.js b/test/e2e/db.js
index 977569f0f..0847a107a 100644
--- a/test/e2e/db.js
+++ b/test/e2e/db.js
@@ -9,8 +9,8 @@ import {createClient} from '../../index.js'
import {profile as dbProfile} from '../../p/db/index.js'
import {routingModes} from '../../p/db/routing-modes.js'
import {
- createValidateStation,
- createValidateTrip
+ createValidateStation,
+ createValidateTrip,
} from './lib/validators.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
import {testJourneysStationToStation} from './lib/journeys-station-to-station.js'
@@ -40,7 +40,7 @@ const cfg = {
minLatitude: 46.673100,
maxLatitude: 55.030671,
minLongitude: 6.896517,
- maxLongitude: 16.180237
+ maxLongitude: 16.180237,
}
const validate = createValidate(cfg)
@@ -78,7 +78,7 @@ tap.test('journeys – Berlin Schwedter Str. to München Hbf', async (t) => {
const res = await client.journeys(blnSchwedterStr, münchenHbf, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -86,7 +86,7 @@ tap.test('journeys – Berlin Schwedter Str. to München Hbf', async (t) => {
res,
validate,
fromId: blnSchwedterStr,
- toId: münchenHbf
+ toId: münchenHbf,
})
// todo: find a journey where there pricing info is always available
for (let journey of res.journeys) {
@@ -115,11 +115,11 @@ tap.test('Berlin Schwedter Str. to Torfstraße 17', async (t) => {
type: 'location',
address: 'Torfstraße 17',
latitude: 52.5416823,
- longitude: 13.3491223
+ longitude: 13.3491223,
}
const res = await client.journeys(blnSchwedterStr, torfstr, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -127,7 +127,7 @@ tap.test('Berlin Schwedter Str. to Torfstraße 17', async (t) => {
res,
validate,
fromId: blnSchwedterStr,
- to: torfstr
+ to: torfstr,
})
t.end()
})
@@ -139,11 +139,11 @@ tap.test('Berlin Schwedter Str. to ATZE Musiktheater', async (t) => {
poi: true,
name: 'Berlin, Atze Musiktheater für Kinder (Kultur und U',
latitude: 52.542417,
- longitude: 13.350437
+ longitude: 13.350437,
}
const res = await client.journeys(blnSchwedterStr, atze, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -151,7 +151,7 @@ tap.test('Berlin Schwedter Str. to ATZE Musiktheater', async (t) => {
res,
validate,
fromId: blnSchwedterStr,
- to: atze
+ to: atze,
})
t.end()
})
@@ -163,14 +163,14 @@ tap.test('journeys: via works – with detour', async (t) => {
via: württembergallee,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysWithDetour({
test: t,
res,
validate,
- detourIds: [württembergallee]
+ detourIds: [württembergallee],
})
t.end()
})
@@ -225,7 +225,7 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: jungfernheide,
toId: münchenHbf,
- when
+ when,
})
t.end()
})
@@ -236,15 +236,14 @@ tap.skip('journeysFromTrip – U Mehringdamm to U Naturkundemuseum, reroute to S
const blnNaturkundemuseum = '732539'
const blnSpittelmarkt = '732543'
- const isU6Leg = leg => (
- leg.line && leg.line.name
- && leg.line.name.toUpperCase().replace(/\s+/g, '') === 'U6'
- )
+ const isU6Leg = leg => leg.line && leg.line.name &&
+ leg.line.name.toUpperCase().replace(/\s+/g, '') === 'U6'
+
const sameStopOrStation = (stopA) => (stopB) => {
if (stopA.id && stopB.id && stopA.id === stopB.id) return true
const statA = stopA.stat && stopA.stat.id || NaN
const statB = stopB.stat && stopB.stat.id || NaN
- return (statA === statB || stopA.id === statB || stopB.id === statA)
+ return statA === statB || stopA.id === statB || stopB.id === statA
}
const departureOf = st => +new Date(st.departure || st.scheduledDeparture)
const arrivalOf = st => +new Date(st.arrival || st.scheduledArrival)
@@ -264,16 +263,16 @@ tap.skip('journeysFromTrip – U Mehringdamm to U Naturkundemuseum, reroute to S
const l = j.legs.find(isU6Leg)
if (!l) continue
const t = await client.trip(l.tripId, {
- stopovers: true, remarks: false
+ stopovers: true, remarks: false,
})
const pastStopovers = t.stopovers
- .filter(st => departureOf(st) < Date.now()) // todo: <= ?
+ .filter(st => departureOf(st) < Date.now()) // todo: <= ?
const hasStoppedAtA = pastStopovers
- .find(sameStopOrStation({id: stopAId}))
+ .find(sameStopOrStation({id: stopAId}))
const willStopAtB = t.stopovers
- .filter(st => arrivalOf(st) > Date.now()) // todo: >= ?
- .find(sameStopOrStation({id: stopBId}))
+ .filter(st => arrivalOf(st) > Date.now()) // todo: >= ?
+ .find(sameStopOrStation({id: stopBId}))
if (hasStoppedAtA && willStopAtB) {
const prevStopover = maxBy(pastStopovers, departureOf)
@@ -286,14 +285,14 @@ tap.skip('journeysFromTrip – U Mehringdamm to U Naturkundemuseum, reroute to S
// Find a vehicle from U Mehringdamm to U Stadtmitte (to the north) that is currently
// between these two stations.
const {trip, prevStopover} = await findTripBetween(blnMehringdamm, blnStadtmitte, {
- regionalExpress: false, regional: false, suburban: false
+ regionalExpress: false, regional: false, suburban: false,
})
t.ok(trip, 'precondition failed: trip not found')
t.ok(prevStopover, 'precondition failed: previous stopover missing')
// todo: "Error: Suche aus dem Zug: Vor Abfahrt des Zuges"
const newJourneys = await client.journeysFromTrip(trip.id, prevStopover, blnSpittelmarkt, {
- results: 3, stopovers: true, remarks: false
+ results: 3, stopovers: true, remarks: false,
})
// Validate with fake prices.
@@ -317,7 +316,7 @@ tap.skip('journeysFromTrip – U Mehringdamm to U Naturkundemuseum, reroute to S
tap.test('trip details', async (t) => {
const res = await client.journeys(berlinHbf, münchenHbf, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -336,7 +335,7 @@ tap.test('trip details', async (t) => {
}, name)
}
return validateTripWithFakeDirection
- }
+ },
})
validate(t, tripRes, 'tripResult', 'tripRes')
@@ -352,7 +351,7 @@ tap.test('departures at Berlin Schwedter Str.', async (t) => {
test: t,
res,
validate,
- id: blnSchwedterStr
+ id: blnSchwedterStr,
})
t.end()
})
@@ -365,8 +364,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -381,7 +380,7 @@ tap.test('departures at Berlin Hbf in direction of Berlin Ostbahnhof', async (t)
id: berlinHbf,
directionIds: [blnOstbahnhof, '8089185', '732676'],
when,
- validate
+ validate,
})
t.end()
})
@@ -395,7 +394,7 @@ tap.test('arrivals at Berlin Schwedter Str.', async (t) => {
test: t,
res,
validate,
- id: blnSchwedterStr
+ id: blnSchwedterStr,
})
t.end()
})
@@ -404,9 +403,9 @@ tap.test('nearby Berlin Jungfernheide', async (t) => {
const nearby = await client.nearby({
type: 'location',
latitude: 52.530273,
- longitude: 13.299433
+ longitude: 13.299433,
}, {
- results: 2, distance: 400
+ results: 2, distance: 400,
})
validate(t, nearby, 'locations', 'nearby')
@@ -416,8 +415,8 @@ tap.test('nearby Berlin Jungfernheide', async (t) => {
const s0 = nearby[0]
t.equal(s0.id, jungfernheide)
t.equal(s0.name, 'Berlin Jungfernheide')
- t.ok(isRoughlyEqual(.0005, s0.location.latitude, 52.530408))
- t.ok(isRoughlyEqual(.0005, s0.location.longitude, 13.299424))
+ t.ok(isRoughlyEqual(0.0005, s0.location.latitude, 52.530408))
+ t.ok(isRoughlyEqual(0.0005, s0.location.longitude, 13.299424))
t.ok(s0.distance >= 0)
t.ok(s0.distance <= 100)
@@ -426,7 +425,7 @@ tap.test('nearby Berlin Jungfernheide', async (t) => {
tap.test('locations named Jungfernheide', async (t) => {
const locations = await client.locations('Jungfernheide', {
- results: 10
+ results: 10,
})
validate(t, locations, 'locations', 'locations')
@@ -451,7 +450,7 @@ tap.test('line with additionalName', async (t) => {
const {departures} = await client.departures(potsdamHbf, {
when,
duration: 12 * 60, // 12 minutes
- products: {bus: false, suburban: false, tram: false}
+ products: {bus: false, suburban: false, tram: false},
})
t.ok(departures.some(d => d.line && d.line.additionalName))
t.end()
@@ -462,9 +461,9 @@ tap.test('radar', async (t) => {
north: 52.52411,
west: 13.41002,
south: 52.51942,
- east: 13.41709
+ east: 13.41709,
}, {
- duration: 5 * 60, when
+ duration: 5 * 60, when,
})
validate(t, res, 'radarResult', 'res')
@@ -476,7 +475,7 @@ tap.test('reachableFrom', {timeout: 20 * 1000}, async (t) => {
type: 'location',
address: 'Torfstraße 17',
latitude: 52.5416823,
- longitude: 13.3491223
+ longitude: 13.3491223,
}
await testReachableFrom({
@@ -485,7 +484,7 @@ tap.test('reachableFrom', {timeout: 20 * 1000}, async (t) => {
address: torfstr17,
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/insa.js b/test/e2e/insa.js
index 39e0b23a8..128574120 100644
--- a/test/e2e/insa.js
+++ b/test/e2e/insa.js
@@ -31,13 +31,15 @@ const cfg = {
minLatitude: 50.7,
maxLatitude: 53.2,
minLongitude: 9, // considering e.g. IC 245
- maxLongitude: 13.4
+ maxLongitude: 13.4,
}
const withFakeDirection = (validate) => (val, item, name) => {
validate(val, {
...item,
- direction: item.direction === null ? 'foo' : item.direction,
+ direction: item.direction === null
+ ? 'foo'
+ : item.direction,
}, name)
}
const validators = {
@@ -61,7 +63,7 @@ tap.test('journeys – Magdeburg Hbf to Magdeburg-Buckau', async (t) => {
const res = await client.journeys(magdeburgHbf, magdeburgBuckau, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -69,7 +71,7 @@ tap.test('journeys – Magdeburg Hbf to Magdeburg-Buckau', async (t) => {
res,
validate,
fromId: magdeburgHbf,
- toId: magdeburgBuckau
+ toId: magdeburgBuckau,
})
t.end()
})
@@ -93,12 +95,12 @@ tap.test('Magdeburg Hbf to 39104 Magdeburg, Sternstr. 10', async (t) => {
type: 'location',
address: 'Magdeburg - Altenstadt, Sternstraße 10',
latitude: 52.118414,
- longitude: 11.422332
+ longitude: 11.422332,
}
const res = await client.journeys(magdeburgHbf, sternStr, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -106,7 +108,7 @@ tap.test('Magdeburg Hbf to 39104 Magdeburg, Sternstr. 10', async (t) => {
res,
validate,
fromId: magdeburgHbf,
- to: sternStr
+ to: sternStr,
})
t.end()
})
@@ -118,11 +120,11 @@ tap.test('Magdeburg Hbf to Kloster Unser Lieben Frauen', async (t) => {
poi: true,
name: 'Magdeburg, Kloster Unser Lieben Frauen (Denkmal)',
latitude: 52.127601,
- longitude: 11.636437
+ longitude: 11.636437,
}
const res = await client.journeys(magdeburgHbf, kloster, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -130,7 +132,7 @@ tap.test('Magdeburg Hbf to Kloster Unser Lieben Frauen', async (t) => {
res,
validate,
fromId: magdeburgHbf,
- to: kloster
+ to: kloster,
})
t.end()
})
@@ -143,14 +145,14 @@ tap.test('journeys: via works – with detour', async (t) => {
via: dessau,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysWithDetour({
test: t,
res,
validate,
- detourIds: [dessau]
+ detourIds: [dessau],
})
t.end()
})
@@ -164,7 +166,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: magdeburgHbf,
toId: magdeburgBuckau,
- when
+ when,
})
t.end()
@@ -172,7 +174,7 @@ tap.test('earlier/later journeys', async (t) => {
tap.test('trip details', async (t) => {
const res = await client.journeys(magdeburgHbf, magdeburgBuckau, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -194,7 +196,7 @@ tap.test('departures at Magdeburg Universität', async (t) => {
test: t,
res,
validate,
- id: universitaet
+ id: universitaet,
})
t.end()
})
@@ -207,8 +209,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {
duration: 30, when,
})
@@ -226,21 +228,21 @@ tap.test('departures at Universität in direction of Spielhagenstr.', async (t)
id: universitaet,
directionIds: [spielhagenstr],
when,
- validate
+ validate,
})
t.end()
})
tap.test('arrivals at Magdeburg Universität', async (t) => {
const res = await client.arrivals(universitaet, {
- duration: 30, when
+ duration: 30, when,
})
await testArrivals({
test: t,
res,
validate,
- id: universitaet
+ id: universitaet,
})
t.end()
})
@@ -250,7 +252,7 @@ tap.test('arrivals at Magdeburg Universität', async (t) => {
tap.test('locations named Magdeburg', async (t) => {
const nordpark = '7480'
const locations = await client.locations('nordpark', {
- results: 20
+ results: 20,
})
validate(t, locations, 'locations', 'locations')
@@ -279,9 +281,9 @@ tap.test('radar', async (t) => {
north: 52.148364,
west: 11.600826,
south: 52.108486,
- east: 11.651451
+ east: 11.651451,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
const customCfg = Object.assign({}, cfg, {
diff --git a/test/e2e/invg.js b/test/e2e/invg.js
index 56c44a375..0c55023b5 100644
--- a/test/e2e/invg.js
+++ b/test/e2e/invg.js
@@ -44,7 +44,7 @@ const validateMovement = (val, m, name = 'movement') => {
const validate = createValidate(cfg, {
journeyLeg: validateJourneyLeg,
- movement: validateMovement
+ movement: validateMovement,
})
const client = createClient(invgProfile, 'public-transport/hafas-client:test')
@@ -55,7 +55,7 @@ const uhlandstr1 = {
type: 'location',
address: 'Ingolstadt, Uhlandstraße 1',
latitude: 48.775236,
- longitude: 11.441138
+ longitude: 11.441138,
}
tap.test('journeys – Ingolstadt Hbf to Audi Parkplatz', async (t) => {
@@ -63,7 +63,7 @@ tap.test('journeys – Ingolstadt Hbf to Audi Parkplatz', async (t) => {
const res = await client.journeys(ingolstadtHbf, telemannstr, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -71,7 +71,7 @@ tap.test('journeys – Ingolstadt Hbf to Audi Parkplatz', async (t) => {
res,
validate,
fromId: ingolstadtHbf,
- toId: telemannstr
+ toId: telemannstr,
})
t.end()
})
@@ -93,7 +93,7 @@ tap.test('journeys – fails with no product', async (t) => {
tap.test('Ingolstadt Hbf to Uhlandstr. 1', async (t) => {
const res = await client.journeys(ingolstadtHbf, uhlandstr1, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -101,7 +101,7 @@ tap.test('Ingolstadt Hbf to Uhlandstr. 1', async (t) => {
res,
validate,
fromId: ingolstadtHbf,
- to: uhlandstr1
+ to: uhlandstr1,
})
t.end()
})
@@ -113,11 +113,11 @@ tap.test('Ingolstadt Hbf to Städtisches Freibad', async (t) => {
poi: true,
name: 'Ingolstadt, Städtisches Freibad (Sport)',
latitude: 48.761473,
- longitude: 11.418602
+ longitude: 11.418602,
}
const res = await client.journeys(ingolstadtHbf, freibad, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -125,7 +125,7 @@ tap.test('Ingolstadt Hbf to Städtisches Freibad', async (t) => {
res,
validate,
fromId: ingolstadtHbf,
- to: freibad
+ to: freibad,
})
t.end()
})
@@ -154,14 +154,14 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: ingolstadtHbf,
toId: telemannstr,
- when
+ when,
})
t.end()
})
tap.test('trip details', async (t) => {
const {journeys} = await client.journeys(ingolstadtHbf, telemannstr, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = journeys[0].legs.find(l => !l.walking)
@@ -183,7 +183,7 @@ tap.test('departures at Ingolstadt Hbf', async (t) => {
]
const res = await client.departures(ingolstadtHbf, {
- duration: 10, when
+ duration: 10, when,
})
await testDepartures({
@@ -203,8 +203,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 48.822834,
- longitude: 11.461148
- }
+ longitude: 11.461148,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -215,11 +215,11 @@ tap.test('arrivals at Ingolstadt Hbf', async (t) => {
const ids = [
ingolstadtHbf, // station
'80301', // stop "Ingolstadt, Hauptbahnhof Stadtauswärts"
- '80302' // stop "Ingolstadt, Hauptbahnhof Stadteinwärts"
+ '80302', // stop "Ingolstadt, Hauptbahnhof Stadteinwärts"
]
const res = await client.arrivals(ingolstadtHbf, {
- duration: 10, when
+ duration: 10, when,
})
await testArrivals({
@@ -237,7 +237,7 @@ tap.test('nearby', async (t) => {
id: '990001921',
address: 'Ingolstadt, Rathausplatz 1',
latitude: 48.76292,
- longitude: 11.424624
+ longitude: 11.424624,
}, {distance: 500})
validate(t, nearby, 'locations', 'nearby')
@@ -253,7 +253,7 @@ tap.test('nearby', async (t) => {
tap.test('locations named "freibad"', async (t) => {
const freibadIngolstadt = '980000591'
const locations = await client.locations('freibad', {
- results: 5
+ results: 5,
})
validate(t, locations, 'locations', 'locations')
@@ -283,9 +283,9 @@ tap.test('radar', async (t) => {
north: 48.74453,
west: 11.42733,
south: 48.73453,
- east: 11.43733
+ east: 11.43733,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
diff --git a/test/e2e/lib/arrivals.js b/test/e2e/lib/arrivals.js
index 1a88644a7..59b43e9a4 100644
--- a/test/e2e/lib/arrivals.js
+++ b/test/e2e/lib/arrivals.js
@@ -1,6 +1,8 @@
const testArrivals = async (cfg) => {
const {test: t, res, validate} = cfg
- const ids = cfg.ids || (cfg.id ? [cfg.id] : [])
+ const ids = cfg.ids || (cfg.id
+ ? [cfg.id]
+ : [])
const {arrivals: arrs} = res
validate(t, res, 'arrivalsResponse', 'res')
@@ -15,7 +17,7 @@ const testArrivals = async (cfg) => {
t.ok(
ids.includes(stop.id) ||
- (stop.station && ids.includes(stop.station.id)),
+ stop.station && ids.includes(stop.station.id),
name + '.id is invalid',
)
}
diff --git a/test/e2e/lib/departures-in-direction.js b/test/e2e/lib/departures-in-direction.js
index 9c94f0e21..a60a27186 100644
--- a/test/e2e/lib/departures-in-direction.js
+++ b/test/e2e/lib/departures-in-direction.js
@@ -6,12 +6,12 @@ const testDeparturesInDirection = async (cfg) => {
id,
directionIds,
when,
- validate
+ validate,
} = cfg
const res = await fetchDepartures(id, {
direction: directionIds[0],
- when
+ when,
})
const {departures: deps} = res
@@ -23,12 +23,11 @@ const testDeparturesInDirection = async (cfg) => {
const line = dep.line && dep.line.name
const {trip} = await fetchTrip(dep.tripId, line, {
- when, stopovers: true
+ when, stopovers: true,
})
- t.ok(trip.stopovers.some(st => (
- st.stop.station && directionIds.includes(st.stop.station.id) ||
- directionIds.includes(st.stop.id)
- )), `trip ${dep.tripId} of ${name} has no stopover at ${directionIds.join('/')}`)
+ t.ok(trip.stopovers.some(st => st.stop.station && directionIds.includes(st.stop.station.id) ||
+ directionIds.includes(st.stop.id),
+ ), `trip ${dep.tripId} of ${name} has no stopover at ${directionIds.join('/')}`)
}
}
diff --git a/test/e2e/lib/departures.js b/test/e2e/lib/departures.js
index ea0ea1762..fb4a2d127 100644
--- a/test/e2e/lib/departures.js
+++ b/test/e2e/lib/departures.js
@@ -1,6 +1,8 @@
const testDepartures = async (cfg) => {
const {test: t, res, validate} = cfg
- const ids = cfg.ids || (cfg.id ? [cfg.id] : [])
+ const ids = cfg.ids || (cfg.id
+ ? [cfg.id]
+ : [])
const {departures: deps} = res
validate(t, res, 'departuresResponse', 'res')
@@ -15,7 +17,7 @@ const testDepartures = async (cfg) => {
t.ok(
ids.includes(stop.id) ||
- (stop.station && ids.includes(stop.station.id)),
+ stop.station && ids.includes(stop.station.id),
`${name}.id is invalid (${stop.id}), must be one of ${ids.join('/')}`,
)
}
diff --git a/test/e2e/lib/earlier-later-journeys.js b/test/e2e/lib/earlier-later-journeys.js
index 1d7b1ccbf..b3acf78db 100644
--- a/test/e2e/lib/earlier-later-journeys.js
+++ b/test/e2e/lib/earlier-later-journeys.js
@@ -4,12 +4,12 @@ const testEarlierLaterJourneys = async (cfg) => {
fetchJourneys,
fromId,
toId,
- when
+ when,
// todo: validate
} = cfg
const model = await fetchJourneys(fromId, toId, {
- results: 3, departure: when
+ results: 3, departure: when,
})
// todo: move to journeys validator?
@@ -21,22 +21,22 @@ const testEarlierLaterJourneys = async (cfg) => {
// departure/arrival and earlierThan/laterThan should be mutually exclusive
await t.rejects(async () => {
await fetchJourneys(fromId, toId, {
- departure: when, earlierThan: model.earlierRef
+ departure: when, earlierThan: model.earlierRef,
})
})
await t.rejects(async () => {
await fetchJourneys(fromId, toId, {
- departure: when, laterThan: model.laterRef
+ departure: when, laterThan: model.laterRef,
})
})
await t.rejects(async () => {
await fetchJourneys(fromId, toId, {
- arrival: when, earlierThan: model.earlierRef
+ arrival: when, earlierThan: model.earlierRef,
})
})
await t.rejects(async () => {
await fetchJourneys(fromId, toId, {
- arrival: when, laterThan: model.laterRef
+ arrival: when, laterThan: model.laterRef,
})
})
@@ -51,7 +51,7 @@ const testEarlierLaterJourneys = async (cfg) => {
const earlier = await fetchJourneys(fromId, toId, {
results: 3,
// todo: single journey ref?
- earlierThan: model.earlierRef
+ earlierThan: model.earlierRef,
})
for (let j of earlier.journeys) {
const firstLeg = j.legs[0]
@@ -62,7 +62,7 @@ const testEarlierLaterJourneys = async (cfg) => {
const later = await fetchJourneys(fromId, toId, {
results: 3,
// todo: single journey ref?
- laterThan: model.laterRef
+ laterThan: model.laterRef,
})
for (let j of later.journeys) {
const firstLeg = j.legs[0]
diff --git a/test/e2e/lib/journeys-fails-with-no-product.js b/test/e2e/lib/journeys-fails-with-no-product.js
index 982f56358..2c849a7cb 100644
--- a/test/e2e/lib/journeys-fails-with-no-product.js
+++ b/test/e2e/lib/journeys-fails-with-no-product.js
@@ -5,7 +5,7 @@ const journeysFailsWithNoProduct = async (cfg) => {
fromId,
toId,
when,
- products
+ products,
} = cfg
const noProducts = Object.create(null)
diff --git a/test/e2e/lib/journeys-station-to-address.js b/test/e2e/lib/journeys-station-to-address.js
index 2a7e2b1fa..773081abf 100644
--- a/test/e2e/lib/journeys-station-to-address.js
+++ b/test/e2e/lib/journeys-station-to-address.js
@@ -20,8 +20,8 @@ const testJourneysStationToAddress = async (cfg) => {
t.equal(d.type, 'location', n + '.type is invalid')
t.equal(d.address, address, n + '.address is invalid')
- t.ok(isRoughlyEqual(.0001, d.latitude, latitude), n + '.latitude is invalid')
- t.ok(isRoughlyEqual(.0001, d.longitude, longitude), n + '.longitude is invalid')
+ t.ok(isRoughlyEqual(0.0001, d.latitude, latitude), n + '.latitude is invalid')
+ t.ok(isRoughlyEqual(0.0001, d.longitude, longitude), n + '.longitude is invalid')
}
}
diff --git a/test/e2e/lib/journeys-station-to-poi.js b/test/e2e/lib/journeys-station-to-poi.js
index a96412161..a70cf4855 100644
--- a/test/e2e/lib/journeys-station-to-poi.js
+++ b/test/e2e/lib/journeys-station-to-poi.js
@@ -2,7 +2,9 @@ import isRoughlyEqual from 'is-roughly-equal'
const testJourneysStationToPoi = async (cfg) => {
const {test: t, res, validate} = cfg
- const fromIds = cfg.fromIds || (cfg.fromId ? [cfg.fromId] : [])
+ const fromIds = cfg.fromIds || (cfg.fromId
+ ? [cfg.fromId]
+ : [])
const {id, name, latitude, longitude} = cfg.to
validate(t, res, 'journeysResult', 'res')
@@ -13,11 +15,11 @@ const testJourneysStationToPoi = async (cfg) => {
const j = journeys[i]
let o = j.legs[0].origin
- const oN = `res.journeys[0].legs[0].destination`
+ const oN = 'res.journeys[0].legs[0].destination'
t.ok(
fromIds.includes(o.id) ||
- (o.station && fromIds.includes(o.station.id)),
- `invalid ${oN}.legs[0].origin`
+ o.station && fromIds.includes(o.station.id),
+ `invalid ${oN}.legs[0].origin`,
)
let d = j.legs[j.legs.length - 1].destination
@@ -30,8 +32,8 @@ const testJourneysStationToPoi = async (cfg) => {
t.equal(d.type, 'location', dN + '.type is invalid')
t.equal(d.id, id, dN + '.id is invalid')
t.equal(d.name, name, dN + '.name is invalid')
- t.ok(isRoughlyEqual(.0001, d.latitude, latitude), dN + '.latitude is invalid')
- t.ok(isRoughlyEqual(.0001, d.longitude, longitude), dN + '.longitude is invalid')
+ t.ok(isRoughlyEqual(0.0001, d.latitude, latitude), dN + '.latitude is invalid')
+ t.ok(isRoughlyEqual(0.0001, d.longitude, longitude), dN + '.longitude is invalid')
}
}
diff --git a/test/e2e/lib/journeys-station-to-station.js b/test/e2e/lib/journeys-station-to-station.js
index b85674a36..e0040f4da 100644
--- a/test/e2e/lib/journeys-station-to-station.js
+++ b/test/e2e/lib/journeys-station-to-station.js
@@ -1,7 +1,11 @@
const testJourneysStationToStation = async (cfg) => {
const {test: t, res, validate} = cfg
- const fromIds = cfg.fromIds || (cfg.fromId ? [cfg.fromId] : [])
- const toIds = cfg.toIds || (cfg.toId ? [cfg.toId] : [])
+ const fromIds = cfg.fromIds || (cfg.fromId
+ ? [cfg.fromId]
+ : [])
+ const toIds = cfg.toIds || (cfg.toId
+ ? [cfg.toId]
+ : [])
validate(t, res, 'journeysResult', 'res')
const {journeys} = res
@@ -15,13 +19,13 @@ const testJourneysStationToStation = async (cfg) => {
const d = j.legs[j.legs.length - 1].destination
t.ok(
fromIds.includes(o.id) ||
- (o.station && fromIds.includes(o.station.id)),
- `invalid ${n}.legs[0].origin`
+ o.station && fromIds.includes(o.station.id),
+ `invalid ${n}.legs[0].origin`,
)
t.ok(
toIds.includes(d.id) ||
- (d.station && toIds.includes(d.station.id)),
- `invalid ${n}.legs[${j.legs.length - 1}].destination`
+ d.station && toIds.includes(d.station.id),
+ `invalid ${n}.legs[${j.legs.length - 1}].destination`,
)
}
}
diff --git a/test/e2e/lib/journeys-walking-speed.js b/test/e2e/lib/journeys-walking-speed.js
index 96a21b70b..f29fae6e7 100644
--- a/test/e2e/lib/journeys-walking-speed.js
+++ b/test/e2e/lib/journeys-walking-speed.js
@@ -5,14 +5,14 @@ const testJourneysWalkingSpeed = async (cfg) => {
const {journeys: [journeyWithFastWalking]} = await journeys(from, to, {
departure: when,
- results: 1, products, walkingSpeed: 'fast'
+ results: 1, products, walkingSpeed: 'fast',
})
const legWithFastWalking = journeyWithFastWalking.legs.find(l => l.walking)
t.ok(legWithFastWalking, 'no walking leg in journey with fast walking')
const {journeys: [journeyWithSlowWalking]} = await journeys(from, to, {
departure: when,
- results: 1, products, walkingSpeed: 'slow'
+ results: 1, products, walkingSpeed: 'slow',
})
const legWithSlowWalking = journeyWithSlowWalking.legs.find(l => l.walking)
t.ok(legWithSlowWalking, 'no walking leg in journey with slow walking')
diff --git a/test/e2e/lib/journeys-with-detour.js b/test/e2e/lib/journeys-with-detour.js
index f9a1a6890..4ad66cc57 100644
--- a/test/e2e/lib/journeys-with-detour.js
+++ b/test/e2e/lib/journeys-with-detour.js
@@ -8,10 +8,9 @@ const testJourneysWithDetour = async (cfg) => {
const {journeys} = res
const leg = journeys[0].legs.some((leg) => {
- return leg.stopovers && leg.stopovers.some((st) => (
- st.stop.station && detourIds.includes(st.stop.station.id) ||
- detourIds.includes(st.stop.id)
- ))
+ return leg.stopovers && leg.stopovers.some((st) => st.stop.station && detourIds.includes(st.stop.station.id) ||
+ detourIds.includes(st.stop.id),
+ )
})
t.ok(leg, detourIds.join('/') + ' is not being passed')
}
diff --git a/test/e2e/lib/leg-cycle-alternatives.js b/test/e2e/lib/leg-cycle-alternatives.js
index cc0c29ead..f231e3b2d 100644
--- a/test/e2e/lib/leg-cycle-alternatives.js
+++ b/test/e2e/lib/leg-cycle-alternatives.js
@@ -7,7 +7,7 @@ const testLegCycleAlternatives = async (cfg) => {
test: t,
fetchJourneys,
fromId,
- toId
+ toId,
} = cfg
// Apparently HAFAS doesn't return the leg cycle or alternatives more
diff --git a/test/e2e/lib/reachable-from.js b/test/e2e/lib/reachable-from.js
index e05402d8b..cc37d930f 100644
--- a/test/e2e/lib/reachable-from.js
+++ b/test/e2e/lib/reachable-from.js
@@ -7,11 +7,11 @@ const testReachableFrom = async (cfg) => {
address,
when,
maxDuration,
- validate
+ validate,
} = cfg
const res = await reachableFrom(address, {
- when, maxDuration
+ when, maxDuration,
})
const {
reachable: results,
diff --git a/test/e2e/lib/refresh-journey.js b/test/e2e/lib/refresh-journey.js
index a3a857602..b5abaebac 100644
--- a/test/e2e/lib/refresh-journey.js
+++ b/test/e2e/lib/refresh-journey.js
@@ -4,7 +4,7 @@ const simplify = j => j.legs.map(l => {
destination: l.destination,
departure: l.plannedDeparture || l.departure,
arrival: l.plannedArrival || l.arrival,
- line: l.line
+ line: l.line,
}
})
@@ -21,7 +21,7 @@ const testRefreshJourney = async (cfg) => {
const modelRes = await fetchJourneys(fromId, toId, {
results: 1, departure: when,
- stopovers: false
+ stopovers: false,
})
validate(t, modelRes, 'journeysResult', 'modelRes')
const [model] = modelRes.journeys
@@ -31,7 +31,7 @@ const testRefreshJourney = async (cfg) => {
t.ok(model.refreshToken)
const refreshedRes = await refreshJourney(model.refreshToken, {
- stopovers: false
+ stopovers: false,
})
validate(t, refreshedRes, 'refreshJourneyResult', 'refreshedRes')
const refreshed = refreshedRes.journey
diff --git a/test/e2e/lib/util.js b/test/e2e/lib/util.js
index 0ca6136d4..95d3ddbbd 100644
--- a/test/e2e/lib/util.js
+++ b/test/e2e/lib/util.js
@@ -19,7 +19,9 @@ const createWhen = (timezone, locale, tMock) => {
return DateTime.fromMillis(t, {
zone: timezone,
locale,
- }).startOf('week').plus({weeks: 1, hours: 10}).toJSDate()
+ }).startOf('week')
+ .plus({weeks: 1, hours: 10})
+ .toJSDate()
}
const assertValidWhen = (actual, expected, name, delta = day + 6 * hour) => {
diff --git a/test/e2e/lib/validators.js b/test/e2e/lib/validators.js
index b31a446b3..bcdad877b 100644
--- a/test/e2e/lib/validators.js
+++ b/test/e2e/lib/validators.js
@@ -39,7 +39,7 @@ const createValidateStation = (cfg) => {
val.products(val, s.products, name + '.products')
if ('lines' in s) {
- a.ok(Array.isArray(s.lines), name + `.lines must be an array`)
+ a.ok(Array.isArray(s.lines), name + '.lines must be an array')
for (let i = 0; i < s.lines.length; i++) {
val.line(val, s.lines[i], name + `.lines[${i}]`)
}
@@ -82,7 +82,7 @@ const validateLocation = (val, loc, name = 'location') => {
if (loc.type === 'stop') val.stop(val, loc, name)
else if (loc.type === 'station') val.station(val, loc, name)
else if (loc.poi) validatePoi(val, loc, name)
- else if (!('name' in loc) && ('address' in loc)) {
+ else if (!('name' in loc) && 'address' in loc) {
validateAddress(val, loc, name)
} else defaultValidators.location(val, loc, name)
}
@@ -301,7 +301,7 @@ const createValidateJourneyLeg = (cfg) => {
const validateJourneyLeg = (val, leg, name = 'journeyLeg') => {
const fakeLeg = Object.assign({
schedule: 'foo', // todo: let hafas-client parse a schedule ID
- operator: 'bar' // todo: let hafas-client parse the operator
+ operator: 'bar', // todo: let hafas-client parse the operator
}, leg)
if (leg.cancelled) {
// FPTF doesn't support cancelled journey legs yet.
@@ -363,15 +363,15 @@ const createValidateJourneyLeg = (cfg) => {
if ('cycle' in leg) {
a.ok(isObj(leg.cycle), name + '.cycle must be an object')
- if (('min' in leg.cycle) && leg.cycle.min !== null) {
+ if ('min' in leg.cycle && leg.cycle.min !== null) {
a.strictEqual(typeof leg.cycle.min, 'number', name + '.cycle.min must be a number')
a.ok(leg.cycle.min > 0, name + '.cycle.min must be >0')
}
- if (('max' in leg.cycle) && leg.cycle.max !== null) {
+ if ('max' in leg.cycle && leg.cycle.max !== null) {
a.strictEqual(typeof leg.cycle.max, 'number', name + '.cycle.max must be a number')
a.ok(leg.cycle.max > 0, name + '.cycle.max must be >0')
}
- if (('nr' in leg.cycle) && leg.cycle.nr !== null) {
+ if ('nr' in leg.cycle && leg.cycle.nr !== null) {
a.strictEqual(typeof leg.cycle.nr, 'number', name + '.cycle.nr must be a number')
a.ok(leg.cycle.nr > 0, name + '.cycle.nr must be >0')
}
@@ -408,7 +408,7 @@ const createValidateJourneyLeg = (cfg) => {
const validateJourney = (val, j, name = 'journey') => {
const withFakeId = Object.assign({
- id: 'foo' // todo: let hafas-client parse a journey ID
+ id: 'foo', // todo: let hafas-client parse a journey ID
}, j)
defaultValidators.journey(val, withFakeId, name)
// todo: j.refreshToken
@@ -453,7 +453,7 @@ const createValidateRefreshJourneyResult = () => validateRefreshJourneyResult
const validateTrip = (val, trip, name = 'trip') => {
const withFakeTripId = Object.assign({
- tripId: trip.id
+ tripId: trip.id,
}, trip)
delete withFakeTripId.id
val.journeyLeg(val, withFakeTripId, name)
@@ -515,13 +515,13 @@ const createValidateArrivalOrDeparture = (type, cfg) => {
}
if (dep.destination !== null) {
- const lName = name + '.destination'
- val.location(val, dep.destination, lName)
+ const lName = name + '.destination'
+ val.location(val, dep.destination, lName)
}
if (dep.origin !== null) {
- const lName = name + '.origin'
- val.location(val, dep.origin, lName)
+ const lName = name + '.origin'
+ val.location(val, dep.origin, lName)
}
}
return validateArrivalOrDeparture
@@ -590,7 +590,7 @@ const createValidateDeparturesResponse = (cfg) => {
}
const createValidateMovement = (cfg) => {
- const { maxLatitude, minLatitude, maxLongitude, minLongitude } = cfg
+ const {maxLatitude, minLatitude, maxLongitude, minLongitude} = cfg
const validateMovement = (val, m, name = 'movement') => {
a.ok(isObj(m), name + ' must be an object')
// todo: let hafas-client add a .type field
diff --git a/test/e2e/lib/vbb-bvg-validators.js b/test/e2e/lib/vbb-bvg-validators.js
index 2288064ab..0e723cc7e 100644
--- a/test/e2e/lib/vbb-bvg-validators.js
+++ b/test/e2e/lib/vbb-bvg-validators.js
@@ -11,7 +11,7 @@ const createVbbBvgValidators = ({when}) => {
const cfg = {
when,
stationCoordsOptional: false,
- products
+ products,
}
// todo: coordsOptional = false
@@ -28,7 +28,7 @@ const createVbbBvgValidators = ({when}) => {
validateStation,
validateJourneyLeg,
validateDeparture,
- validateMovement
+ validateMovement,
}
}
diff --git a/test/e2e/mobil-nrw.js b/test/e2e/mobil-nrw.js
index df61495cb..25f8d09ff 100644
--- a/test/e2e/mobil-nrw.js
+++ b/test/e2e/mobil-nrw.js
@@ -38,7 +38,7 @@ tap.test('journeys – Soest to Aachen Hbf', async (t) => {
const res = await client.journeys(soest, aachenHbf, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -46,7 +46,7 @@ tap.test('journeys – Soest to Aachen Hbf', async (t) => {
res,
validate,
fromId: soest,
- toId: aachenHbf
+ toId: aachenHbf,
})
t.end()
})
@@ -64,7 +64,7 @@ tap.test('Aachen Hbf to Schillingstr. 3, Dortmund', async (t) => {
const res = await client.journeys(aachenHbf, schillingstr3, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -72,7 +72,7 @@ tap.test('Aachen Hbf to Schillingstr. 3, Dortmund', async (t) => {
res,
validate,
fromId: aachenHbf,
- to: schillingstr3
+ to: schillingstr3,
})
t.end()
})
@@ -88,7 +88,7 @@ tap.test('Aachen Hbf to Sportanlage Schulzentrum, Dortmund', async (t) => {
}
const res = await client.journeys(aachenHbf, sportanlage, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -96,7 +96,7 @@ tap.test('Aachen Hbf to Sportanlage Schulzentrum, Dortmund', async (t) => {
res,
validate,
fromId: aachenHbf,
- to: sportanlage
+ to: sportanlage,
})
t.end()
})
@@ -112,7 +112,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: soest,
toId: aachenHbf,
- when
+ when,
})
t.end()
@@ -126,14 +126,14 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: soest,
toId: aachenHbf,
- when
+ when,
})
t.end()
})
tap.test('trip details', async (t) => {
const res = await client.journeys(soest, aachenHbf, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -175,8 +175,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -259,7 +259,7 @@ tap.test('reachableFrom', async (t) => {
},
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/mobiliteit-lu.js b/test/e2e/mobiliteit-lu.js
index 4481ce27e..4461db747 100644
--- a/test/e2e/mobiliteit-lu.js
+++ b/test/e2e/mobiliteit-lu.js
@@ -28,7 +28,7 @@ const cfg = {
minLatitude: 47.24,
maxLatitude: 52.9,
minLongitude: -0.63,
- maxLongitude: 14.07
+ maxLongitude: 14.07,
}
const _validateLine = createValidateLine(cfg)
@@ -49,7 +49,7 @@ const validateMovement = (val, m, name = 'movement') => {
const withFakeLocation = Object.assign({}, m)
withFakeLocation.location = Object.assign({}, m.location, {
latitude: 50,
- longitude: 12
+ longitude: 12,
})
_validateMovement(val, withFakeLocation, name)
@@ -62,7 +62,7 @@ const validateMovement = (val, m, name = 'movement') => {
const validate = createValidate(cfg, {
line: validateLine,
journeyLeg: validateJourneyLeg,
- movement: validateMovement
+ movement: validateMovement,
})
const client = createClient(mobiliteitLuProfile, 'public-transport/hafas-client:test')
@@ -75,7 +75,7 @@ tap.test('journeys – Ettelbruck to Luxembourg', async (t) => {
const res = await client.journeys(ettelbruck, luxembourgGareCentrale, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -111,12 +111,12 @@ tap.test('Luxembourg to Ettelbruck, Rue des Romains 4', async (t) => {
type: 'location',
address: 'Ettelbruck, Rue des Romains 4',
latitude: 49.847469,
- longitude: 6.097608
+ longitude: 6.097608,
}
const res = await client.journeys(luxembourgGareCentrale, rueDeRomain, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -124,7 +124,7 @@ tap.test('Luxembourg to Ettelbruck, Rue des Romains 4', async (t) => {
res,
validate,
fromId: luxembourgGareCentrale,
- to: rueDeRomain
+ to: rueDeRomain,
})
t.end()
})
@@ -141,7 +141,7 @@ tap.test('Luxembourg to Centre Hospitalier du Nord', async (t) => {
}
const res = await client.journeys(luxembourgGareCentrale, centreHospitalier, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -149,7 +149,7 @@ tap.test('Luxembourg to Centre Hospitalier du Nord', async (t) => {
res,
validate,
fromId: luxembourgGareCentrale,
- to: centreHospitalier
+ to: centreHospitalier,
})
t.end()
})
@@ -171,8 +171,8 @@ tap.test('earlier/later journeys', async (t) => {
})
tap.test('trip', async (t) => {
- const { journeys } = await client.journeys(luxembourgGareCentrale, ettelbruck, {
- results: 1, departure: when
+ const {journeys} = await client.journeys(luxembourgGareCentrale, ettelbruck, {
+ results: 1, departure: when,
})
const p = journeys[0].legs.find(l => !l.walking)
@@ -187,28 +187,28 @@ tap.test('trip', async (t) => {
tap.test('departures at Ettelbruck.', async (t) => {
const res = await client.departures(ettelbruck, {
- duration: 20, when
+ duration: 20, when,
})
await testDepartures({
test: t,
res,
validate,
- id: ettelbruck
+ id: ettelbruck,
})
t.end()
})
tap.test('arrivals at Ettelbruck.', async (t) => {
const res = await client.arrivals(ettelbruck, {
- duration: 20, when
+ duration: 20, when,
})
await testArrivals({
test: t,
res,
validate,
- id: ettelbruck
+ id: ettelbruck,
})
t.end()
})
@@ -221,8 +221,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 49.847298,
- longitude: 6.106157
- }
+ longitude: 6.106157,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -233,7 +233,7 @@ tap.test('departures with station object', async (t) => {
tap.test('locations named Mersch', async (t) => {
const locations = await client.locations('Mersch', {
- results: 20
+ results: 20,
})
validate(t, locations, 'locations', 'locations')
@@ -262,9 +262,9 @@ tap.test('radar', async (t) => {
north: 49.9,
west: 6.05,
south: 49.8,
- east: 6.15
+ east: 6.15,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
diff --git a/test/e2e/nahsh.js b/test/e2e/nahsh.js
index 0b9037c71..61e747e2b 100644
--- a/test/e2e/nahsh.js
+++ b/test/e2e/nahsh.js
@@ -6,7 +6,7 @@ import {createClient} from '../../index.js'
import {profile as nahshProfile} from '../../p/nahsh/index.js'
import {
createValidateLine,
- createValidateStation
+ createValidateStation,
} from './lib/validators.js'
import {createValidateFptfWith as createValidate} from './lib/validate-fptf-with.js'
import {testJourneysStationToStation} from './lib/journeys-station-to-station.js'
@@ -31,7 +31,7 @@ const cfg = {
maxLatitude: 55.15,
minLongitude: 7.5,
minLatitude: 53.15,
- maxLongitude: 11.6
+ maxLongitude: 11.6,
}
const _validateLine = createValidateLine(cfg)
@@ -46,7 +46,7 @@ const validateLine = (validate, l, name) => {
}
const validate = createValidate(cfg, {
- line: validateLine
+ line: validateLine,
})
const assertValidPrice = (t, p) => {
@@ -77,7 +77,7 @@ tap.test('journeys – Kiel Hbf to Flensburg', async (t) => {
const res = await client.journeys(kielHbf, flensburg, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
const kaistr = '9049113'
@@ -86,7 +86,7 @@ tap.test('journeys – Kiel Hbf to Flensburg', async (t) => {
res,
validate,
fromIds: [kielHbf, kaistr],
- toId: flensburg
+ toId: flensburg,
})
for (let i = 0; i < res.journeys.length; i++) {
@@ -117,11 +117,11 @@ tap.test('Kiel Hbf to Berliner Str. 80, Husum', async (t) => {
type: 'location',
address: 'Husum, Berliner Straße 80',
latitude: 54.488995,
- longitude: 9.056263
+ longitude: 9.056263,
}
const res = await client.journeys(kielHbf, berlinerStr, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -129,7 +129,7 @@ tap.test('Kiel Hbf to Berliner Str. 80, Husum', async (t) => {
res,
validate,
fromIds: [kielHbf, kielHbf2],
- to: berlinerStr
+ to: berlinerStr,
})
t.end()
})
@@ -141,11 +141,11 @@ tap.test('Kiel Hbf to Holstentor', async (t) => {
poi: true,
name: 'Hansestadt Lübeck, Holstentor (Denkmal)',
latitude: 53.866321,
- longitude: 10.679976
+ longitude: 10.679976,
}
const res = await client.journeys(kielHbf, holstentor, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -153,7 +153,7 @@ tap.test('Kiel Hbf to Holstentor', async (t) => {
res,
validate,
fromIds: [kielHbf, kielHbf2],
- to: holstentor
+ to: holstentor,
})
t.end()
})
@@ -163,7 +163,7 @@ tap.test('Husum to Lübeck Hbf with stopover at Kiel Hbf', async (t) => {
via: kielHbf,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
validate(t, res, 'journeysResult', 'res')
@@ -186,7 +186,7 @@ tap.test('earlier/later journeys, Kiel Hbf -> Flensburg', async (t) => {
validate,
fromId: kielHbf,
toId: flensburg,
- when
+ when,
})
t.end()
@@ -200,7 +200,7 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: kielHbf,
toId: flensburg,
- when
+ when,
})
t.end()
})
@@ -210,7 +210,7 @@ tap.test('refreshJourney', async (t) => {
tap.test('trip details', async (t) => {
const res = await client.journeys(flensburg, husum, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -232,7 +232,7 @@ tap.test('departures at Kiel Räucherei', async (t) => {
test: t,
res,
validate,
- id: kielRaeucherei
+ id: kielRaeucherei,
})
t.end()
})
@@ -245,8 +245,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -261,21 +261,21 @@ tap.test('departures at Berlin Hbf in direction of Berlin Ostbahnhof', async (t)
id: ellerbekerMarkt,
directionIds: [seefischmarkt, '710102'],
when,
- validate
+ validate,
})
t.end()
})
tap.test('arrivals at Kiel Räucherei', async (t) => {
const res = await client.arrivals(kielRaeucherei, {
- duration: 30, when
+ duration: 30, when,
})
await testArrivals({
test: t,
res,
validate,
- id: kielRaeucherei
+ id: kielRaeucherei,
})
t.end()
})
@@ -284,10 +284,10 @@ tap.test('nearby Kiel Hbf', async (t) => {
const kielHbfPosition = {
type: 'location',
latitude: 54.314982,
- longitude: 10.131976
+ longitude: 10.131976,
}
const nearby = await client.nearby(kielHbfPosition, {
- results: 2, distance: 400
+ results: 2, distance: 400,
})
validate(t, nearby, 'locations', 'nearby')
@@ -307,7 +307,7 @@ tap.test('nearby Kiel Hbf', async (t) => {
tap.test('locations named "Kiel Rathaus"', async (t) => {
const kielRathaus = '9049200'
const locations = await client.locations('Kiel Rathaus', {
- results: 15
+ results: 15,
})
validate(t, locations, 'locations', 'locations')
@@ -334,9 +334,9 @@ tap.test('radar', async (t) => {
north: 54.4,
west: 10.0,
south: 54.2,
- east: 10.2
+ east: 10.2,
}, {
- duration: 5 * 60, when
+ duration: 5 * 60, when,
})
// todo: cfg.stationProductsOptional option
@@ -346,11 +346,11 @@ tap.test('radar', async (t) => {
const validate = createValidate(cfg, {
station: (validate, s, name) => {
s = Object.assign({
- products: allProducts // todo: fix station.products
+ products: allProducts, // todo: fix station.products
}, s)
if (!s.name) s.name = 'foo' // todo, see #34
validateStation(validate, s, name)
- }
+ },
})
validate(t, res, 'radarResult', 'res')
@@ -362,7 +362,7 @@ tap.test('reachableFrom', async (t) => {
type: 'location',
address: 'Husum, Berliner Straße 80',
latitude: 54.488995,
- longitude: 9.056263
+ longitude: 9.056263,
}
await testReachableFrom({
@@ -371,7 +371,7 @@ tap.test('reachableFrom', async (t) => {
address: berlinerStr,
when,
maxDuration: 60,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/nvv.js b/test/e2e/nvv.js
index ca4201b9b..4f843c80f 100644
--- a/test/e2e/nvv.js
+++ b/test/e2e/nvv.js
@@ -27,7 +27,7 @@ const cfg = {
minLatitude: 48,
minLongitude: 8,
maxLatitude: 53,
- maxLongitude: 14
+ maxLongitude: 14,
}
const validate = createValidate(cfg, {})
@@ -42,7 +42,7 @@ tap.test('journeys – Kassel Scheidemannplatz to Kassel Auestadion', async (t)
const res = await client.journeys(scheidemannplatz, auestadion, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -50,7 +50,7 @@ tap.test('journeys – Kassel Scheidemannplatz to Kassel Auestadion', async (t)
res,
validate,
fromId: scheidemannplatz,
- toId: auestadion
+ toId: auestadion,
})
t.end()
})
@@ -75,12 +75,12 @@ tap.test('Kassel Scheidemannplatz to Heckerstraße 2', async (t) => {
id: '990100251',
address: 'Kassel, Heckerstraße 2',
latitude: 51.308108,
- longitude: 9.475152
+ longitude: 9.475152,
}
const res = await client.journeys(scheidemannplatz, heckerstr2, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -88,7 +88,7 @@ tap.test('Kassel Scheidemannplatz to Heckerstraße 2', async (t) => {
res,
validate,
fromId: scheidemannplatz,
- to: heckerstr2
+ to: heckerstr2,
})
t.end()
})
@@ -104,7 +104,7 @@ tap.test('Kassel Scheidemannplatz to Grimmwelt', async (t) => {
}
const res = await client.journeys(scheidemannplatz, grimmwelt, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -112,7 +112,7 @@ tap.test('Kassel Scheidemannplatz to Grimmwelt', async (t) => {
res,
validate,
fromId: scheidemannplatz,
- to: grimmwelt
+ to: grimmwelt,
})
t.end()
})
@@ -126,14 +126,14 @@ tap.test('journeys: via works – with detour', async (t) => {
via: wilhelmshöhe,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysWithDetour({
test: t,
res,
validate,
- detourIds: [wilhelmshöhe]
+ detourIds: [wilhelmshöhe],
})
t.end()
})
@@ -147,7 +147,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: scheidemannplatz,
toId: auestadion,
- when
+ when,
})
t.end()
@@ -155,7 +155,7 @@ tap.test('earlier/later journeys', async (t) => {
tap.test('trip details', async (t) => {
const res = await client.journeys(scheidemannplatz, auestadion, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -177,7 +177,7 @@ tap.test('departures at Kassel Auestadion.', async (t) => {
test: t,
res,
validate,
- id: auestadion
+ id: auestadion,
})
t.end()
})
@@ -190,8 +190,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -206,14 +206,14 @@ tap.test('departures at Auestadion in direction of Friedrichsplatz', async (t) =
id: weigelstr,
directionIds: [friedrichsplatz],
when,
- validate
+ validate,
})
t.end()
})
tap.test('arrivals at Kassel Weigelstr.', async (t) => {
const res = await client.arrivals(weigelstr, {
- duration: 5, when
+ duration: 5, when,
})
await testArrivals({
@@ -254,9 +254,9 @@ tap.test('radar', async (t) => {
north: 51.320153,
west: 9.458359,
south: 51.304304,
- east: 9.493672
+ east: 9.493672,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
diff --git a/test/e2e/oebb.js b/test/e2e/oebb.js
index 38820d25b..0bc1918b7 100644
--- a/test/e2e/oebb.js
+++ b/test/e2e/oebb.js
@@ -30,7 +30,7 @@ const cfg = {
minLatitude: 45.992803,
maxLatitude: 49.453517,
minLongitude: 8.787557,
- maxLongitude: 17.491275
+ maxLongitude: 17.491275,
}
// todo validateDirection: search list of stations for direction
@@ -67,7 +67,7 @@ tap.test('journeys – Salzburg Hbf to Wien Westbahnhof', async (t) => {
const res = await client.journeys(salzburgHbf, wienFickeystr, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -75,7 +75,7 @@ tap.test('journeys – Salzburg Hbf to Wien Westbahnhof', async (t) => {
res,
validate,
fromId: salzburgHbf,
- toId: wienFickeystr
+ toId: wienFickeystr,
})
for (let i = 0; i < res.journeys.length; i++) {
@@ -105,11 +105,11 @@ tap.test('Salzburg Hbf to 1220 Wien, Fischerstrand 7', async (t) => {
type: 'location',
address: '1220 Wien, Fischerstrand 7',
latitude: 48.236216,
- longitude: 16.425863
+ longitude: 16.425863,
}
const res = await client.journeys(salzburgHbf, wagramerStr, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -117,7 +117,7 @@ tap.test('Salzburg Hbf to 1220 Wien, Fischerstrand 7', async (t) => {
res,
validate,
fromId: salzburgHbf,
- to: wagramerStr
+ to: wagramerStr,
})
t.end()
})
@@ -131,7 +131,7 @@ tap.test('Salzburg Hbf to Uni Wien', async (t) => {
latitude: 48.240674, longitude: 16.4097,
}
const res = await client.journeys(salzburgHbf, uniWien, {
- results: 3, departure: when
+ results: 3, departure: when,
})
await testJourneysStationToPoi({
@@ -155,14 +155,14 @@ tap.test('journeys: via works – with detour', async (t) => {
via: donauinsel,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysWithDetour({
test: t,
res,
validate,
- detourIds: [donauinsel, donauinselPassed]
+ detourIds: [donauinsel, donauinselPassed],
})
t.end()
})
@@ -179,7 +179,7 @@ tap.test('journeys: via works – without detour', async (t) => {
via: stephansplatz,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
validate(t, res, 'journeysResult', 'res')
@@ -209,7 +209,7 @@ tap.test('earlier/later journeys, Salzburg Hbf -> Wien Westbahnhof', async (t) =
validate,
fromId: salzburgHbf,
toId: wienWestbahnhof,
- when
+ when,
})
t.end()
@@ -223,14 +223,14 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: salzburgHbf,
toId: wienWestbahnhof,
- when
+ when,
})
t.end()
})
tap.test('trip details', async (t) => {
const res = await client.journeys(wienWestbahnhof, muenchenHbf, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -248,7 +248,7 @@ tap.test('departures at Wien Leibenfrostgasse', async (t) => {
const ids = [
wienLeibenfrostgasse, // station
'904029', // stop "Wien Leibenfrostgasse (Phorusgasse)s"
- '904030' // stop "Wien Leibenfrostgasse (Ziegelofengasse)"
+ '904030', // stop "Wien Leibenfrostgasse (Ziegelofengasse)"
]
const res = await client.departures(wienLeibenfrostgasse, {
@@ -272,8 +272,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -292,7 +292,7 @@ tap.test('departures at Karlsplatz in direction of Pilgramgasse', async (t) => {
id: wienKarlsplatz,
directionIds: [wienPilgramgasse, ...subStops.map(s => s.id)],
when,
- validate
+ validate,
})
t.end()
})
@@ -303,9 +303,9 @@ tap.test('nearby Salzburg Hbf', async (t) => {
const nearby = await client.nearby({
type: 'location',
longitude: 13.045605,
- latitude: 47.812852
+ latitude: 47.812852,
}, {
- results: 5, distance: 400
+ results: 5, distance: 400,
})
validate(t, nearby, 'locations', 'nearby')
@@ -314,8 +314,8 @@ tap.test('nearby Salzburg Hbf', async (t) => {
const s = nearby[0]
t.equal(s.id, salzburgHbf, 'id should be ' + salzburgHbf)
t.equal(s.name, 'Salzburg Hbf')
- t.ok(isRoughlyEqual(.0005, s.location.latitude, 47.812851))
- t.ok(isRoughlyEqual(.0005, s.location.longitude, 13.045604))
+ t.ok(isRoughlyEqual(0.0005, s.location.latitude, 47.812851))
+ t.ok(isRoughlyEqual(0.0005, s.location.longitude, 13.045604))
t.ok(s.distance >= 0)
t.ok(s.distance <= 100)
@@ -325,7 +325,7 @@ tap.test('nearby Salzburg Hbf', async (t) => {
tap.test('locations named Salzburg', async (t) => {
const salzburgVolksgarten = '591161'
const locations = await client.locations('Salzburg volksgarten', {
- results: 20
+ results: 20,
})
validate(t, locations, 'locations', 'locations')
@@ -356,7 +356,7 @@ tap.test('stop', async (t) => {
station: (validate, s, name) => {
const withFakeProducts = Object.assign({products: allProducts}, s)
validateStation(validate, withFakeProducts, name)
- }
+ },
})
validate(t, loc, ['stop', 'station'], 'stop')
@@ -370,9 +370,9 @@ tap.test('radar Salzburg', async (t) => {
north: 47.827203,
west: 13.001261,
south: 47.773278,
- east: 13.07562
+ east: 13.07562,
}, {
- duration: 5 * 60, when
+ duration: 5 * 60, when,
})
// todo: find a way to always get frames from the API
@@ -392,7 +392,9 @@ tap.test('radar Salzburg', async (t) => {
validateLine(val, {
...line,
// fptf demands a mode
- mode: line.mode === null ? 'bus' : line.mode,
+ mode: line.mode === null
+ ? 'bus'
+ : line.mode,
}, name)
},
})
diff --git a/test/e2e/pkp.js b/test/e2e/pkp.js
index 3cf92c0bb..3bbd3cce1 100644
--- a/test/e2e/pkp.js
+++ b/test/e2e/pkp.js
@@ -28,26 +28,26 @@ const cfg = {
const _validateLine = createValidateLine(cfg)
const validateLine = (validate, l, name) => {
- if (!l.direction) l = Object.assign({}, l, { direction: 'foo' })
+ if (!l.direction) l = Object.assign({}, l, {direction: 'foo'})
_validateLine(validate, l, name)
}
const _validateJourneyLeg = createValidateJourneyLeg(cfg)
const validateJourneyLeg = (validate, l, name) => {
- if (!l.direction) l = Object.assign({}, l, { direction: 'foo' })
+ if (!l.direction) l = Object.assign({}, l, {direction: 'foo'})
_validateJourneyLeg(validate, l, name)
}
const _validateMovement = createValidateMovement(cfg)
const validateMovement = (val, m, name) => {
- if (!m.direction) m = Object.assign({}, m, { direction: 'foo' })
+ if (!m.direction) m = Object.assign({}, m, {direction: 'foo'})
_validateMovement(val, m, name)
}
const validate = createValidate(cfg, {
line: validateLine,
journeyLeg: validateJourneyLeg,
- movement: validateMovement
+ movement: validateMovement,
})
const client = createClient(pkpProfile, 'public-transport/hafas-client:test')
@@ -58,7 +58,7 @@ const dworcowa100 = {
type: 'location',
address: 'Bydgoszcz, Dworcowa 100',
latitude: 53.1336648,
- longitude: 17.9908571
+ longitude: 17.9908571,
}
const filharmonia = {
type: 'location',
@@ -66,14 +66,14 @@ const filharmonia = {
latitude: 54.351487,
longitude: 18.659548,
name: 'Gdańsk, Filharmonia',
- poi: true
+ poi: true,
}
tap.skip('journeys – Wrocław Główny to Kraków Główny', async (t) => {
const res = await client.journeys(wrocławGł, krakówGł, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -81,7 +81,7 @@ tap.skip('journeys – Wrocław Główny to Kraków Główny', async (t) => {
res,
validate,
fromId: wrocławGł,
- toId: krakówGł
+ toId: krakówGł,
})
t.end()
})
@@ -91,7 +91,7 @@ tap.skip('journeys – Wrocław Główny to Kraków Główny', async (t) => {
tap.skip('trip details', async (t) => {
const res = await client.journeys(wrocławGł, krakówGł, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -106,19 +106,19 @@ tap.skip('trip details', async (t) => {
tap.skip('arrivals at Kraków Główny', async (t) => {
const arrivals = await client.arrivals(krakówGł, {
- duration: 10, when
+ duration: 10, when,
})
await testArrivals({
test: t,
arrivals,
id: krakówGł,
- validate
+ validate,
})
t.end()
})
tap.skip('nearby', async (t) => {
- const nearby = await client.nearby(dworcowa100, { distance: 500 })
+ const nearby = await client.nearby(dworcowa100, {distance: 500})
validate(t, nearby, 'locations', 'nearby')
@@ -133,9 +133,9 @@ tap.skip('radar', async (t) => {
north: 48.74453,
west: 11.42733,
south: 48.73453,
- east: 11.43733
+ east: 11.43733,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
@@ -149,7 +149,7 @@ tap.skip('reachableFrom', async (t) => {
address: dworcowa100,
when,
maxDuration: 20,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/rejseplanen.js b/test/e2e/rejseplanen.js
index 626a0d5ec..f45f07bcb 100644
--- a/test/e2e/rejseplanen.js
+++ b/test/e2e/rejseplanen.js
@@ -101,7 +101,7 @@ tap.test('earlier/later journeys', async (t) => {
})
tap.test('trip', async (t) => {
- const { journeys } = await client.journeys(aalborg, næstved, {
+ const {journeys} = await client.journeys(aalborg, næstved, {
results: 1, departure: when,
})
@@ -135,7 +135,7 @@ tap.test('departures at Næstved.', async (t) => {
tap.test('arrivals at Næstved.', async (t) => {
const res = await client.arrivals(næstved, {
- duration: 20, when
+ duration: 20, when,
})
await testArrivals({
diff --git a/test/e2e/rmv.js b/test/e2e/rmv.js
index a246914bb..4ea3e9abe 100644
--- a/test/e2e/rmv.js
+++ b/test/e2e/rmv.js
@@ -32,7 +32,7 @@ tap.test('journeys – Frankfurt Ostendstr. to Wiesbaden Hbf', async (t) => {
const res = await client.journeys(frankfurtOstendstr, wiesbadenHbf, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -40,7 +40,7 @@ tap.test('journeys – Frankfurt Ostendstr. to Wiesbaden Hbf', async (t) => {
res,
validate,
fromId: frankfurtOstendstr,
- toId: wiesbadenHbf
+ toId: wiesbadenHbf,
})
t.end()
})
@@ -50,7 +50,7 @@ tap.test('journeys – Frankfurt Ostendstr. to Wiesbaden Hbf', async (t) => {
tap.test('trip details', async (t) => {
const res = await client.journeys(frankfurtOstendstr, wiesbadenHbf, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -65,7 +65,7 @@ tap.test('trip details', async (t) => {
tap.test('arrivals at Wiesbaden Hbf', async (t) => {
const res = await client.arrivals(wiesbadenHbf, {
- duration: 10, when
+ duration: 10, when,
})
await testArrivals({
@@ -84,9 +84,9 @@ tap.test('radar', async (t) => {
north: 53.090516,
west: 8.750106,
south: 53.062859,
- east: 8.847423
+ east: 8.847423,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
@@ -106,7 +106,7 @@ tap.test('reachableFrom', async (t) => {
},
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/rsag.js b/test/e2e/rsag.js
index 9a36cdee6..479091bdb 100644
--- a/test/e2e/rsag.js
+++ b/test/e2e/rsag.js
@@ -35,7 +35,7 @@ tap.test('journeys – Platz der Jugend to Weißes Kreuz', async (t) => {
const res = await client.journeys(sternwarte, weißesKreuz, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -58,7 +58,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: sternwarte,
toId: weißesKreuz,
- when
+ when,
})
t.end()
@@ -72,14 +72,14 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: sternwarte,
toId: weißesKreuz,
- when
+ when,
})
t.end()
})
tap.test('arrivals at Platz der Jugend', async (t) => {
const res = await client.arrivals(sternwarte, {
- duration: 30, when
+ duration: 30, when,
})
await testArrivals({
@@ -101,9 +101,9 @@ tap.test('radar', async (t) => {
north: 54.116968,
west: 12.029738,
south: 54.060517,
- east: 12.203261
+ east: 12.203261,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
@@ -118,11 +118,11 @@ tap.test('reachableFrom', async (t) => {
type: 'location',
id: '990004158',
address: 'Rostock - Stadtmitte, Pläterstraße 2',
- latitude: 54.091285, longitude: 12.13648
+ latitude: 54.091285, longitude: 12.13648,
},
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/saarfahrplan.js b/test/e2e/saarfahrplan.js
index 31ce490b9..995ea7aca 100644
--- a/test/e2e/saarfahrplan.js
+++ b/test/e2e/saarfahrplan.js
@@ -28,7 +28,7 @@ const cfg = {
minLatitude: 49,
maxLatitude: 49.6,
minLongitude: 6.1,
- maxLongitude: 7.5
+ maxLongitude: 7.5,
}
// @todo validateDirection: search list of stations for direction
@@ -60,7 +60,7 @@ const thomasMannStr = {
type: 'location',
address: 'Neunkirchen, Thomas-Mann-Straße 1',
latitude: 49.348307,
- longitude: 7.183613
+ longitude: 7.183613,
}
// @todo prices/tickets
@@ -81,7 +81,7 @@ tap.test('journeys – fails with no product', async (t) => {
tap.test('Saarbrücken Hbf to Neunkirchen, Thomas-Mann-Straße 1', async (t) => {
const res = await client.journeys(saarbrueckenHbf, thomasMannStr, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -89,7 +89,7 @@ tap.test('Saarbrücken Hbf to Neunkirchen, Thomas-Mann-Straße 1', async (t) =>
res,
validate,
fromId: saarbrueckenHbf,
- to: thomasMannStr
+ to: thomasMannStr,
})
t.end()
})
@@ -101,10 +101,10 @@ tap.test('Saarbrücken Hbf to Schlossberghöhlen', async (t) => {
poi: true,
name: 'Homburg, Schlossberghöhlen',
latitude: 49.32071,
- longitude: 7.343764
+ longitude: 7.343764,
}
const res = await client.journeys(saarbrueckenHbf, schlossberghoehlen, {
- results: 3, departure: when
+ results: 3, departure: when,
})
await testJourneysStationToPoi({
@@ -112,7 +112,7 @@ tap.test('Saarbrücken Hbf to Schlossberghöhlen', async (t) => {
res,
validate,
fromId: saarbrueckenHbf,
- to: schlossberghoehlen
+ to: schlossberghoehlen,
})
t.end()
})
@@ -127,7 +127,7 @@ tap.test('journeys: via works – with detour', async (t) => {
via: steubenstr,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysWithDetour({
@@ -148,7 +148,7 @@ tap.test('earlier/later journeys, Saarbrücken Hbf -> Saarlouis Hbf', async (t)
validate,
fromId: saarbrueckenHbf,
toId: saarlouisHbf,
- when
+ when,
})
t.end()
@@ -156,14 +156,14 @@ tap.test('earlier/later journeys, Saarbrücken Hbf -> Saarlouis Hbf', async (t)
tap.test('trip details', async (t) => {
const res = await client.journeys(saarlouisHbf, metzVille, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
t.ok(p.tripId, 'precondition failed')
t.ok(p.line.name, 'precondition failed')
- const tripRes = await client.trip(p.tripId, { when })
+ const tripRes = await client.trip(p.tripId, {when})
validate(t, tripRes, 'tripResult', 'res')
t.end()
@@ -171,7 +171,7 @@ tap.test('trip details', async (t) => {
tap.test('departures', async (t) => {
const res = await client.departures(saarbrueckenUhlandstr, {
- duration: 5, when
+ duration: 5, when,
})
await testDepartures({
@@ -191,8 +191,8 @@ tap.test('departures with stop object', async (t) => {
location: {
type: 'location',
latitude: 49.241066,
- longitude: 6.991019
- }
+ longitude: 6.991019,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -208,7 +208,7 @@ tap.test('departures at Uhlandstr., Saarbrücken in direction of Landwehrplatz',
id: saarbrueckenUhlandstr,
directionIds: [saarbrueckenLandwehrplatz],
when,
- validate
+ validate,
})
t.end()
})
@@ -219,9 +219,9 @@ tap.test('nearby Saarbrücken Hbf', async (t) => {
const nearby = await client.nearby({
type: 'location',
latitude: 49.241066,
- longitude: 6.991019
+ longitude: 6.991019,
}, {
- results: 5, distance: 400
+ results: 5, distance: 400,
})
validate(t, nearby, 'locations', 'nearby')
@@ -241,7 +241,7 @@ tap.test('nearby Saarbrücken Hbf', async (t) => {
tap.test('locations named Saarbrücken', async (t) => {
const aufDerWerthBürgerpark = '10204'
const locations = await client.locations('bürgerpark', {
- results: 20
+ results: 20,
})
validate(t, locations, 'locations', 'locations')
@@ -270,9 +270,9 @@ tap.test('radar', async (t) => {
north: 49.27,
west: 6.97,
south: 49.22,
- east: 7.02
+ east: 7.02,
}, {
- duration: 5 * 60, when
+ duration: 5 * 60, when,
})
validate(t, res, 'radarResult', 'res')
diff --git a/test/e2e/sbahn-muenchen.js b/test/e2e/sbahn-muenchen.js
index 720c5813f..b431bb416 100644
--- a/test/e2e/sbahn-muenchen.js
+++ b/test/e2e/sbahn-muenchen.js
@@ -26,7 +26,7 @@ const cfg = {
minLatitude: 48,
maxLatitude: 48.3,
minLongitude: 11.3,
- maxLongitude: 11.8
+ maxLongitude: 11.8,
}
const _validateMovement = _createValidateMovement(cfg)
@@ -37,14 +37,14 @@ const validateMovement = (val, m, name = 'movement') => {
const withFakeFrame = Object.assign({}, m)
if (!m.frames.length) {
withFakeFrame.frames = [
- {t: 5, origin: dummyStopA, destination: dummyStopB}
+ {t: 5, origin: dummyStopA, destination: dummyStopB},
]
}
_validateMovement(val, withFakeFrame, name)
}
const validate = createValidate(cfg, {
- movement: validateMovement
+ movement: validateMovement,
})
const client = createClient(sMunichProfile, 'public-transport/hafas-client:test')
@@ -56,14 +56,14 @@ const poetschnerstr = {
type: 'location',
address: 'Pötschnerstraße 3, Neuhausen',
latitude: 48.152499,
- longitude: 11.531695
+ longitude: 11.531695,
}
tap.test('journeys – Mittersendling to Karl-Theodor-Straße', async (t) => {
const res = await client.journeys(mittersendling, karlTheodorStr, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -71,7 +71,7 @@ tap.test('journeys – Mittersendling to Karl-Theodor-Straße', async (t) => {
res,
validate,
fromId: mittersendling,
- toId: karlTheodorStr
+ toId: karlTheodorStr,
})
t.end()
})
@@ -93,7 +93,7 @@ tap.test('journeys – fails with no product', async (t) => {
tap.test('Karl-Theodor-Straße to Pötschnerstraße 3, Neuhausen', async (t) => {
const res = await client.journeys(karlTheodorStr, poetschnerstr, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -101,7 +101,7 @@ tap.test('Karl-Theodor-Straße to Pötschnerstraße 3, Neuhausen', async (t) =>
res,
validate,
fromId: karlTheodorStr,
- to: poetschnerstr
+ to: poetschnerstr,
})
t.end()
})
@@ -113,11 +113,11 @@ tap.test('Karl-Theodor-Straße to Hofbräuhaus', async (t) => {
poi: true,
name: 'München, Hofbräuhaus München',
latitude: 48.137739,
- longitude: 11.579823
+ longitude: 11.579823,
}
const res = await client.journeys(karlTheodorStr, hofbraeuhaus, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -125,7 +125,7 @@ tap.test('Karl-Theodor-Straße to Hofbräuhaus', async (t) => {
res,
validate,
fromId: karlTheodorStr,
- to: hofbraeuhaus
+ to: hofbraeuhaus,
})
t.end()
})
@@ -141,7 +141,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: mittersendling,
toId: karlTheodorStr,
- when
+ when,
})
t.end()
@@ -156,14 +156,14 @@ tap.skip('refreshJourney', async (t) => {
validate,
fromId: mittersendling,
toId: karlTheodorStr,
- when
+ when,
})
t.end()
})
tap.test('trip details', async (t) => {
const res = await client.journeys(mittersendling, karlTheodorStr, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -186,7 +186,7 @@ tap.test('departures at Dietlindenstraße', async (t) => {
test: t,
res,
validate,
- id: dietlindenstr
+ id: dietlindenstr,
})
t.end()
})
@@ -199,8 +199,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 48.107418,
- longitude: 11.536306
- }
+ longitude: 11.536306,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -216,7 +216,7 @@ tap.test('arrivals at Karl-Theodor-Straße', async (t) => {
test: t,
res,
validate,
- id: karlTheodorStr
+ id: karlTheodorStr,
})
t.end()
})
@@ -226,7 +226,7 @@ tap.test('arrivals at Karl-Theodor-Straße', async (t) => {
tap.test('locations named "Nationaltheater"', async (t) => {
const nationaltheater = '624639'
const locations = await client.locations('Nationaltheater', {
- results: 10
+ results: 10,
})
validate(t, locations, 'locations', 'locations')
@@ -255,9 +255,9 @@ tap.test('radar', async (t) => {
north: 48.145121,
west: 11.543736,
south: 48.138339,
- east: 11.553776
+ east: 11.553776,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
@@ -271,7 +271,7 @@ tap.test('reachableFrom', async (t) => {
address: poetschnerstr,
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/sncb.js b/test/e2e/sncb.js
index 8d507acea..1fd589684 100644
--- a/test/e2e/sncb.js
+++ b/test/e2e/sncb.js
@@ -18,7 +18,7 @@ const cfg = {
minLatitude: 46.513,
maxLatitude: 54.521,
minLongitude: -1.423,
- maxLongitude: 15.26
+ maxLongitude: 15.26,
}
const validate = createValidate(cfg)
@@ -37,7 +37,7 @@ tap.skip('journeys – Gent Sant Pieters to Bruxelles Midi', async (t) => {
const res = await client.journeys(gentStPieters, bruxellesMidi, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -45,7 +45,7 @@ tap.skip('journeys – Gent Sant Pieters to Bruxelles Midi', async (t) => {
res,
validate,
fromId: gentStPieters,
- toId: bruxellesMidi
+ toId: bruxellesMidi,
})
t.end()
})
@@ -55,7 +55,7 @@ tap.skip('journeys – Gent Sant Pieters to Bruxelles Midi', async (t) => {
tap.skip('trip details', async (t) => {
const res = await client.journeys(gentStPieters, bruxellesMidi, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -70,7 +70,7 @@ tap.skip('trip details', async (t) => {
tap.skip('arrivals at Bruxelles Midi', async (t) => {
const res = await client.arrivals(bruxellesMidi, {
- duration: 10, when
+ duration: 10, when,
})
await testArrivals({
@@ -89,9 +89,9 @@ tap.skip('radar', async (t) => {
north: 51.065,
west: 3.688,
south: 51.04,
- east: 3.748
+ east: 3.748,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
@@ -105,7 +105,7 @@ tap.skip('reachableFrom', async (t) => {
address: gentPaddenhoek,
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/svv.js b/test/e2e/svv.js
index 7090116be..921aaf4cd 100644
--- a/test/e2e/svv.js
+++ b/test/e2e/svv.js
@@ -39,7 +39,7 @@ tap.test('journeys – Sam to Volksgarten', async (t) => {
const res = await client.journeys(sam, volksgarten, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -47,7 +47,7 @@ tap.test('journeys – Sam to Volksgarten', async (t) => {
res,
validate,
fromId: sam,
- toId: volksgarten
+ toId: volksgarten,
})
t.end()
})
@@ -57,7 +57,7 @@ tap.test('journeys – Sam to Volksgarten', async (t) => {
tap.test('trip details', async (t) => {
const res = await client.journeys(sam, volksgarten, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -72,7 +72,7 @@ tap.test('trip details', async (t) => {
tap.test('arrivals at Volksgarten', async (t) => {
const res = await client.arrivals(volksgarten, {
- duration: 10, when
+ duration: 10, when,
})
await testArrivals({
@@ -93,7 +93,7 @@ tap.test('reachableFrom', async (t) => {
address: zillnerstr2,
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/vbb.js b/test/e2e/vbb.js
index 9623d029d..c64ebbd1e 100644
--- a/test/e2e/vbb.js
+++ b/test/e2e/vbb.js
@@ -26,7 +26,7 @@ const {
validateStation,
validateJourneyLeg,
validateDeparture,
- validateMovement
+ validateMovement,
} = createVbbBvgValidators({
when,
})
@@ -35,7 +35,7 @@ const validate = createValidate(cfg, {
station: validateStation,
journeyLeg: validateJourneyLeg,
departure: validateDeparture,
- movement: validateMovement
+ movement: validateMovement,
})
const client = createClient(vbbProfile, 'public-transport/hafas-client:test')
@@ -51,11 +51,11 @@ tap.test('journeys – Spichernstr. to Bismarckstr.', async (t) => {
const res = await client.journeys({
type: 'stop',
id: spichernstr,
- name: 'U Spichernstr.'
+ name: 'U Spichernstr.',
}, bismarckstr, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -63,7 +63,7 @@ tap.test('journeys – Spichernstr. to Bismarckstr.', async (t) => {
res,
validate,
fromId: spichernstr,
- toId: bismarckstr
+ toId: bismarckstr,
})
// todo: find a journey where there ticket info is always available
@@ -76,13 +76,13 @@ tap.test('journeys – only subway', async (t) => {
departure: when,
products: {
suburban: false,
- subway: true,
- tram: false,
- bus: false,
- ferry: false,
- express: false,
- regional: false
- }
+ subway: true,
+ tram: false,
+ bus: false,
+ ferry: false,
+ express: false,
+ regional: false,
+ },
})
validate(t, res, 'journeysResult', 'res')
@@ -124,7 +124,7 @@ tap.test('journeys: walkingSpeed', async (t) => {
type: 'location',
address: 'Havelchaussee',
latitude: 52.443576,
- longitude: 13.198973
+ longitude: 13.198973,
}
const wannsee = '900053301'
@@ -136,7 +136,7 @@ tap.test('journeys: walkingSpeed', async (t) => {
to: wannsee,
when,
products: {bus: false},
- minTimeDifference: 5 * 60 * 1000
+ minTimeDifference: 5 * 60 * 1000,
})
})
@@ -147,7 +147,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: spichernstr,
toId: bismarckstr,
- when
+ when,
})
t.end()
@@ -161,14 +161,14 @@ tap.test('refreshJourney', async (t) => {
validate,
fromId: spichernstr,
toId: bismarckstr,
- when
+ when,
})
t.end()
})
tap.test('trip details', async (t) => {
const res = await client.journeys(spichernstr, amrumerStr, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -220,11 +220,11 @@ tap.test('journeys – station to address', async (t) => {
type: 'location',
address: '13353 Berlin-Wedding, Torfstr. 17',
latitude: 52.541797,
- longitude: 13.350042
+ longitude: 13.350042,
}
const res = await client.journeys(spichernstr, torfstr, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -232,7 +232,7 @@ tap.test('journeys – station to address', async (t) => {
res,
validate,
fromId: spichernstr,
- to: torfstr
+ to: torfstr,
})
t.end()
})
@@ -244,11 +244,11 @@ tap.test('journeys – station to POI', async (t) => {
poi: true,
name: 'Berlin, Atze Musiktheater für Kinder',
latitude: 52.543333,
- longitude: 13.351686
+ longitude: 13.351686,
}
const res = await client.journeys(spichernstr, atze, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -256,7 +256,7 @@ tap.test('journeys – station to POI', async (t) => {
res,
validate,
fromId: spichernstr,
- to: atze
+ to: atze,
})
t.end()
})
@@ -268,14 +268,14 @@ tap.test('journeys: via works – with detour', async (t) => {
via: württembergallee,
results: 1,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysWithDetour({
test: t,
res,
validate,
- detourIds: [württembergallee]
+ detourIds: [württembergallee],
})
t.end()
})
@@ -291,7 +291,7 @@ tap.test('departures', async (t) => {
test: t,
res,
validate,
- id: spichernstr
+ id: spichernstr,
})
t.end()
})
@@ -304,8 +304,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 1.23,
- longitude: 2.34
- }
+ longitude: 2.34,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -320,7 +320,7 @@ tap.test('departures at Spichernstr. in direction of Westhafen', async (t) => {
id: spichernstr,
directionIds: [westhafen],
when,
- validate
+ validate,
})
t.end()
})
@@ -341,7 +341,7 @@ tap.test('arrivals', async (t) => {
test: t,
res,
validate,
- id: spichernstr
+ id: spichernstr,
})
t.end()
})
@@ -354,7 +354,7 @@ tap.test('nearby', async (t) => {
const nearby = await client.nearby({
type: 'location',
latitude: 52.4873452,
- longitude: 13.3310411
+ longitude: 13.3310411,
}, {
// Even though HAFAS reports Landhausstr. to be 179m, we have to pass way more here. 🙄
distance: 600,
@@ -403,9 +403,9 @@ tap.test('radar', async (t) => {
north: 52.52411,
west: 13.41002,
south: 52.51942,
- east: 13.41709
+ east: 13.41709,
}, {
- duration: 5 * 60, when
+ duration: 5 * 60, when,
})
validate(t, res, 'radarResult', 'res')
@@ -417,7 +417,7 @@ tap.test('reachableFrom', async (t) => {
type: 'location',
address: '13353 Berlin-Wedding, Torfstr. 17',
latitude: 52.541797,
- longitude: 13.350042
+ longitude: 13.350042,
}
await testReachableFrom({
@@ -426,7 +426,7 @@ tap.test('reachableFrom', async (t) => {
address: torfstr17,
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/vbn.js b/test/e2e/vbn.js
index e462048b9..2296c5d61 100644
--- a/test/e2e/vbn.js
+++ b/test/e2e/vbn.js
@@ -18,7 +18,7 @@ const cfg = {
minLatitude: 51.817,
maxLatitude: 53.657,
minLongitude: 5.248,
- maxLongitude: 11.719
+ maxLongitude: 11.719,
}
const validate = createValidate(cfg)
@@ -32,7 +32,7 @@ tap.test('journeys – Oldenburg to Bremen Humboldtstr.', async (t) => {
const res = await client.journeys(oldenburg, bremenHumboldtstr, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -40,7 +40,7 @@ tap.test('journeys – Oldenburg to Bremen Humboldtstr.', async (t) => {
res,
validate,
fromId: oldenburg,
- toId: bremenHumboldtstr
+ toId: bremenHumboldtstr,
})
t.end()
})
@@ -50,7 +50,7 @@ tap.test('journeys – Oldenburg to Bremen Humboldtstr.', async (t) => {
tap.test('trip details', async (t) => {
const res = await client.journeys(oldenburg, bremenHumboldtstr, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -65,7 +65,7 @@ tap.test('trip details', async (t) => {
tap.test('arrivals at Bremen Humboldtstr.', async (t) => {
const res = await client.arrivals(bremenHumboldtstr, {
- duration: 10, when
+ duration: 10, when,
})
await testArrivals({
@@ -84,9 +84,9 @@ tap.test('radar', async (t) => {
north: 53.090516,
west: 8.750106,
south: 53.062859,
- east: 8.847423
+ east: 8.847423,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
@@ -107,7 +107,7 @@ tap.test('reachableFrom', async (t) => {
},
when,
maxDuration: 15,
- validate
+ validate,
})
t.end()
})
diff --git a/test/e2e/vrn.js b/test/e2e/vrn.js
index 4aded9ead..6ddc49f29 100644
--- a/test/e2e/vrn.js
+++ b/test/e2e/vrn.js
@@ -38,7 +38,7 @@ tap.test('journeys – Ludwigshafen to Meckesheim', async (t) => {
const res = await client.journeys(ludwigshafen, meckesheim, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -46,7 +46,7 @@ tap.test('journeys – Ludwigshafen to Meckesheim', async (t) => {
res,
validate,
fromId: ludwigshafen,
- toId: meckesheim
+ toId: meckesheim,
})
t.end()
})
@@ -75,7 +75,7 @@ tap.test('Ludwigshafen to Pestalozzistr. 2, Ludwigshafen', async (t) => {
const res = await client.journeys(ludwigshafen, pestalozzistr2, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
@@ -83,7 +83,7 @@ tap.test('Ludwigshafen to Pestalozzistr. 2, Ludwigshafen', async (t) => {
res,
validate,
fromId: ludwigshafen,
- to: pestalozzistr2
+ to: pestalozzistr2,
})
t.end()
})
@@ -98,7 +98,7 @@ tap.test('Ludwigshafen to Südwest-Stadion', async (t) => {
}
const res = await client.journeys(ludwigshafen, südweststadion, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToPoi({
@@ -106,7 +106,7 @@ tap.test('Ludwigshafen to Südwest-Stadion', async (t) => {
res,
validate,
fromId: ludwigshafen,
- to: südweststadion
+ to: südweststadion,
})
t.end()
})
@@ -121,7 +121,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: ludwigshafen,
toId: meckesheim,
- when
+ when,
})
t.end()
@@ -129,7 +129,7 @@ tap.test('earlier/later journeys', async (t) => {
tap.test('trip details', async (t) => {
const res = await client.journeys(ludwigshafen, meckesheim, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
@@ -151,7 +151,7 @@ tap.test('departures at Meckesheim', async (t) => {
test: t,
res,
validate,
- id: meckesheim
+ id: meckesheim,
})
t.end()
})
@@ -172,14 +172,14 @@ tap.test('departures at Meckesheim in direction of Reilsheim', async (t) => {
tap.test('arrivals at Meckesheim', async (t) => {
const res = await client.arrivals(meckesheim, {
- duration: 3 * 60, when
+ duration: 3 * 60, when,
})
await testArrivals({
test: t,
res,
validate,
- id: meckesheim
+ id: meckesheim,
})
t.end()
})
@@ -189,7 +189,7 @@ tap.test('arrivals at Meckesheim', async (t) => {
tap.test('locations named Ebertpark', async (t) => {
const ebertpark = '506453'
const locations = await client.locations('Ebertpark', {
- results: 20
+ results: 20,
})
validate(t, locations, 'locations', 'locations')
diff --git a/test/e2e/vsn.js b/test/e2e/vsn.js
index ddcee1bee..4509d7d4c 100644
--- a/test/e2e/vsn.js
+++ b/test/e2e/vsn.js
@@ -36,7 +36,7 @@ tap.test('journeys – Kornmarkt to Ewaldstraße', async (t) => {
const res = await client.journeys(kornmarkt, ewaldstrasse, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -44,7 +44,7 @@ tap.test('journeys – Kornmarkt to Ewaldstraße', async (t) => {
res,
validate,
fromId: kornmarkt,
- toId: ewaldstrasse
+ toId: ewaldstrasse,
})
t.end()
})
@@ -54,18 +54,18 @@ tap.test('Ewaldstraße to 37083 Göttingen, Schulweg 22', async (t) => {
type: 'location',
address: '37083 Göttingen, Schulweg 22',
latitude: 51.51579,
- longitude: 9.945382
+ longitude: 9.945382,
}
const res = await client.journeys(ewaldstrasse, schulweg, {
results: 3,
- departure: when
+ departure: when,
})
await testJourneysStationToAddress({
test: t,
res,
validate,
fromId: ewaldstrasse,
- to: schulweg
+ to: schulweg,
})
t.end()
})
@@ -77,15 +77,15 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: ewaldstrasse,
toId: kornmarkt,
- when
+ when,
})
t.end()
})
tap.test('trip', async (t) => {
- const { journeys } = await client.journeys(jugendherberge, kornmarkt, {
- results: 1, departure: when
+ const {journeys} = await client.journeys(jugendherberge, kornmarkt, {
+ results: 1, departure: when,
})
const p = journeys[0].legs.find(l => !l.walking)
@@ -100,28 +100,28 @@ tap.test('trip', async (t) => {
tap.test('departures at Kornmarkt.', async (t) => {
const res = await client.departures(kornmarkt, {
- duration: 20, when
+ duration: 20, when,
})
await testDepartures({
test: t,
res,
validate,
- id: kornmarkt
+ id: kornmarkt,
})
t.end()
})
tap.test('arrivals at Kornmarkt.', async (t) => {
const res = await client.arrivals(kornmarkt, {
- duration: 20, when
+ duration: 20, when,
})
await testArrivals({
test: t,
res,
validate,
- id: kornmarkt
+ id: kornmarkt,
})
t.end()
})
@@ -134,8 +134,8 @@ tap.test('departures with station object', async (t) => {
location: {
type: 'location',
latitude: 51.727914,
- longitude: 10.250606
- }
+ longitude: 10.250606,
+ },
}, {when})
validate(t, res, 'departuresResponse', 'res')
@@ -144,7 +144,7 @@ tap.test('departures with station object', async (t) => {
tap.test('locations named Botanischer Garten', async (t) => {
const locations = await client.locations('Botanischer Garten', {
- results: 20
+ results: 20,
})
validate(t, locations, 'locations', 'locations')
@@ -170,9 +170,9 @@ tap.test('radar', async (t) => {
north: 52,
west: 9.8,
south: 51.51,
- east: 10
+ east: 10,
}, {
- duration: 5 * 60, when, results: 10
+ duration: 5 * 60, when, results: 10,
})
validate(t, res, 'radarResult', 'res')
t.end()
diff --git a/test/e2e/zvv.js b/test/e2e/zvv.js
index 372e5b97b..ce9f2d18a 100644
--- a/test/e2e/zvv.js
+++ b/test/e2e/zvv.js
@@ -34,7 +34,7 @@ tap.test('journeys – Bürkliplatz to ETH/Universitätsspital', async (t) => {
const res = await client.journeys(bürkliplatz, ethUniversitätsspital, {
results: 4,
departure: when,
- stopovers: true
+ stopovers: true,
})
await testJourneysStationToStation({
@@ -42,7 +42,7 @@ tap.test('journeys – Bürkliplatz to ETH/Universitätsspital', async (t) => {
res,
validate,
fromId: bürkliplatz,
- toId: ethUniversitätsspital
+ toId: ethUniversitätsspital,
})
t.end()
})
@@ -54,7 +54,7 @@ tap.test('earlier/later journeys', async (t) => {
validate,
fromId: bürkliplatz,
toId: ethUniversitätsspital,
- when
+ when,
})
t.end()
@@ -62,7 +62,7 @@ tap.test('earlier/later journeys', async (t) => {
tap.test('trip details', async (t) => {
const res = await client.journeys(bürkliplatz, ethUniversitätsspital, {
- results: 1, departure: when
+ results: 1, departure: when,
})
const p = res.journeys[0].legs.find(l => !l.walking)
diff --git a/test/fixtures/bvg-arrivals.js b/test/fixtures/bvg-arrivals.js
index 8603da5de..6a5e4a727 100644
--- a/test/fixtures/bvg-arrivals.js
+++ b/test/fixtures/bvg-arrivals.js
@@ -162,7 +162,7 @@ const achtungFalscheFahrplanauskünfte = {
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
categories: [2],
@@ -186,7 +186,7 @@ const gemeinsamSicherUnterwegs = {
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
categories: [0],
@@ -210,7 +210,7 @@ const ausfallS8 = {
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'S-Bahn Berlin',
categories: [1],
@@ -233,7 +233,7 @@ const ersatzlinieWegenBauarbeiten = {
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'BVG',
categories: [1],
@@ -256,7 +256,7 @@ const fehlerImITSysem = {
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
categories: [0],
@@ -280,7 +280,7 @@ const bauzeitverlängerung = {
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
categories: [1],
@@ -316,16 +316,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.529859, longitude: 13.460987}
+ currentTripPosition: {type: 'location', latitude: 52.529859, longitude: 13.460987},
},
{
tripId: '1|19013|5|86|28102021',
@@ -353,16 +353,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.527639, longitude: 13.452159}
+ currentTripPosition: {type: 'location', latitude: 52.527639, longitude: 13.452159},
},
{
tripId: '1|19067|24|86|28102021',
@@ -390,16 +390,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.525949, longitude: 13.446262}
+ currentTripPosition: {type: 'location', latitude: 52.525949, longitude: 13.446262},
},
{
tripId: '1|17032|5|86|28102021',
@@ -427,16 +427,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
ersatzlinieWegenBauarbeiten,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.524088, longitude: 13.439943}
+ currentTripPosition: {type: 'location', latitude: 52.524088, longitude: 13.439943},
},
{
tripId: '1|24512|0|86|28102021',
@@ -464,7 +464,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -472,9 +472,9 @@ const bvgArrivals = [
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
ausfallS8,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.528915, longitude: 13.45536}
+ currentTripPosition: {type: 'location', latitude: 52.528915, longitude: 13.45536},
},
{
tripId: '1|52562|17|86|28102021',
@@ -502,7 +502,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -511,9 +511,9 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.52638, longitude: 13.458002}
+ currentTripPosition: {type: 'location', latitude: 52.52638, longitude: 13.458002},
},
{
tripId: '1|53738|6|86|28102021',
@@ -541,7 +541,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -550,9 +550,9 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.493426, longitude: 13.461283}
+ currentTripPosition: {type: 'location', latitude: 52.493426, longitude: 13.461283},
},
{
tripId: '1|17078|26|86|28102021',
@@ -580,16 +580,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
ersatzlinieWegenBauarbeiten,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.525949, longitude: 13.446262}
+ currentTripPosition: {type: 'location', latitude: 52.525949, longitude: 13.446262},
},
{
tripId: '1|53354|9|86|28102021',
@@ -617,7 +617,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -626,9 +626,9 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.523513, longitude: 13.466003}
+ currentTripPosition: {type: 'location', latitude: 52.523513, longitude: 13.466003},
},
{
tripId: '1|18606|6|86|28102021',
@@ -656,16 +656,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.530803, longitude: 13.461661}
+ currentTripPosition: {type: 'location', latitude: 52.530803, longitude: 13.461661},
},
{
tripId: '1|52010|0|86|28102021',
@@ -693,16 +693,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.54479, longitude: 13.425884}
+ currentTripPosition: {type: 'location', latitude: 52.54479, longitude: 13.425884},
},
{
tripId: '1|53328|1|86|28102021',
@@ -730,16 +730,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.492473, longitude: 13.460636}
+ currentTripPosition: {type: 'location', latitude: 52.492473, longitude: 13.460636},
},
{
tripId: '1|18731|27|86|28102021',
@@ -767,16 +767,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.524016, longitude: 13.439745}
+ currentTripPosition: {type: 'location', latitude: 52.524016, longitude: 13.439745},
},
{
tripId: '1|24642|3|86|28102021',
@@ -806,7 +806,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -818,15 +818,15 @@ const bvgArrivals = [
{
type: 'status',
code: 'text.realtime.journey.cancelled',
- text: 'S8: Fällt aus'
+ text: 'S8: Fällt aus',
},
{
type: 'status',
code: 'text.realtime.stop.cancelled',
- text: 'Halt entfällt'
- }
+ text: 'Halt entfällt',
+ },
],
- cancelled: true
+ cancelled: true,
},
{
tripId: '1|19013|6|86|28102021',
@@ -854,16 +854,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.525499, longitude: 13.509529}
+ currentTripPosition: {type: 'location', latitude: 52.525499, longitude: 13.509529},
},
{
tripId: '1|19067|25|86|28102021',
@@ -891,16 +891,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
{type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.524385, longitude: 13.421965}
+ currentTripPosition: {type: 'location', latitude: 52.524385, longitude: 13.421965},
},
{
tripId: '1|17032|6|86|28102021',
@@ -928,16 +928,16 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
{type: 'hint', code: 'bf', text: 'barrierefrei'},
ersatzlinieWegenBauarbeiten,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.526749, longitude: 13.482327}
+ currentTripPosition: {type: 'location', latitude: 52.526749, longitude: 13.482327},
},
{
tripId: '1|24781|1|86|28102021',
@@ -967,7 +967,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -988,28 +988,28 @@ const bvgArrivals = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
categories: [1],
validFrom: '2021-10-26T06:17:00+02:00',
validUntil: '2021-10-29T02:00:00+02:00',
- modified: '2021-10-27T13:00:52+02:00'
+ modified: '2021-10-27T13:00:52+02:00',
},
achtungFalscheFahrplanauskünfte,
gemeinsamSicherUnterwegs,
{
type: 'status',
code: 'text.realtime.journey.cancelled',
- text: 'S85: Fällt aus'
+ text: 'S85: Fällt aus',
},
{
type: 'status',
code: 'text.realtime.stop.cancelled',
- text: 'Halt entfällt'
- }
+ text: 'Halt entfällt',
+ },
],
- cancelled: true
+ cancelled: true,
},
{
tripId: '1|52562|18|86|28102021',
@@ -1037,7 +1037,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -1046,9 +1046,9 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.548898, longitude: 13.386934}
+ currentTripPosition: {type: 'location', latitude: 52.548898, longitude: 13.386934},
},
{
tripId: '1|53738|8|86|28102021',
@@ -1076,7 +1076,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -1085,9 +1085,9 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.48752, longitude: 13.459063}
+ currentTripPosition: {type: 'location', latitude: 52.48752, longitude: 13.459063},
},
{
tripId: '1|53738|9|86|28102021',
@@ -1115,7 +1115,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -1124,9 +1124,9 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.471834, longitude: 13.37905}
+ currentTripPosition: {type: 'location', latitude: 52.471834, longitude: 13.37905},
},
{
tripId: '1|53738|10|86|28102021',
@@ -1154,7 +1154,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -1163,9 +1163,9 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.480652, longitude: 13.45785}
+ currentTripPosition: {type: 'location', latitude: 52.480652, longitude: 13.45785},
},
{
tripId: '1|53738|11|86|28102021',
@@ -1193,7 +1193,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -1202,9 +1202,9 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
- currentTripPosition: {type: 'location', latitude: 52.477227, longitude: 13.457068}
+ currentTripPosition: {type: 'location', latitude: 52.477227, longitude: 13.457068},
},
{
tripId: '1|53738|12|86|28102021',
@@ -1232,7 +1232,7 @@ const bvgArrivals = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
@@ -1241,7 +1241,7 @@ const bvgArrivals = [
fehlerImITSysem,
bauzeitverlängerung,
achtungFalscheFahrplanauskünfte,
- gemeinsamSicherUnterwegs
+ gemeinsamSicherUnterwegs,
],
currentTripPosition: {type: 'location', latitude: 52.473811, longitude: 13.456142},
},
diff --git a/test/fixtures/bvg-journey.js b/test/fixtures/bvg-journey.js
index 3b67ca4fd..981cc2450 100644
--- a/test/fixtures/bvg-journey.js
+++ b/test/fixtures/bvg-journey.js
@@ -7,7 +7,7 @@ const bvgJourney = {
latitude: 52.521769,
longitude: 13.395231,
name: 'Berlin, Bodemuseum',
- poi: true
+ poi: true,
},
destination: {
type: 'stop',
@@ -17,7 +17,7 @@ const bvgJourney = {
type: 'location',
id: '900100007',
latitude: 52.525158,
- longitude: 13.393064
+ longitude: 13.393064,
},
products: {
suburban: true,
@@ -26,8 +26,8 @@ const bvgJourney = {
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-18T14:16:00+02:00',
plannedArrival: '2019-08-18T14:16:00+02:00',
@@ -37,7 +37,7 @@ const bvgJourney = {
departureDelay: null,
public: true,
walking: true,
- distance: 568
+ distance: 568,
}, {
origin: {
type: 'stop',
@@ -47,7 +47,7 @@ const bvgJourney = {
type: 'location',
id: '900100007',
latitude: 52.525158,
- longitude: 13.393064
+ longitude: 13.393064,
},
products: {
suburban: true,
@@ -56,8 +56,8 @@ const bvgJourney = {
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -67,7 +67,7 @@ const bvgJourney = {
type: 'location',
id: '900058101',
latitude: 52.475465,
- longitude: 13.365575
+ longitude: 13.365575,
},
products: {
suburban: true,
@@ -76,8 +76,8 @@ const bvgJourney = {
bus: true,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2019-08-18T14:29:00+02:00',
plannedArrival: '2019-08-18T14:29:00+02:00',
@@ -101,7 +101,7 @@ const bvgJourney = {
type: 'location',
id: '900100007',
latitude: 52.525158,
- longitude: 13.393064
+ longitude: 13.393064,
},
products: {
suburban: true,
@@ -110,16 +110,16 @@ const bvgJourney = {
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
geometry: {
type: 'Point',
coordinates: [
13.39306,
- 52.52516
- ]
- }
+ 52.52516,
+ ],
+ },
},
{
type: 'Feature',
@@ -128,9 +128,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.39176,
- 52.52284
- ]
- }
+ 52.52284,
+ ],
+ },
},
{
type: 'Feature',
@@ -139,9 +139,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.39023,
- 52.52216
- ]
- }
+ 52.52216,
+ ],
+ },
},
{
type: 'Feature',
@@ -150,9 +150,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38866,
- 52.52195
- ]
- }
+ 52.52195,
+ ],
+ },
},
{
type: 'Feature',
@@ -161,9 +161,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38798,
- 52.52174
- ]
- }
+ 52.52174,
+ ],
+ },
},
{
type: 'Feature',
@@ -172,9 +172,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38744,
- 52.52141
- ]
- }
+ 52.52141,
+ ],
+ },
},
{
type: 'Feature',
@@ -183,9 +183,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38651,
- 52.5206
- ]
- }
+ 52.5206,
+ ],
+ },
},
{
type: 'Feature',
@@ -197,7 +197,7 @@ const bvgJourney = {
type: 'location',
id: '900100001',
latitude: 52.520268,
- longitude: 13.387149
+ longitude: 13.387149,
},
products: {
suburban: true,
@@ -206,16 +206,16 @@ const bvgJourney = {
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
geometry: {
type: 'Point',
coordinates: [
13.38715,
- 52.52027
- ]
- }
+ 52.52027,
+ ],
+ },
},
{
type: 'Feature',
@@ -224,9 +224,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38635,
- 52.52049
- ]
- }
+ 52.52049,
+ ],
+ },
},
{
type: 'Feature',
@@ -235,9 +235,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38537,
- 52.51974
- ]
- }
+ 52.51974,
+ ],
+ },
},
{
type: 'Feature',
@@ -246,9 +246,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38567,
- 52.51785
- ]
- }
+ 52.51785,
+ ],
+ },
},
{
type: 'Feature',
@@ -257,9 +257,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.3855,
- 52.51745
- ]
- }
+ 52.51745,
+ ],
+ },
},
{
type: 'Feature',
@@ -268,9 +268,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38497,
- 52.51691
- ]
- }
+ 52.51691,
+ ],
+ },
},
{
type: 'Feature',
@@ -279,9 +279,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38444,
- 52.51665
- ]
- }
+ 52.51665,
+ ],
+ },
},
{
type: 'Feature',
@@ -290,9 +290,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38399,
- 52.51657
- ]
- }
+ 52.51657,
+ ],
+ },
},
{
type: 'Feature',
@@ -304,7 +304,7 @@ const bvgJourney = {
type: 'location',
id: '900100025',
latitude: 52.51651,
- longitude: 13.381936
+ longitude: 13.381936,
},
products: {
suburban: true,
@@ -313,16 +313,16 @@ const bvgJourney = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
geometry: {
type: 'Point',
coordinates: [
13.38194,
- 52.51651
- ]
- }
+ 52.51651,
+ ],
+ },
},
{
type: 'Feature',
@@ -331,9 +331,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38178,
- 52.51643
- ]
- }
+ 52.51643,
+ ],
+ },
},
{
type: 'Feature',
@@ -342,9 +342,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37888,
- 52.51623
- ]
- }
+ 52.51623,
+ ],
+ },
},
{
type: 'Feature',
@@ -353,9 +353,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37831,
- 52.51609
- ]
- }
+ 52.51609,
+ ],
+ },
},
{
type: 'Feature',
@@ -364,9 +364,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37768,
- 52.51576
- ]
- }
+ 52.51576,
+ ],
+ },
},
{
type: 'Feature',
@@ -375,9 +375,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37714,
- 52.51313
- ]
- }
+ 52.51313,
+ ],
+ },
},
{
type: 'Feature',
@@ -386,9 +386,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37669,
- 52.51024
- ]
- }
+ 52.51024,
+ ],
+ },
},
{
type: 'Feature',
@@ -397,9 +397,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.3767,
- 52.50949
- ]
- }
+ 52.50949,
+ ],
+ },
},
{
type: 'Feature',
@@ -411,7 +411,7 @@ const bvgJourney = {
type: 'location',
id: '900100020',
latitude: 52.509337,
- longitude: 13.376452
+ longitude: 13.376452,
},
products: {
suburban: true,
@@ -420,16 +420,16 @@ const bvgJourney = {
bus: false,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
geometry: {
type: 'Point',
coordinates: [
13.37645,
- 52.50934
- ]
- }
+ 52.50934,
+ ],
+ },
},
{
type: 'Feature',
@@ -438,9 +438,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37686,
- 52.50873
- ]
- }
+ 52.50873,
+ ],
+ },
},
{
type: 'Feature',
@@ -452,7 +452,7 @@ const bvgJourney = {
type: 'location',
id: '900012101',
latitude: 52.504537,
- longitude: 13.38208
+ longitude: 13.38208,
},
products: {
suburban: true,
@@ -461,16 +461,16 @@ const bvgJourney = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
geometry: {
type: 'Point',
coordinates: [
13.38208,
- 52.50454
- ]
- }
+ 52.50454,
+ ],
+ },
},
{
type: 'Feature',
@@ -479,9 +479,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.38181,
- 52.5046
- ]
- }
+ 52.5046,
+ ],
+ },
},
{
type: 'Feature',
@@ -490,9 +490,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37956,
- 52.50099
- ]
- }
+ 52.50099,
+ ],
+ },
},
{
type: 'Feature',
@@ -501,9 +501,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37902,
- 52.50004
- ]
- }
+ 52.50004,
+ ],
+ },
},
{
type: 'Feature',
@@ -512,9 +512,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37814,
- 52.49942
- ]
- }
+ 52.49942,
+ ],
+ },
},
{
type: 'Feature',
@@ -523,9 +523,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37639,
- 52.4987
- ]
- }
+ 52.4987,
+ ],
+ },
},
{
type: 'Feature',
@@ -534,9 +534,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37493,
- 52.49795
- ]
- }
+ 52.49795,
+ ],
+ },
},
{
type: 'Feature',
@@ -545,9 +545,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37338,
- 52.49679
- ]
- }
+ 52.49679,
+ ],
+ },
},
{
type: 'Feature',
@@ -556,9 +556,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37287,
- 52.49597
- ]
- }
+ 52.49597,
+ ],
+ },
},
{
type: 'Feature',
@@ -567,9 +567,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37242,
- 52.49468
- ]
- }
+ 52.49468,
+ ],
+ },
},
{
type: 'Feature',
@@ -581,7 +581,7 @@ const bvgJourney = {
type: 'location',
id: '900058103',
latitude: 52.49232,
- longitude: 13.372227
+ longitude: 13.372227,
},
products: {
suburban: true,
@@ -590,16 +590,16 @@ const bvgJourney = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
geometry: {
type: 'Point',
coordinates: [
13.37223,
- 52.49232
- ]
- }
+ 52.49232,
+ ],
+ },
},
{
type: 'Feature',
@@ -608,9 +608,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37207,
- 52.49233
- ]
- }
+ 52.49233,
+ ],
+ },
},
{
type: 'Feature',
@@ -619,9 +619,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37186,
- 52.48857
- ]
- }
+ 52.48857,
+ ],
+ },
},
{
type: 'Feature',
@@ -630,9 +630,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.37121,
- 52.48667
- ]
- }
+ 52.48667,
+ ],
+ },
},
{
type: 'Feature',
@@ -641,9 +641,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.36503,
- 52.47612
- ]
- }
+ 52.47612,
+ ],
+ },
},
{
type: 'Feature',
@@ -652,9 +652,9 @@ const bvgJourney = {
type: 'Point',
coordinates: [
13.36524,
- 52.476
- ]
- }
+ 52.476,
+ ],
+ },
},
{
type: 'Feature',
@@ -666,7 +666,7 @@ const bvgJourney = {
type: 'location',
id: '900058101',
latitude: 52.475465,
- longitude: 13.365575
+ longitude: 13.365575,
},
products: {
suburban: true,
@@ -675,18 +675,18 @@ const bvgJourney = {
bus: true,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
geometry: {
type: 'Point',
coordinates: [
13.36558,
- 52.47547
- ]
- }
- }
- ]
+ 52.47547,
+ ],
+ },
+ },
+ ],
},
tripId: '1|32794|20|86|18082019',
line: {
@@ -702,7 +702,7 @@ const bvgJourney = {
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
direction: 'S Blankenfelde (TF) Bhf',
@@ -719,7 +719,7 @@ const bvgJourney = {
type: 'location',
id: '900100007',
latitude: 52.525158,
- longitude: 13.393064
+ longitude: 13.393064,
},
products: {
suburban: true,
@@ -728,8 +728,8 @@ const bvgJourney = {
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -753,7 +753,7 @@ const bvgJourney = {
type: 'location',
id: '900100001',
latitude: 52.520268,
- longitude: 13.387149
+ longitude: 13.387149,
},
products: {
suburban: true,
@@ -762,8 +762,8 @@ const bvgJourney = {
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2019-08-18T14:18:00+02:00',
plannedArrival: '2019-08-18T14:18:00+02:00',
@@ -787,7 +787,7 @@ const bvgJourney = {
type: 'location',
id: '900100025',
latitude: 52.51651,
- longitude: 13.381936
+ longitude: 13.381936,
},
products: {
suburban: true,
@@ -796,8 +796,8 @@ const bvgJourney = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-18T14:19:00+02:00',
plannedArrival: '2019-08-18T14:19:00+02:00',
@@ -821,7 +821,7 @@ const bvgJourney = {
type: 'location',
id: '900100020',
latitude: 52.509337,
- longitude: 13.376452
+ longitude: 13.376452,
},
products: {
suburban: true,
@@ -830,8 +830,8 @@ const bvgJourney = {
bus: false,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2019-08-18T14:21:00+02:00',
plannedArrival: '2019-08-18T14:21:00+02:00',
@@ -855,7 +855,7 @@ const bvgJourney = {
type: 'location',
id: '900012101',
latitude: 52.504537,
- longitude: 13.38208
+ longitude: 13.38208,
},
products: {
suburban: true,
@@ -864,8 +864,8 @@ const bvgJourney = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-18T14:24:00+02:00',
plannedArrival: '2019-08-18T14:24:00+02:00',
@@ -889,7 +889,7 @@ const bvgJourney = {
type: 'location',
id: '900058103',
latitude: 52.49232,
- longitude: 13.372227
+ longitude: 13.372227,
},
products: {
suburban: true,
@@ -898,8 +898,8 @@ const bvgJourney = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-18T14:26:00+02:00',
plannedArrival: '2019-08-18T14:26:00+02:00',
@@ -923,7 +923,7 @@ const bvgJourney = {
type: 'location',
id: '900058101',
latitude: 52.475465,
- longitude: 13.365575
+ longitude: 13.365575,
},
products: {
suburban: true,
@@ -932,8 +932,8 @@ const bvgJourney = {
bus: true,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2019-08-18T14:29:00+02:00',
plannedArrival: '2019-08-18T14:29:00+02:00',
@@ -952,23 +952,23 @@ const bvgJourney = {
{
type: 'hint',
code: 'bf',
- text: 'barrier-free'
+ text: 'barrier-free',
},
{
type: 'hint',
code: 'FB',
- text: 'Bicycle conveyance'
- }
+ text: 'Bicycle conveyance',
+ },
],
cycle: {
min: 300,
max: 600,
- nr: 19
- }
+ nr: 19,
+ },
}],
refreshToken: '¶HKI¶G@F$A=4@O=Berlin, Bodemuseum@X=13395231@Y=52521769@L=900980968@a=128@$A=1@O=S Oranienburger Str. (Berlin)@L=900100007@a=128@$201908181406$201908181416$$$1$§T$A=1@O=S Oranienburger Str. (Berlin)@L=900100007@a=128@$A=1@O=S Südkreuz Bhf (Berlin)@L=900058101@a=128@$201908181416$201908181429$ S2$$1$¶GP¶ft@0@2000@120@-1@100@1@1000@0@@@@@false@0@-1@$f@$f@$f@$f@$f@$§bt@0@2000@120@-1@100@1@1000@0@@@@@false@0@-1@$f@$f@$f@$f@$f@$§tf@$f@$f@$f@$f@$f@$§',
cycle: {
- min: 300
+ min: 300,
},
scheduledDays: Object.assign(Object.create(null), {
'2019-08-11': true,
diff --git a/test/fixtures/bvg-radar.js b/test/fixtures/bvg-radar.js
index fbf850fd9..2789ec575 100644
--- a/test/fixtures/bvg-radar.js
+++ b/test/fixtures/bvg-radar.js
@@ -14,7 +14,7 @@ const bvgRadar = [
location: {
type: 'location',
latitude: 52.52211,
- longitude: 13.414728
+ longitude: 13.414728,
},
nextStopovers: [
{
@@ -26,7 +26,7 @@ const bvgRadar = [
type: 'location',
id: '900100002',
latitude: 52.522605,
- longitude: 13.402359
+ longitude: 13.402359,
},
products: {
suburban: true,
@@ -35,8 +35,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -60,7 +60,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -69,8 +69,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:30:00+02:00',
plannedArrival: '2019-08-19T20:29:00+02:00',
@@ -94,7 +94,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -103,8 +103,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:34:00+02:00',
plannedArrival: '2019-08-19T20:31:00+02:00',
@@ -128,7 +128,7 @@ const bvgRadar = [
type: 'location',
id: '900151003',
latitude: 52.57236,
- longitude: 13.495164
+ longitude: 13.495164,
},
products: {
suburban: false,
@@ -137,8 +137,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T21:01:00+02:00',
plannedArrival: '2019-08-19T20:58:00+02:00',
@@ -152,7 +152,7 @@ const bvgRadar = [
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
frames: [
{
@@ -164,7 +164,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -173,8 +173,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -184,7 +184,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -193,10 +193,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 0
+ t: 0,
},
{
origin: {
@@ -207,7 +207,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -216,8 +216,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -227,7 +227,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -236,10 +236,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 10000
+ t: 10000,
},
{
origin: {
@@ -250,7 +250,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -259,8 +259,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -270,7 +270,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -279,10 +279,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 20000
+ t: 20000,
},
{
origin: {
@@ -293,7 +293,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -302,8 +302,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -313,7 +313,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -322,11 +322,11 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 30000
- }
+ t: 30000,
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -338,9 +338,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41473,
- 52.52211
- ]
- }
+ 52.52211,
+ ],
+ },
},
{
type: 'Feature',
@@ -349,9 +349,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.4149,
- 52.52222
- ]
- }
+ 52.52222,
+ ],
+ },
},
{
type: 'Feature',
@@ -360,9 +360,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41507,
- 52.52234
- ]
- }
+ 52.52234,
+ ],
+ },
},
{
type: 'Feature',
@@ -371,12 +371,12 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.4151,
- 52.52236
- ]
- }
- }
- ]
- }
+ 52.52236,
+ ],
+ },
+ },
+ ],
+ },
},
{
direction: 'S Spandau Bhf (Berlin)',
@@ -393,7 +393,7 @@ const bvgRadar = [
location: {
type: 'location',
latitude: 52.521877,
- longitude: 13.410899
+ longitude: 13.410899,
},
nextStopovers: [
{
@@ -405,7 +405,7 @@ const bvgRadar = [
type: 'location',
id: '900260005',
latitude: 52.390796,
- longitude: 13.51352
+ longitude: 13.51352,
},
products: {
suburban: true,
@@ -414,8 +414,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
arrival: null,
plannedArrival: null,
@@ -439,7 +439,7 @@ const bvgRadar = [
type: 'location',
id: '900100003',
latitude: 52.521508,
- longitude: 13.411267
+ longitude: 13.411267,
},
products: {
suburban: true,
@@ -448,8 +448,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2019-08-19T20:32:00+02:00',
plannedArrival: '2019-08-19T20:32:00+02:00',
@@ -473,7 +473,7 @@ const bvgRadar = [
type: 'location',
id: '900100002',
latitude: 52.522605,
- longitude: 13.402359
+ longitude: 13.402359,
},
products: {
suburban: true,
@@ -482,8 +482,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:34:00+02:00',
plannedArrival: '2019-08-19T20:34:00+02:00',
@@ -507,7 +507,7 @@ const bvgRadar = [
type: 'location',
id: '900029101',
latitude: 52.534794,
- longitude: 13.197477
+ longitude: 13.197477,
},
products: {
suburban: true,
@@ -516,8 +516,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2019-08-19T21:07:00+02:00',
plannedArrival: '2019-08-19T21:07:00+02:00',
@@ -531,7 +531,7 @@ const bvgRadar = [
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
frames: [
{
@@ -543,7 +543,7 @@ const bvgRadar = [
type: 'location',
id: '900100003',
latitude: 52.521508,
- longitude: 13.411267
+ longitude: 13.411267,
},
products: {
suburban: true,
@@ -552,8 +552,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
destination: {
type: 'stop',
@@ -563,7 +563,7 @@ const bvgRadar = [
type: 'location',
id: '900100002',
latitude: 52.522605,
- longitude: 13.402359
+ longitude: 13.402359,
},
products: {
suburban: true,
@@ -572,10 +572,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 0
+ t: 0,
},
{
origin: {
@@ -586,7 +586,7 @@ const bvgRadar = [
type: 'location',
id: '900100003',
latitude: 52.521508,
- longitude: 13.411267
+ longitude: 13.411267,
},
products: {
suburban: true,
@@ -595,8 +595,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
destination: {
type: 'stop',
@@ -606,7 +606,7 @@ const bvgRadar = [
type: 'location',
id: '900100002',
latitude: 52.522605,
- longitude: 13.402359
+ longitude: 13.402359,
},
products: {
suburban: true,
@@ -615,10 +615,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 10000
+ t: 10000,
},
{
origin: {
@@ -629,7 +629,7 @@ const bvgRadar = [
type: 'location',
id: '900100003',
latitude: 52.521508,
- longitude: 13.411267
+ longitude: 13.411267,
},
products: {
suburban: true,
@@ -638,8 +638,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
destination: {
type: 'stop',
@@ -649,7 +649,7 @@ const bvgRadar = [
type: 'location',
id: '900100002',
latitude: 52.522605,
- longitude: 13.402359
+ longitude: 13.402359,
},
products: {
suburban: true,
@@ -658,10 +658,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 20000
+ t: 20000,
},
{
origin: {
@@ -672,7 +672,7 @@ const bvgRadar = [
type: 'location',
id: '900100003',
latitude: 52.521508,
- longitude: 13.411267
+ longitude: 13.411267,
},
products: {
suburban: true,
@@ -681,8 +681,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
destination: {
type: 'stop',
@@ -692,7 +692,7 @@ const bvgRadar = [
type: 'location',
id: '900100002',
latitude: 52.522605,
- longitude: 13.402359
+ longitude: 13.402359,
},
products: {
suburban: true,
@@ -701,11 +701,11 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 30000
- }
+ t: 30000,
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -717,9 +717,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.4109,
- 52.52188
- ]
- }
+ 52.52188,
+ ],
+ },
},
{
type: 'Feature',
@@ -728,9 +728,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.40921,
- 52.52268
- ]
- }
+ 52.52268,
+ ],
+ },
},
{
type: 'Feature',
@@ -739,9 +739,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.40738,
- 52.5233
- ]
- }
+ 52.5233,
+ ],
+ },
},
{
type: 'Feature',
@@ -750,12 +750,12 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.40532,
- 52.52338
- ]
- }
- }
- ]
- }
+ 52.52338,
+ ],
+ },
+ },
+ ],
+ },
},
{
direction: 'S+U Hermannstr. (Berlin)',
@@ -772,7 +772,7 @@ const bvgRadar = [
location: {
type: 'location',
latitude: 52.52096,
- longitude: 13.412652
+ longitude: 13.412652,
},
nextStopovers: [
{
@@ -784,7 +784,7 @@ const bvgRadar = [
type: 'location',
id: '900085104',
latitude: 52.574536,
- longitude: 13.347534
+ longitude: 13.347534,
},
products: {
suburban: false,
@@ -793,8 +793,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -818,7 +818,7 @@ const bvgRadar = [
type: 'location',
id: '900100705',
latitude: 52.521616,
- longitude: 13.412121
+ longitude: 13.412121,
},
products: {
suburban: false,
@@ -827,8 +827,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:33:00+02:00',
plannedArrival: '2019-08-19T20:33:00+02:00',
@@ -852,7 +852,7 @@ const bvgRadar = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -861,8 +861,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:35:00+02:00',
plannedArrival: '2019-08-19T20:35:00+02:00',
@@ -886,7 +886,7 @@ const bvgRadar = [
type: 'location',
id: '900079221',
latitude: 52.467177,
- longitude: 13.4317
+ longitude: 13.4317,
},
products: {
suburban: true,
@@ -895,8 +895,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:47:00+02:00',
plannedArrival: '2019-08-19T20:47:00+02:00',
@@ -910,7 +910,7 @@ const bvgRadar = [
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
frames: [
{
@@ -922,7 +922,7 @@ const bvgRadar = [
type: 'location',
id: '900100705',
latitude: 52.521616,
- longitude: 13.412121
+ longitude: 13.412121,
},
products: {
suburban: false,
@@ -931,8 +931,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -942,7 +942,7 @@ const bvgRadar = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -951,10 +951,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 0
+ t: 0,
},
{
origin: {
@@ -965,7 +965,7 @@ const bvgRadar = [
type: 'location',
id: '900100705',
latitude: 52.521616,
- longitude: 13.412121
+ longitude: 13.412121,
},
products: {
suburban: false,
@@ -974,8 +974,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -985,7 +985,7 @@ const bvgRadar = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -994,10 +994,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 10000
+ t: 10000,
},
{
origin: {
@@ -1008,7 +1008,7 @@ const bvgRadar = [
type: 'location',
id: '900100705',
latitude: 52.521616,
- longitude: 13.412121
+ longitude: 13.412121,
},
products: {
suburban: false,
@@ -1017,8 +1017,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1028,7 +1028,7 @@ const bvgRadar = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -1037,10 +1037,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 20000
+ t: 20000,
},
{
origin: {
@@ -1051,7 +1051,7 @@ const bvgRadar = [
type: 'location',
id: '900100705',
latitude: 52.521616,
- longitude: 13.412121
+ longitude: 13.412121,
},
products: {
suburban: false,
@@ -1060,8 +1060,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1071,7 +1071,7 @@ const bvgRadar = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -1080,11 +1080,11 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 30000
- }
+ t: 30000,
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -1096,9 +1096,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41265,
- 52.52096
- ]
- }
+ 52.52096,
+ ],
+ },
},
{
type: 'Feature',
@@ -1107,9 +1107,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41286,
- 52.5208
- ]
- }
+ 52.5208,
+ ],
+ },
},
{
type: 'Feature',
@@ -1118,9 +1118,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41352,
- 52.52026
- ]
- }
+ 52.52026,
+ ],
+ },
},
{
type: 'Feature',
@@ -1129,12 +1129,12 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41423,
- 52.51976
- ]
- }
- }
- ]
- }
+ 52.51976,
+ ],
+ },
+ },
+ ],
+ },
},
{
direction: 'S+U Alexanderplatz',
@@ -1151,7 +1151,7 @@ const bvgRadar = [
location: {
type: 'location',
latitude: 52.522182,
- longitude: 13.415394
+ longitude: 13.415394,
},
nextStopovers: [
{
@@ -1163,7 +1163,7 @@ const bvgRadar = [
type: 'location',
id: '900175004',
latitude: 52.521436,
- longitude: 13.588759
+ longitude: 13.588759,
},
products: {
suburban: false,
@@ -1172,8 +1172,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -1197,7 +1197,7 @@ const bvgRadar = [
type: 'location',
id: '900100017',
latitude: 52.520313,
- longitude: 13.421893
+ longitude: 13.421893,
},
products: {
suburban: false,
@@ -1206,8 +1206,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:31:00+02:00',
plannedArrival: '2019-08-19T20:32:00+02:00',
@@ -1231,7 +1231,7 @@ const bvgRadar = [
type: 'location',
id: '900100704',
latitude: 52.521607,
- longitude: 13.41311
+ longitude: 13.41311,
},
products: {
suburban: false,
@@ -1240,8 +1240,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:34:00+02:00',
plannedArrival: '2019-08-19T20:34:00+02:00',
@@ -1265,7 +1265,7 @@ const bvgRadar = [
type: 'location',
id: '900100704',
latitude: 52.521607,
- longitude: 13.41311
+ longitude: 13.41311,
},
products: {
suburban: false,
@@ -1274,8 +1274,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:34:00+02:00',
plannedArrival: '2019-08-19T20:34:00+02:00',
@@ -1289,7 +1289,7 @@ const bvgRadar = [
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
frames: [
{
@@ -1301,7 +1301,7 @@ const bvgRadar = [
type: 'location',
id: '900100017',
latitude: 52.520313,
- longitude: 13.421893
+ longitude: 13.421893,
},
products: {
suburban: false,
@@ -1310,8 +1310,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1321,7 +1321,7 @@ const bvgRadar = [
type: 'location',
id: '900100704',
latitude: 52.521607,
- longitude: 13.41311
+ longitude: 13.41311,
},
products: {
suburban: false,
@@ -1330,10 +1330,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 0
+ t: 0,
},
{
origin: {
@@ -1344,7 +1344,7 @@ const bvgRadar = [
type: 'location',
id: '900100017',
latitude: 52.520313,
- longitude: 13.421893
+ longitude: 13.421893,
},
products: {
suburban: false,
@@ -1353,8 +1353,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1364,7 +1364,7 @@ const bvgRadar = [
type: 'location',
id: '900100704',
latitude: 52.521607,
- longitude: 13.41311
+ longitude: 13.41311,
},
products: {
suburban: false,
@@ -1373,10 +1373,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 10000
+ t: 10000,
},
{
origin: {
@@ -1387,7 +1387,7 @@ const bvgRadar = [
type: 'location',
id: '900100017',
latitude: 52.520313,
- longitude: 13.421893
+ longitude: 13.421893,
},
products: {
suburban: false,
@@ -1396,8 +1396,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1407,7 +1407,7 @@ const bvgRadar = [
type: 'location',
id: '900100704',
latitude: 52.521607,
- longitude: 13.41311
+ longitude: 13.41311,
},
products: {
suburban: false,
@@ -1416,10 +1416,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 20000
+ t: 20000,
},
{
origin: {
@@ -1430,7 +1430,7 @@ const bvgRadar = [
type: 'location',
id: '900100017',
latitude: 52.520313,
- longitude: 13.421893
+ longitude: 13.421893,
},
products: {
suburban: false,
@@ -1439,8 +1439,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1450,7 +1450,7 @@ const bvgRadar = [
type: 'location',
id: '900100704',
latitude: 52.521607,
- longitude: 13.41311
+ longitude: 13.41311,
},
products: {
suburban: false,
@@ -1459,11 +1459,11 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 30000
- }
+ t: 30000,
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -1475,9 +1475,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41539,
- 52.52218
- ]
- }
+ 52.52218,
+ ],
+ },
},
{
type: 'Feature',
@@ -1486,9 +1486,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41487,
- 52.52201
- ]
- }
+ 52.52201,
+ ],
+ },
},
{
type: 'Feature',
@@ -1497,9 +1497,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41439,
- 52.5218
- ]
- }
+ 52.5218,
+ ],
+ },
},
{
type: 'Feature',
@@ -1508,12 +1508,12 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41389,
- 52.52159
- ]
- }
- }
- ]
- }
+ 52.52159,
+ ],
+ },
+ },
+ ],
+ },
},
{
direction: 'S+U Pankow (Berlin)',
@@ -1530,7 +1530,7 @@ const bvgRadar = [
location: {
type: 'location',
latitude: 52.520043,
- longitude: 13.413506
+ longitude: 13.413506,
},
nextStopovers: [
{
@@ -1542,7 +1542,7 @@ const bvgRadar = [
type: 'location',
id: '900026201',
latitude: 52.509795,
- longitude: 13.272977
+ longitude: 13.272977,
},
products: {
suburban: false,
@@ -1551,8 +1551,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -1576,7 +1576,7 @@ const bvgRadar = [
type: 'location',
id: '900100015',
latitude: 52.517229,
- longitude: 13.412454
+ longitude: 13.412454,
},
products: {
suburban: false,
@@ -1585,8 +1585,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:32:00+02:00',
plannedArrival: '2019-08-19T20:31:00+02:00',
@@ -1610,7 +1610,7 @@ const bvgRadar = [
type: 'location',
id: '900100703',
latitude: 52.522075,
- longitude: 13.413596
+ longitude: 13.413596,
},
products: {
suburban: false,
@@ -1619,8 +1619,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:34:00+02:00',
plannedArrival: '2019-08-19T20:33:00+02:00',
@@ -1644,7 +1644,7 @@ const bvgRadar = [
type: 'location',
id: '900130002',
latitude: 52.567281,
- longitude: 13.412283
+ longitude: 13.412283,
},
products: {
suburban: true,
@@ -1653,8 +1653,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:46:00+02:00',
plannedArrival: '2019-08-19T20:45:00+02:00',
@@ -1668,7 +1668,7 @@ const bvgRadar = [
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
frames: [
{
@@ -1680,7 +1680,7 @@ const bvgRadar = [
type: 'location',
id: '900100015',
latitude: 52.517229,
- longitude: 13.412454
+ longitude: 13.412454,
},
products: {
suburban: false,
@@ -1689,8 +1689,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1700,7 +1700,7 @@ const bvgRadar = [
type: 'location',
id: '900100703',
latitude: 52.522075,
- longitude: 13.413596
+ longitude: 13.413596,
},
products: {
suburban: false,
@@ -1709,10 +1709,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 0
+ t: 0,
},
{
origin: {
@@ -1723,7 +1723,7 @@ const bvgRadar = [
type: 'location',
id: '900100015',
latitude: 52.517229,
- longitude: 13.412454
+ longitude: 13.412454,
},
products: {
suburban: false,
@@ -1732,8 +1732,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1743,7 +1743,7 @@ const bvgRadar = [
type: 'location',
id: '900100703',
latitude: 52.522075,
- longitude: 13.413596
+ longitude: 13.413596,
},
products: {
suburban: false,
@@ -1752,10 +1752,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 10000
+ t: 10000,
},
{
origin: {
@@ -1766,7 +1766,7 @@ const bvgRadar = [
type: 'location',
id: '900100015',
latitude: 52.517229,
- longitude: 13.412454
+ longitude: 13.412454,
},
products: {
suburban: false,
@@ -1775,8 +1775,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1786,7 +1786,7 @@ const bvgRadar = [
type: 'location',
id: '900100703',
latitude: 52.522075,
- longitude: 13.413596
+ longitude: 13.413596,
},
products: {
suburban: false,
@@ -1795,10 +1795,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 20000
+ t: 20000,
},
{
origin: {
@@ -1809,7 +1809,7 @@ const bvgRadar = [
type: 'location',
id: '900100015',
latitude: 52.517229,
- longitude: 13.412454
+ longitude: 13.412454,
},
products: {
suburban: false,
@@ -1818,8 +1818,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -1829,7 +1829,7 @@ const bvgRadar = [
type: 'location',
id: '900100703',
latitude: 52.522075,
- longitude: 13.413596
+ longitude: 13.413596,
},
products: {
suburban: false,
@@ -1838,11 +1838,11 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 30000
- }
+ t: 30000,
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -1854,9 +1854,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41351,
- 52.52005
- ]
- }
+ 52.52005,
+ ],
+ },
},
{
type: 'Feature',
@@ -1865,9 +1865,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41429,
- 52.52035
- ]
- }
+ 52.52035,
+ ],
+ },
},
{
type: 'Feature',
@@ -1876,9 +1876,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41473,
- 52.52084
- ]
- }
+ 52.52084,
+ ],
+ },
},
{
type: 'Feature',
@@ -1887,12 +1887,12 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41453,
- 52.52139
- ]
- }
- }
- ]
- }
+ 52.52139,
+ ],
+ },
+ },
+ ],
+ },
},
{
direction: 'Hellersdorf, Riesaer Str.',
@@ -1909,7 +1909,7 @@ const bvgRadar = [
location: {
type: 'location',
latitude: 52.522353,
- longitude: 13.415097
+ longitude: 13.415097,
},
nextStopovers: [
{
@@ -1921,7 +1921,7 @@ const bvgRadar = [
type: 'location',
id: '900100002',
latitude: 52.522605,
- longitude: 13.402359
+ longitude: 13.402359,
},
products: {
suburban: true,
@@ -1930,8 +1930,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -1955,7 +1955,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -1964,8 +1964,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:33:00+02:00',
plannedArrival: '2019-08-19T20:30:00+02:00',
@@ -1989,7 +1989,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -1998,8 +1998,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:36:00+02:00',
plannedArrival: '2019-08-19T20:33:00+02:00',
@@ -2023,7 +2023,7 @@ const bvgRadar = [
type: 'location',
id: '900175013',
latitude: 52.529401,
- longitude: 13.624186
+ longitude: 13.624186,
},
products: {
suburban: false,
@@ -2032,8 +2032,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T21:22:00+02:00',
plannedArrival: '2019-08-19T21:19:00+02:00',
@@ -2047,7 +2047,7 @@ const bvgRadar = [
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
frames: [
{
@@ -2059,7 +2059,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2068,8 +2068,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2079,7 +2079,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2088,10 +2088,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 0
+ t: 0,
},
{
origin: {
@@ -2102,7 +2102,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2111,8 +2111,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2122,7 +2122,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2131,10 +2131,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 10000
+ t: 10000,
},
{
origin: {
@@ -2145,7 +2145,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2154,8 +2154,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2165,7 +2165,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2174,10 +2174,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 20000
+ t: 20000,
},
{
origin: {
@@ -2188,7 +2188,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2197,8 +2197,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2208,7 +2208,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2217,11 +2217,11 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 30000
- }
+ t: 30000,
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -2233,9 +2233,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.4151,
- 52.52236
- ]
- }
+ 52.52236,
+ ],
+ },
},
{
type: 'Feature',
@@ -2244,9 +2244,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41513,
- 52.52238
- ]
- }
+ 52.52238,
+ ],
+ },
},
{
type: 'Feature',
@@ -2255,9 +2255,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41541,
- 52.52263
- ]
- }
+ 52.52263,
+ ],
+ },
},
{
type: 'Feature',
@@ -2266,12 +2266,12 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41569,
- 52.52286
- ]
- }
- }
- ]
- }
+ 52.52286,
+ ],
+ },
+ },
+ ],
+ },
},
{
direction: 'S Hackescher Markt',
@@ -2288,7 +2288,7 @@ const bvgRadar = [
location: {
type: 'location',
latitude: 52.521283,
- longitude: 13.411034
+ longitude: 13.411034,
},
nextStopovers: [
{
@@ -2300,7 +2300,7 @@ const bvgRadar = [
type: 'location',
id: '900175013',
latitude: 52.529401,
- longitude: 13.624186
+ longitude: 13.624186,
},
products: {
suburban: false,
@@ -2309,8 +2309,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -2334,7 +2334,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -2343,8 +2343,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:33:00+02:00',
plannedArrival: '2019-08-19T20:30:00+02:00',
@@ -2368,7 +2368,7 @@ const bvgRadar = [
type: 'location',
id: '900100515',
latitude: 52.520025,
- longitude: 13.404822
+ longitude: 13.404822,
},
products: {
suburban: false,
@@ -2377,8 +2377,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:35:00+02:00',
plannedArrival: '2019-08-19T20:32:00+02:00',
@@ -2402,7 +2402,7 @@ const bvgRadar = [
type: 'location',
id: '900100002',
latitude: 52.522605,
- longitude: 13.402359
+ longitude: 13.402359,
},
products: {
suburban: true,
@@ -2411,8 +2411,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:36:00+02:00',
plannedArrival: '2019-08-19T20:33:00+02:00',
@@ -2426,7 +2426,7 @@ const bvgRadar = [
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
frames: [
{
@@ -2438,7 +2438,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -2447,8 +2447,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2458,7 +2458,7 @@ const bvgRadar = [
type: 'location',
id: '900100515',
latitude: 52.520025,
- longitude: 13.404822
+ longitude: 13.404822,
},
products: {
suburban: false,
@@ -2467,10 +2467,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 0
+ t: 0,
},
{
origin: {
@@ -2481,7 +2481,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -2490,8 +2490,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2501,7 +2501,7 @@ const bvgRadar = [
type: 'location',
id: '900100515',
latitude: 52.520025,
- longitude: 13.404822
+ longitude: 13.404822,
},
products: {
suburban: false,
@@ -2510,10 +2510,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 10000
+ t: 10000,
},
{
origin: {
@@ -2524,7 +2524,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -2533,8 +2533,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2544,7 +2544,7 @@ const bvgRadar = [
type: 'location',
id: '900100515',
latitude: 52.520025,
- longitude: 13.404822
+ longitude: 13.404822,
},
products: {
suburban: false,
@@ -2553,10 +2553,10 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 20000
+ t: 20000,
},
{
origin: {
@@ -2567,7 +2567,7 @@ const bvgRadar = [
type: 'location',
id: '900100026',
latitude: 52.521059,
- longitude: 13.41125
+ longitude: 13.41125,
},
products: {
suburban: false,
@@ -2576,8 +2576,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2587,7 +2587,7 @@ const bvgRadar = [
type: 'location',
id: '900100515',
latitude: 52.520025,
- longitude: 13.404822
+ longitude: 13.404822,
},
products: {
suburban: false,
@@ -2596,11 +2596,11 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 30000
- }
+ t: 30000,
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -2612,9 +2612,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41103,
- 52.52129
- ]
- }
+ 52.52129,
+ ],
+ },
},
{
type: 'Feature',
@@ -2623,9 +2623,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41057,
- 52.52157
- ]
- }
+ 52.52157,
+ ],
+ },
},
{
type: 'Feature',
@@ -2634,9 +2634,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41001,
- 52.52191
- ]
- }
+ 52.52191,
+ ],
+ },
},
{
type: 'Feature',
@@ -2645,12 +2645,12 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.40943,
- 52.52221
- ]
- }
- }
- ]
- }
+ 52.52221,
+ ],
+ },
+ },
+ ],
+ },
},
{
direction: 'S+U Hauptbahnhof',
@@ -2667,7 +2667,7 @@ const bvgRadar = [
location: {
type: 'location',
latitude: 52.52389,
- longitude: 13.416814
+ longitude: 13.416814,
},
nextStopovers: [
{
@@ -2679,7 +2679,7 @@ const bvgRadar = [
type: 'location',
id: '900151003',
latitude: 52.57236,
- longitude: 13.495164
+ longitude: 13.495164,
},
products: {
suburban: false,
@@ -2688,8 +2688,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -2713,7 +2713,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2722,8 +2722,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:32:00+02:00',
plannedArrival: '2019-08-19T20:30:00+02:00',
@@ -2747,7 +2747,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2756,8 +2756,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:34:00+02:00',
plannedArrival: '2019-08-19T20:33:00+02:00',
@@ -2781,7 +2781,7 @@ const bvgRadar = [
type: 'location',
id: '900003259',
latitude: 52.523315,
- longitude: 13.36207
+ longitude: 13.36207,
},
products: {
suburban: false,
@@ -2790,8 +2790,8 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2019-08-19T20:55:00+02:00',
plannedArrival: '2019-08-19T20:54:00+02:00',
@@ -2805,7 +2805,7 @@ const bvgRadar = [
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
frames: [
{
@@ -2817,7 +2817,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2826,8 +2826,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2837,7 +2837,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2846,10 +2846,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 0
+ t: 0,
},
{
origin: {
@@ -2860,7 +2860,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2869,8 +2869,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2880,7 +2880,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2889,10 +2889,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 10000
+ t: 10000,
},
{
origin: {
@@ -2903,7 +2903,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2912,8 +2912,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2923,7 +2923,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2932,10 +2932,10 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 20000
+ t: 20000,
},
{
origin: {
@@ -2946,7 +2946,7 @@ const bvgRadar = [
type: 'location',
id: '900100040',
latitude: 52.525185,
- longitude: 13.419942
+ longitude: 13.419942,
},
products: {
suburban: false,
@@ -2955,8 +2955,8 @@ const bvgRadar = [
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
destination: {
type: 'stop',
@@ -2966,7 +2966,7 @@ const bvgRadar = [
type: 'location',
id: '900100005',
latitude: 52.522389,
- longitude: 13.414495
+ longitude: 13.414495,
},
products: {
suburban: false,
@@ -2975,11 +2975,11 @@ const bvgRadar = [
bus: false,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- t: 30000
- }
+ t: 30000,
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -2991,9 +2991,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41681,
- 52.52389
- ]
- }
+ 52.52389,
+ ],
+ },
},
{
type: 'Feature',
@@ -3002,9 +3002,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41628,
- 52.52345
- ]
- }
+ 52.52345,
+ ],
+ },
},
{
type: 'Feature',
@@ -3013,9 +3013,9 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41574,
- 52.52301
- ]
- }
+ 52.52301,
+ ],
+ },
},
{
type: 'Feature',
@@ -3024,13 +3024,13 @@ const bvgRadar = [
type: 'Point',
coordinates: [
13.41521,
- 52.52257
- ]
- }
- }
- ]
- }
- }
+ 52.52257,
+ ],
+ },
+ },
+ ],
+ },
+ },
]
export {
diff --git a/test/fixtures/bvg-trip-with-occupancy.js b/test/fixtures/bvg-trip-with-occupancy.js
index 9a833d4c9..1a6634596 100644
--- a/test/fixtures/bvg-trip-with-occupancy.js
+++ b/test/fixtures/bvg-trip-with-occupancy.js
@@ -14,26 +14,26 @@ const bvgTripWithOccupancy = {
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
- { type: 'hint', code: 'bf', text: 'barrier-free' },
+ {type: 'hint', code: 'bf', text: 'barrier-free'},
{
type: 'hint',
code: 'text.journeystop.product.or.direction.changes.journey.message',
- text: 'From S+U Wedding (Berlin) as 147 heading towards S Ostbahnhof via S+U Hauptbahnhof'
+ text: 'From S+U Wedding (Berlin) as 147 heading towards S Ostbahnhof via S+U Hauptbahnhof',
},
{
type: 'hint',
code: 'text.journeystop.product.or.direction.changes.journey.message',
- text: 'From S+U Berlin Hauptbahnhof as 147 heading towards S Ostbahnhof via Friedrichstr.'
+ text: 'From S+U Berlin Hauptbahnhof as 147 heading towards S Ostbahnhof via Friedrichstr.',
},
{
type: 'hint',
code: 'text.journeystop.product.or.direction.changes.journey.message',
- text: 'From S+U Friedrichstr. Bhf (Berlin) as 147 heading towards S Ostbahnhof'
- }
+ text: 'From S+U Friedrichstr. Bhf (Berlin) as 147 heading towards S Ostbahnhof',
+ },
],
occupancy: 'medium',
@@ -104,7 +104,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900009102',
latitude: 52.546489,
- longitude: 13.359391
+ longitude: 13.359391,
},
products: {
suburban: false,
@@ -113,8 +113,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
departure: '2021-11-01T07:18:00+01:00',
plannedDeparture: '2021-11-01T07:18:00+01:00',
@@ -131,7 +131,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900120005',
latitude: 52.510335,
- longitude: 13.435089
+ longitude: 13.435089,
},
products: {
suburban: true,
@@ -140,8 +140,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2021-11-01T07:59:00+01:00',
plannedArrival: '2021-11-01T07:59:00+01:00',
@@ -163,7 +163,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900009102',
latitude: 52.546489,
- longitude: 13.359391
+ longitude: 13.359391,
},
products: {
suburban: false,
@@ -172,10 +172,10 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.35954, 52.54606 ] }
+ geometry: {type: 'Point', coordinates: [13.35954, 52.54606]},
},
{
type: 'Feature',
@@ -187,7 +187,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900009151',
latitude: 52.544476,
- longitude: 13.362663
+ longitude: 13.362663,
},
products: {
suburban: false,
@@ -196,10 +196,10 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.36199, 52.54468 ] }
+ geometry: {type: 'Point', coordinates: [13.36199, 52.54468]},
},
{
type: 'Feature',
@@ -211,7 +211,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900009104',
latitude: 52.542732,
- longitude: 13.366061
+ longitude: 13.366061,
},
products: {
suburban: true,
@@ -220,20 +220,20 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.36525, 52.54283 ] }
+ geometry: {type: 'Point', coordinates: [13.36525, 52.54283]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36811, 52.54121 ] }
+ geometry: {type: 'Point', coordinates: [13.36811, 52.54121]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36814, 52.54108 ] }
+ geometry: {type: 'Point', coordinates: [13.36814, 52.54108]},
},
{
type: 'Feature',
@@ -245,7 +245,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900008104',
latitude: 52.541195,
- longitude: 13.368713
+ longitude: 13.368713,
},
products: {
suburban: false,
@@ -254,10 +254,10 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.36785, 52.54092 ] }
+ geometry: {type: 'Point', coordinates: [13.36785, 52.54092]},
},
{
type: 'Feature',
@@ -269,7 +269,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900001202',
latitude: 52.538848,
- longitude: 13.363607
+ longitude: 13.363607,
},
products: {
suburban: false,
@@ -278,35 +278,35 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.36308, 52.53868 ] }
+ geometry: {type: 'Point', coordinates: [13.36308, 52.53868]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36057, 52.53751 ] }
+ geometry: {type: 'Point', coordinates: [13.36057, 52.53751]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36036, 52.53723 ] }
+ geometry: {type: 'Point', coordinates: [13.36036, 52.53723]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36077, 52.53685 ] }
+ geometry: {type: 'Point', coordinates: [13.36077, 52.53685]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36246, 52.5361 ] }
+ geometry: {type: 'Point', coordinates: [13.36246, 52.5361]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36311, 52.53556 ] }
+ geometry: {type: 'Point', coordinates: [13.36311, 52.53556]},
},
{
type: 'Feature',
@@ -318,7 +318,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900001252',
latitude: 52.536736,
- longitude: 13.361216
+ longitude: 13.361216,
},
products: {
suburban: false,
@@ -327,15 +327,15 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.36167, 52.53653 ] }
+ geometry: {type: 'Point', coordinates: [13.36167, 52.53653]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36539, 52.53325 ] }
+ geometry: {type: 'Point', coordinates: [13.36539, 52.53325]},
},
{
type: 'Feature',
@@ -347,7 +347,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900001206',
latitude: 52.53332,
- longitude: 13.365512
+ longitude: 13.365512,
},
products: {
suburban: false,
@@ -356,15 +356,15 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.36544, 52.53332 ] }
+ geometry: {type: 'Point', coordinates: [13.36544, 52.53332]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36603, 52.5326 ] }
+ geometry: {type: 'Point', coordinates: [13.36603, 52.5326]},
},
{
type: 'Feature',
@@ -376,7 +376,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900001203',
latitude: 52.530668,
- longitude: 13.36811
+ longitude: 13.36811,
},
products: {
suburban: false,
@@ -385,55 +385,55 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.36783, 52.5309 ] }
+ geometry: {type: 'Point', coordinates: [13.36783, 52.5309]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36882, 52.52984 ] }
+ geometry: {type: 'Point', coordinates: [13.36882, 52.52984]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36937, 52.52903 ] }
+ geometry: {type: 'Point', coordinates: [13.36937, 52.52903]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36932, 52.5289 ] }
+ geometry: {type: 'Point', coordinates: [13.36932, 52.5289]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36834, 52.52845 ] }
+ geometry: {type: 'Point', coordinates: [13.36834, 52.52845]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36768, 52.52788 ] }
+ geometry: {type: 'Point', coordinates: [13.36768, 52.52788]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36751, 52.5275 ] }
+ geometry: {type: 'Point', coordinates: [13.36751, 52.5275]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.3674, 52.52633 ] }
+ geometry: {type: 'Point', coordinates: [13.3674, 52.52633]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36762, 52.52592 ] }
+ geometry: {type: 'Point', coordinates: [13.36762, 52.52592]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.36782, 52.52587 ] }
+ geometry: {type: 'Point', coordinates: [13.36782, 52.52587]},
},
{
type: 'Feature',
@@ -445,7 +445,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900003201',
latitude: 52.525607,
- longitude: 13.369072
+ longitude: 13.369072,
},
products: {
suburban: true,
@@ -454,20 +454,20 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.36915, 52.52623 ] }
+ geometry: {type: 'Point', coordinates: [13.36915, 52.52623]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.37048, 52.52664 ] }
+ geometry: {type: 'Point', coordinates: [13.37048, 52.52664]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.3711, 52.52694 ] }
+ geometry: {type: 'Point', coordinates: [13.3711, 52.52694]},
},
{
type: 'Feature',
@@ -479,7 +479,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100503',
latitude: 52.528762,
- longitude: 13.376929
+ longitude: 13.376929,
},
products: {
suburban: false,
@@ -488,20 +488,20 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.37714, 52.52876 ] }
+ geometry: {type: 'Point', coordinates: [13.37714, 52.52876]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.37833, 52.52912 ] }
+ geometry: {type: 'Point', coordinates: [13.37833, 52.52912]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.3785, 52.52905 ] }
+ geometry: {type: 'Point', coordinates: [13.3785, 52.52905]},
},
{
type: 'Feature',
@@ -513,7 +513,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100542',
latitude: 52.52576,
- longitude: 13.379086
+ longitude: 13.379086,
},
products: {
suburban: false,
@@ -522,10 +522,10 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.37905, 52.52581 ] }
+ geometry: {type: 'Point', coordinates: [13.37905, 52.52581]},
},
{
type: 'Feature',
@@ -537,7 +537,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100033',
latitude: 52.524052,
- longitude: 13.379392
+ longitude: 13.379392,
},
products: {
suburban: false,
@@ -546,15 +546,15 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.37942, 52.52361 ] }
+ geometry: {type: 'Point', coordinates: [13.37942, 52.52361]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.37965, 52.52258 ] }
+ geometry: {type: 'Point', coordinates: [13.37965, 52.52258]},
},
{
type: 'Feature',
@@ -566,7 +566,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100509',
latitude: 52.523126,
- longitude: 13.383266
+ longitude: 13.383266,
},
products: {
suburban: false,
@@ -575,10 +575,10 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.38345, 52.52317 ] }
+ geometry: {type: 'Point', coordinates: [13.38345, 52.52317]},
},
{
type: 'Feature',
@@ -590,7 +590,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100047',
latitude: 52.523711,
- longitude: 13.386835
+ longitude: 13.386835,
},
products: {
suburban: false,
@@ -599,20 +599,20 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.3867, 52.5237 ] }
+ geometry: {type: 'Point', coordinates: [13.3867, 52.5237]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.38745, 52.52382 ] }
+ geometry: {type: 'Point', coordinates: [13.38745, 52.52382]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.38761, 52.52376 ] }
+ geometry: {type: 'Point', coordinates: [13.38761, 52.52376]},
},
{
type: 'Feature',
@@ -624,7 +624,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100001',
latitude: 52.520519,
- longitude: 13.386448
+ longitude: 13.386448,
},
products: {
suburban: true,
@@ -633,15 +633,15 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.38818, 52.52058 ] }
+ geometry: {type: 'Point', coordinates: [13.38818, 52.52058]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.38833, 52.51913 ] }
+ geometry: {type: 'Point', coordinates: [13.38833, 52.51913]},
},
{
type: 'Feature',
@@ -653,7 +653,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100513',
latitude: 52.516996,
- longitude: 13.388875
+ longitude: 13.388875,
},
products: {
suburban: false,
@@ -662,20 +662,20 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.38889, 52.51663 ] }
+ geometry: {type: 'Point', coordinates: [13.38889, 52.51663]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.38872, 52.51723 ] }
+ geometry: {type: 'Point', coordinates: [13.38872, 52.51723]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.38914, 52.51479 ] }
+ geometry: {type: 'Point', coordinates: [13.38914, 52.51479]},
},
{
type: 'Feature',
@@ -687,7 +687,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100027',
latitude: 52.514766,
- longitude: 13.389208
+ longitude: 13.389208,
},
products: {
suburban: false,
@@ -696,10 +696,10 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.38959, 52.51475 ] }
+ geometry: {type: 'Point', coordinates: [13.38959, 52.51475]},
},
{
type: 'Feature',
@@ -711,7 +711,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100530',
latitude: 52.515306,
- longitude: 13.397334
+ longitude: 13.397334,
},
products: {
suburban: false,
@@ -720,20 +720,20 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.3971, 52.51524 ] }
+ geometry: {type: 'Point', coordinates: [13.3971, 52.51524]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.39995, 52.51587 ] }
+ geometry: {type: 'Point', coordinates: [13.39995, 52.51587]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.40046, 52.51582 ] }
+ geometry: {type: 'Point', coordinates: [13.40046, 52.51582]},
},
{
type: 'Feature',
@@ -745,7 +745,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100052',
latitude: 52.516124,
- longitude: 13.401676
+ longitude: 13.401676,
},
products: {
suburban: false,
@@ -754,15 +754,15 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.40196, 52.51628 ] }
+ geometry: {type: 'Point', coordinates: [13.40196, 52.51628]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.40251, 52.51634 ] }
+ geometry: {type: 'Point', coordinates: [13.40251, 52.51634]},
},
{
type: 'Feature',
@@ -774,7 +774,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100531',
latitude: 52.515189,
- longitude: 13.403995
+ longitude: 13.403995,
},
products: {
suburban: false,
@@ -783,10 +783,10 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.40414, 52.51521 ] }
+ geometry: {type: 'Point', coordinates: [13.40414, 52.51521]},
},
{
type: 'Feature',
@@ -798,7 +798,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100726',
latitude: 52.513571,
- longitude: 13.406449
+ longitude: 13.406449,
},
products: {
suburban: false,
@@ -807,15 +807,15 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.4063, 52.51363 ] }
+ geometry: {type: 'Point', coordinates: [13.4063, 52.51363]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.40867, 52.51202 ] }
+ geometry: {type: 'Point', coordinates: [13.40867, 52.51202]},
},
{
type: 'Feature',
@@ -827,7 +827,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100014',
latitude: 52.512007,
- longitude: 13.408768
+ longitude: 13.408768,
},
products: {
suburban: false,
@@ -836,15 +836,15 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.40938, 52.51132 ] }
+ geometry: {type: 'Point', coordinates: [13.40938, 52.51132]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.41117, 52.5096 ] }
+ geometry: {type: 'Point', coordinates: [13.41117, 52.5096]},
},
{
type: 'Feature',
@@ -856,7 +856,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100032',
latitude: 52.508285,
- longitude: 13.413749
+ longitude: 13.413749,
},
products: {
suburban: false,
@@ -865,15 +865,15 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.41383, 52.50815 ] }
+ geometry: {type: 'Point', coordinates: [13.41383, 52.50815]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.41531, 52.50736 ] }
+ geometry: {type: 'Point', coordinates: [13.41531, 52.50736]},
},
{
type: 'Feature',
@@ -885,7 +885,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100544',
latitude: 52.506595,
- longitude: 13.417857
+ longitude: 13.417857,
},
products: {
suburban: false,
@@ -894,30 +894,30 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.41761, 52.50662 ] }
+ geometry: {type: 'Point', coordinates: [13.41761, 52.50662]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.41951, 52.50609 ] }
+ geometry: {type: 'Point', coordinates: [13.41951, 52.50609]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.41935, 52.50579 ] }
+ geometry: {type: 'Point', coordinates: [13.41935, 52.50579]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.41947, 52.50569 ] }
+ geometry: {type: 'Point', coordinates: [13.41947, 52.50569]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.42159, 52.50512 ] }
+ geometry: {type: 'Point', coordinates: [13.42159, 52.50512]},
},
{
type: 'Feature',
@@ -929,7 +929,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100546',
latitude: 52.505283,
- longitude: 13.422144
+ longitude: 13.422144,
},
products: {
suburban: false,
@@ -938,35 +938,35 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.42233, 52.50507 ] }
+ geometry: {type: 'Point', coordinates: [13.42233, 52.50507]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.42443, 52.50514 ] }
+ geometry: {type: 'Point', coordinates: [13.42443, 52.50514]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.42561, 52.50542 ] }
+ geometry: {type: 'Point', coordinates: [13.42561, 52.50542]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.42639, 52.5057 ] }
+ geometry: {type: 'Point', coordinates: [13.42639, 52.5057]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.42708, 52.50612 ] }
+ geometry: {type: 'Point', coordinates: [13.42708, 52.50612]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.4279, 52.5068 ] }
+ geometry: {type: 'Point', coordinates: [13.4279, 52.5068]},
},
{
type: 'Feature',
@@ -978,7 +978,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900014107',
latitude: 52.507215,
- longitude: 13.428437
+ longitude: 13.428437,
},
products: {
suburban: false,
@@ -987,35 +987,35 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.42813, 52.50712 ] }
+ geometry: {type: 'Point', coordinates: [13.42813, 52.50712]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.42845, 52.5082 ] }
+ geometry: {type: 'Point', coordinates: [13.42845, 52.5082]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.43015, 52.51009 ] }
+ geometry: {type: 'Point', coordinates: [13.43015, 52.51009]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.43482, 52.50851 ] }
+ geometry: {type: 'Point', coordinates: [13.43482, 52.50851]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.43507, 52.5086 ] }
+ geometry: {type: 'Point', coordinates: [13.43507, 52.5086]},
},
{
type: 'Feature',
properties: {},
- geometry: { type: 'Point', coordinates: [ 13.4355, 52.50904 ] }
+ geometry: {type: 'Point', coordinates: [13.4355, 52.50904]},
},
{
type: 'Feature',
@@ -1027,7 +1027,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900120005',
latitude: 52.510335,
- longitude: 13.435089
+ longitude: 13.435089,
},
products: {
suburban: true,
@@ -1036,12 +1036,12 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
- geometry: { type: 'Point', coordinates: [ 13.43447, 52.50953 ] }
- }
- ]
+ geometry: {type: 'Point', coordinates: [13.43447, 52.50953]},
+ },
+ ],
},
stopovers: [
@@ -1054,7 +1054,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900009102',
latitude: 52.546489,
- longitude: 13.359391
+ longitude: 13.359391,
},
products: {
suburban: false,
@@ -1063,8 +1063,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -1082,10 +1082,10 @@ const bvgTripWithOccupancy = {
{
type: 'hint',
code: 'text.journeystop.product.or.direction.changes.stop.message',
- text: 'As 147 heading towards S Ostbahnhof via S+U Wedding from here'
- }
+ text: 'As 147 heading towards S Ostbahnhof via S+U Wedding from here',
+ },
],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1096,7 +1096,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900009151',
latitude: 52.544476,
- longitude: 13.362663
+ longitude: 13.362663,
},
products: {
suburban: false,
@@ -1105,8 +1105,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:20:00+01:00',
plannedArrival: '2021-11-01T07:20:00+01:00',
@@ -1121,7 +1121,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1132,7 +1132,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900009104',
latitude: 52.542732,
- longitude: 13.366061
+ longitude: 13.366061,
},
products: {
suburban: true,
@@ -1141,8 +1141,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:21:00+01:00',
plannedArrival: '2021-11-01T07:21:00+01:00',
@@ -1160,10 +1160,10 @@ const bvgTripWithOccupancy = {
{
type: 'hint',
code: 'text.journeystop.product.or.direction.changes.stop.message',
- text: 'As 147 heading towards S Ostbahnhof via S+U Hauptbahnhof from here'
- }
+ text: 'As 147 heading towards S Ostbahnhof via S+U Hauptbahnhof from here',
+ },
],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1174,7 +1174,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900008104',
latitude: 52.541195,
- longitude: 13.368713
+ longitude: 13.368713,
},
products: {
suburban: false,
@@ -1183,8 +1183,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:22:00+01:00',
plannedArrival: '2021-11-01T07:22:00+01:00',
@@ -1199,7 +1199,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1210,7 +1210,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900001202',
latitude: 52.538848,
- longitude: 13.363607
+ longitude: 13.363607,
},
products: {
suburban: false,
@@ -1219,8 +1219,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:24:00+01:00',
plannedArrival: '2021-11-01T07:24:00+01:00',
@@ -1235,7 +1235,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1246,7 +1246,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900001252',
latitude: 52.536736,
- longitude: 13.361216
+ longitude: 13.361216,
},
products: {
suburban: false,
@@ -1255,8 +1255,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:26:00+01:00',
plannedArrival: '2021-11-01T07:26:00+01:00',
@@ -1271,7 +1271,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1282,7 +1282,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900001206',
latitude: 52.53332,
- longitude: 13.365512
+ longitude: 13.365512,
},
products: {
suburban: false,
@@ -1291,8 +1291,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:27:00+01:00',
plannedArrival: '2021-11-01T07:27:00+01:00',
@@ -1307,7 +1307,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1318,7 +1318,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900001203',
latitude: 52.530668,
- longitude: 13.36811
+ longitude: 13.36811,
},
products: {
suburban: false,
@@ -1327,8 +1327,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:28:00+01:00',
plannedArrival: '2021-11-01T07:28:00+01:00',
@@ -1343,7 +1343,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1354,7 +1354,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900003201',
latitude: 52.525607,
- longitude: 13.369072
+ longitude: 13.369072,
},
products: {
suburban: true,
@@ -1363,8 +1363,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2021-11-01T07:31:00+01:00',
plannedArrival: '2021-11-01T07:31:00+01:00',
@@ -1382,10 +1382,10 @@ const bvgTripWithOccupancy = {
{
type: 'hint',
code: 'text.journeystop.product.or.direction.changes.stop.message',
- text: 'As 147 heading towards S Ostbahnhof via Friedrichstr. from here'
- }
+ text: 'As 147 heading towards S Ostbahnhof via Friedrichstr. from here',
+ },
],
- occupancy: 'medium'
+ occupancy: 'medium',
},
{
stop: {
@@ -1396,7 +1396,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100503',
latitude: 52.528762,
- longitude: 13.376929
+ longitude: 13.376929,
},
products: {
suburban: false,
@@ -1405,8 +1405,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:33:00+01:00',
plannedArrival: '2021-11-01T07:33:00+01:00',
@@ -1421,7 +1421,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'medium'
+ occupancy: 'medium',
},
{
stop: {
@@ -1432,7 +1432,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100542',
latitude: 52.52576,
- longitude: 13.379086
+ longitude: 13.379086,
},
products: {
suburban: false,
@@ -1441,8 +1441,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:35:00+01:00',
plannedArrival: '2021-11-01T07:35:00+01:00',
@@ -1457,7 +1457,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1468,7 +1468,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100033',
latitude: 52.524052,
- longitude: 13.379392
+ longitude: 13.379392,
},
products: {
suburban: false,
@@ -1477,8 +1477,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:36:00+01:00',
plannedArrival: '2021-11-01T07:36:00+01:00',
@@ -1493,7 +1493,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1504,7 +1504,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100509',
latitude: 52.523126,
- longitude: 13.383266
+ longitude: 13.383266,
},
products: {
suburban: false,
@@ -1513,8 +1513,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:38:00+01:00',
plannedArrival: '2021-11-01T07:38:00+01:00',
@@ -1529,7 +1529,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1540,7 +1540,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100047',
latitude: 52.523711,
- longitude: 13.386835
+ longitude: 13.386835,
},
products: {
suburban: false,
@@ -1549,8 +1549,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:39:00+01:00',
plannedArrival: '2021-11-01T07:39:00+01:00',
@@ -1565,7 +1565,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1576,7 +1576,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100001',
latitude: 52.520519,
- longitude: 13.386448
+ longitude: 13.386448,
},
products: {
suburban: true,
@@ -1585,8 +1585,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2021-11-01T07:41:00+01:00',
plannedArrival: '2021-11-01T07:41:00+01:00',
@@ -1604,10 +1604,10 @@ const bvgTripWithOccupancy = {
{
type: 'hint',
code: 'text.journeystop.product.or.direction.changes.stop.message',
- text: 'As 147 heading towards S Ostbahnhof from here'
- }
+ text: 'As 147 heading towards S Ostbahnhof from here',
+ },
],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1618,7 +1618,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100513',
latitude: 52.516996,
- longitude: 13.388875
+ longitude: 13.388875,
},
products: {
suburban: false,
@@ -1627,8 +1627,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:44:00+01:00',
plannedArrival: '2021-11-01T07:44:00+01:00',
@@ -1643,7 +1643,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1654,7 +1654,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100027',
latitude: 52.514766,
- longitude: 13.389208
+ longitude: 13.389208,
},
products: {
suburban: false,
@@ -1663,8 +1663,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:45:00+01:00',
plannedArrival: '2021-11-01T07:45:00+01:00',
@@ -1679,7 +1679,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1690,7 +1690,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100530',
latitude: 52.515306,
- longitude: 13.397334
+ longitude: 13.397334,
},
products: {
suburban: false,
@@ -1699,8 +1699,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:47:00+01:00',
plannedArrival: '2021-11-01T07:47:00+01:00',
@@ -1715,7 +1715,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1726,7 +1726,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100052',
latitude: 52.516124,
- longitude: 13.401676
+ longitude: 13.401676,
},
products: {
suburban: false,
@@ -1735,8 +1735,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:47:00+01:00',
plannedArrival: '2021-11-01T07:47:00+01:00',
@@ -1751,7 +1751,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1762,7 +1762,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100531',
latitude: 52.515189,
- longitude: 13.403995
+ longitude: 13.403995,
},
products: {
suburban: false,
@@ -1771,8 +1771,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:48:00+01:00',
plannedArrival: '2021-11-01T07:48:00+01:00',
@@ -1787,7 +1787,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1798,7 +1798,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100726',
latitude: 52.513571,
- longitude: 13.406449
+ longitude: 13.406449,
},
products: {
suburban: false,
@@ -1807,8 +1807,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:49:00+01:00',
plannedArrival: '2021-11-01T07:49:00+01:00',
@@ -1823,7 +1823,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1834,7 +1834,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100014',
latitude: 52.512007,
- longitude: 13.408768
+ longitude: 13.408768,
},
products: {
suburban: false,
@@ -1843,8 +1843,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:50:00+01:00',
plannedArrival: '2021-11-01T07:50:00+01:00',
@@ -1859,7 +1859,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1870,7 +1870,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100032',
latitude: 52.508285,
- longitude: 13.413749
+ longitude: 13.413749,
},
products: {
suburban: false,
@@ -1879,8 +1879,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:51:00+01:00',
plannedArrival: '2021-11-01T07:51:00+01:00',
@@ -1895,7 +1895,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1906,7 +1906,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100544',
latitude: 52.506595,
- longitude: 13.417857
+ longitude: 13.417857,
},
products: {
suburban: false,
@@ -1915,8 +1915,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:52:00+01:00',
plannedArrival: '2021-11-01T07:52:00+01:00',
@@ -1931,7 +1931,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1942,7 +1942,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900100546',
latitude: 52.505283,
- longitude: 13.422144
+ longitude: 13.422144,
},
products: {
suburban: false,
@@ -1951,8 +1951,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:53:00+01:00',
plannedArrival: '2021-11-01T07:53:00+01:00',
@@ -1967,7 +1967,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -1978,7 +1978,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900014107',
latitude: 52.507215,
- longitude: 13.428437
+ longitude: 13.428437,
},
products: {
suburban: false,
@@ -1987,8 +1987,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: false,
- regional: false
- }
+ regional: false,
+ },
},
arrival: '2021-11-01T07:55:00+01:00',
plannedArrival: '2021-11-01T07:55:00+01:00',
@@ -2003,7 +2003,7 @@ const bvgTripWithOccupancy = {
plannedDeparturePlatform: null,
departurePrognosisType: null,
remarks: [],
- occupancy: 'low'
+ occupancy: 'low',
},
{
stop: {
@@ -2014,7 +2014,7 @@ const bvgTripWithOccupancy = {
type: 'location',
id: '900120005',
latitude: 52.510335,
- longitude: 13.435089
+ longitude: 13.435089,
},
products: {
suburban: true,
@@ -2023,8 +2023,8 @@ const bvgTripWithOccupancy = {
bus: true,
ferry: false,
express: true,
- regional: true
- }
+ regional: true,
+ },
},
arrival: '2021-11-01T07:59:00+01:00',
plannedArrival: '2021-11-01T07:59:00+01:00',
@@ -2038,7 +2038,7 @@ const bvgTripWithOccupancy = {
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
}
diff --git a/test/fixtures/db-arrivals.js b/test/fixtures/db-arrivals.js
index 6b4a88e4f..984939229 100644
--- a/test/fixtures/db-arrivals.js
+++ b/test/fixtures/db-arrivals.js
@@ -9,7 +9,7 @@ const dbArrivals = [
type: 'location',
id: '730985',
latitude: 52.530866,
- longitude: 13.300781
+ longitude: 13.300781,
},
products: {
nationalExpress: false,
@@ -21,7 +21,7 @@ const dbArrivals = [
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -31,7 +31,7 @@ const dbArrivals = [
type: 'location',
id: '8011167',
latitude: 52.530291,
- longitude: 13.299451
+ longitude: 13.299451,
},
products: {
nationalExpress: false,
@@ -43,7 +43,7 @@ const dbArrivals = [
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
lines: [
{
@@ -53,7 +53,7 @@ const dbArrivals = [
name: 'Bus RE6',
public: true,
mode: 'train',
- product: 'regional'
+ product: 'regional',
},
{
type: 'line',
@@ -62,7 +62,7 @@ const dbArrivals = [
name: 'Bus SEV',
public: true,
mode: 'train',
- product: 'regional'
+ product: 'regional',
},
{
type: 'line',
@@ -71,7 +71,7 @@ const dbArrivals = [
name: 'RB',
public: true,
mode: 'train',
- product: 'regional'
+ product: 'regional',
},
{
type: 'line',
@@ -80,7 +80,7 @@ const dbArrivals = [
name: 'RE',
public: true,
mode: 'train',
- product: 'regional'
+ product: 'regional',
},
{
type: 'line',
@@ -89,7 +89,7 @@ const dbArrivals = [
name: 'RE',
public: true,
mode: 'train',
- product: 'regional'
+ product: 'regional',
},
{
type: 'line',
@@ -98,7 +98,7 @@ const dbArrivals = [
name: 'S 2',
public: true,
mode: 'train',
- product: 'suburban'
+ product: 'suburban',
},
{
type: 'line',
@@ -107,7 +107,7 @@ const dbArrivals = [
name: 'S 25',
public: true,
mode: 'train',
- product: 'suburban'
+ product: 'suburban',
},
{
type: 'line',
@@ -116,7 +116,7 @@ const dbArrivals = [
name: 'S 41',
public: true,
mode: 'train',
- product: 'suburban'
+ product: 'suburban',
},
{
type: 'line',
@@ -125,7 +125,7 @@ const dbArrivals = [
name: 'S 42',
public: true,
mode: 'train',
- product: 'suburban'
+ product: 'suburban',
},
{
type: 'line',
@@ -134,7 +134,7 @@ const dbArrivals = [
name: 'S 46',
public: true,
mode: 'train',
- product: 'suburban'
+ product: 'suburban',
},
{
type: 'line',
@@ -143,7 +143,7 @@ const dbArrivals = [
name: 'Bus N7',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -152,7 +152,7 @@ const dbArrivals = [
name: 'Bus X9',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -161,7 +161,7 @@ const dbArrivals = [
name: 'Bus 109',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -170,7 +170,7 @@ const dbArrivals = [
name: 'Bus M21',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -179,7 +179,7 @@ const dbArrivals = [
name: 'Bus M27',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -188,9 +188,9 @@ const dbArrivals = [
name: 'U 7',
public: true,
mode: 'train',
- product: 'subway'
- }
- ]
+ product: 'subway',
+ },
+ ],
},
lines: [
{
@@ -200,7 +200,7 @@ const dbArrivals = [
name: 'Bus N7',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -209,7 +209,7 @@ const dbArrivals = [
name: 'Bus X9',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -218,7 +218,7 @@ const dbArrivals = [
name: 'Bus M21',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -227,7 +227,7 @@ const dbArrivals = [
name: 'Bus M27',
public: true,
mode: 'bus',
- product: 'bus'
+ product: 'bus',
},
{
type: 'line',
@@ -236,9 +236,9 @@ const dbArrivals = [
name: 'U 7',
public: true,
mode: 'train',
- product: 'subway'
- }
- ]
+ product: 'subway',
+ },
+ ],
},
when: '2020-06-09T17:21:00+02:00',
plannedWhen: '2020-06-09T17:04:00+02:00',
@@ -260,10 +260,10 @@ const dbArrivals = [
productName: 'U',
mode: 'train',
product: 'subway',
- operator: { type: 'operator', id: 'nahreisezug', name: 'Nahreisezug' }
+ operator: {type: 'operator', id: 'nahreisezug', name: 'Nahreisezug'},
},
- remarks: []
- }
+ remarks: [],
+ },
]
export {
diff --git a/test/fixtures/db-journey-2.js b/test/fixtures/db-journey-2.js
index ae777209e..994112cf0 100644
--- a/test/fixtures/db-journey-2.js
+++ b/test/fixtures/db-journey-2.js
@@ -10,7 +10,7 @@ const dbJourney = {
type: 'location',
id: '8004154',
latitude: 48.107418,
- longitude: 11.536306
+ longitude: 11.536306,
},
products: {
nationalExpress: false,
@@ -22,8 +22,8 @@ const dbJourney = {
ferry: false,
subway: false,
tram: false,
- taxi: false
- }
+ taxi: false,
+ },
},
destination: {
type: 'stop',
@@ -33,7 +33,7 @@ const dbJourney = {
type: 'location',
id: '8004137',
latitude: 48.094492,
- longitude: 11.53281
+ longitude: 11.53281,
},
products: {
nationalExpress: false,
@@ -45,8 +45,8 @@ const dbJourney = {
ferry: false,
subway: false,
tram: false,
- taxi: false
- }
+ taxi: false,
+ },
},
departure: '2020-11-16T10:04:00+01:00',
plannedDeparture: '2020-11-16T10:04:00+01:00',
@@ -71,8 +71,8 @@ const dbJourney = {
operator: {
type: 'operator',
id: 'db-regio-ag-bayern',
- name: 'DB Regio AG Bayern'
- }
+ name: 'DB Regio AG Bayern',
+ },
},
direction: 'Höllriegelskreuth',
arrivalPlatform: '2',
@@ -89,7 +89,7 @@ const dbJourney = {
type: 'location',
id: '8004154',
latitude: 48.107418,
- longitude: 11.536306
+ longitude: 11.536306,
},
products: {
nationalExpress: false,
@@ -101,8 +101,8 @@ const dbJourney = {
ferry: false,
subway: false,
tram: false,
- taxi: false
- }
+ taxi: false,
+ },
},
arrival: null,
plannedArrival: null,
@@ -126,7 +126,7 @@ const dbJourney = {
type: 'location',
id: '8004137',
latitude: 48.094492,
- longitude: 11.53281
+ longitude: 11.53281,
},
products: {
nationalExpress: false,
@@ -138,8 +138,8 @@ const dbJourney = {
ferry: false,
subway: false,
tram: false,
- taxi: false
- }
+ taxi: false,
+ },
},
arrival: '2020-11-16T10:05:00+01:00',
plannedArrival: '2020-11-16T10:05:00+01:00',
@@ -153,33 +153,33 @@ const dbJourney = {
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
remarks: [
{
type: 'hint',
code: 'PB',
- text: 'Obligation to cover nose and mouth'
+ text: 'Obligation to cover nose and mouth',
},
{
text: 'Number of bicycles conveyed limited',
type: 'hint',
code: 'bicycle-conveyance',
- summary: 'bicycles conveyed'
+ summary: 'bicycles conveyed',
},
{
type: 'hint',
code: 'FS',
- text: 'conveying bicycles: mind the excluded times'
+ text: 'conveying bicycles: mind the excluded times',
},
{
text: '2nd class only',
type: 'hint',
code: '2nd-class-only',
- summary: '2. class only'
- }
+ summary: '2. class only',
+ },
],
- cycle: {min: 1200, max: 1200, nr: 7}
+ cycle: {min: 1200, max: 1200, nr: 7},
},
{
origin: {
@@ -190,7 +190,7 @@ const dbJourney = {
type: 'location',
id: '8004137',
latitude: 48.094492,
- longitude: 11.53281
+ longitude: 11.53281,
},
products: {
nationalExpress: false,
@@ -202,8 +202,8 @@ const dbJourney = {
ferry: false,
subway: false,
tram: false,
- taxi: false
- }
+ taxi: false,
+ },
},
destination: {
type: 'stop',
@@ -213,7 +213,7 @@ const dbJourney = {
type: 'location',
id: '625016',
latitude: 48.098357,
- longitude: 11.536261
+ longitude: 11.536261,
},
products: {
nationalExpress: false,
@@ -225,7 +225,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -235,7 +235,7 @@ const dbJourney = {
type: 'location',
id: '625021',
latitude: 48.098627,
- longitude: 11.538023
+ longitude: 11.538023,
},
products: {
nationalExpress: false,
@@ -247,9 +247,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
departure: '2020-11-16T10:05:00+01:00',
plannedDeparture: '2020-11-16T10:05:00+01:00',
@@ -260,7 +260,7 @@ const dbJourney = {
public: true,
walking: true,
distance: 500,
- remarks: [ {type: 'hint', code: 'XK', text: 'walking distance 500 m'} ]
+ remarks: [{type: 'hint', code: 'XK', text: 'walking distance 500 m'}],
},
{
origin: {
@@ -271,7 +271,7 @@ const dbJourney = {
type: 'location',
id: '625016',
latitude: 48.098357,
- longitude: 11.536261
+ longitude: 11.536261,
},
products: {
nationalExpress: false,
@@ -283,7 +283,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -293,7 +293,7 @@ const dbJourney = {
type: 'location',
id: '625021',
latitude: 48.098627,
- longitude: 11.538023
+ longitude: 11.538023,
},
products: {
nationalExpress: false,
@@ -305,9 +305,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
destination: {
type: 'stop',
@@ -317,7 +317,7 @@ const dbJourney = {
type: 'location',
id: '624333',
latitude: 48.166702,
- longitude: 11.578151
+ longitude: 11.578151,
},
products: {
nationalExpress: false,
@@ -329,7 +329,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -339,7 +339,7 @@ const dbJourney = {
type: 'location',
id: '790754',
latitude: 48.167035,
- longitude: 11.579347
+ longitude: 11.579347,
},
products: {
nationalExpress: false,
@@ -351,9 +351,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
departure: '2020-11-16T10:15:00+01:00',
plannedDeparture: '2020-11-16T10:15:00+01:00',
@@ -374,7 +374,7 @@ const dbJourney = {
adminCode: 'swm001',
productName: 'U',
mode: 'train',
- product: 'subway'
+ product: 'subway',
},
direction: 'Moosach, München',
arrivalPlatform: null,
@@ -391,7 +391,7 @@ const dbJourney = {
type: 'location',
id: '625016',
latitude: 48.098357,
- longitude: 11.536261
+ longitude: 11.536261,
},
products: {
nationalExpress: false,
@@ -403,7 +403,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -413,7 +413,7 @@ const dbJourney = {
type: 'location',
id: '625021',
latitude: 48.098627,
- longitude: 11.538023
+ longitude: 11.538023,
},
products: {
nationalExpress: false,
@@ -425,9 +425,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: null,
plannedArrival: null,
@@ -451,7 +451,7 @@ const dbJourney = {
type: 'location',
id: '625236',
latitude: 48.102708,
- longitude: 11.546015
+ longitude: 11.546015,
},
products: {
nationalExpress: false,
@@ -463,7 +463,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -473,7 +473,7 @@ const dbJourney = {
type: 'location',
id: '625242',
latitude: 48.101009,
- longitude: 11.54668
+ longitude: 11.54668,
},
products: {
nationalExpress: false,
@@ -485,9 +485,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: '2020-11-16T10:16:00+01:00',
plannedArrival: '2020-11-16T10:16:00+01:00',
@@ -511,7 +511,7 @@ const dbJourney = {
type: 'location',
id: '624342',
latitude: 48.112596,
- longitude: 11.548721
+ longitude: 11.548721,
},
products: {
nationalExpress: false,
@@ -523,7 +523,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -533,7 +533,7 @@ const dbJourney = {
type: 'location',
id: '624345',
latitude: 48.112209,
- longitude: 11.548235
+ longitude: 11.548235,
},
products: {
nationalExpress: false,
@@ -545,9 +545,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: '2020-11-16T10:18:00+01:00',
plannedArrival: '2020-11-16T10:18:00+01:00',
@@ -571,7 +571,7 @@ const dbJourney = {
type: 'location',
id: '624684',
latitude: 48.120138,
- longitude: 11.548433
+ longitude: 11.548433,
},
products: {
nationalExpress: false,
@@ -583,7 +583,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -593,7 +593,7 @@ const dbJourney = {
type: 'location',
id: '624691',
latitude: 48.119392,
- longitude: 11.548855
+ longitude: 11.548855,
},
products: {
nationalExpress: false,
@@ -605,9 +605,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: '2020-11-16T10:20:00+01:00',
plannedArrival: '2020-11-16T10:20:00+01:00',
@@ -631,7 +631,7 @@ const dbJourney = {
type: 'location',
id: '625095',
latitude: 48.125513,
- longitude: 11.550357
+ longitude: 11.550357,
},
products: {
nationalExpress: false,
@@ -643,8 +643,8 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
+ taxi: false,
+ },
},
arrival: '2020-11-16T10:21:00+01:00',
plannedArrival: '2020-11-16T10:21:00+01:00',
@@ -668,7 +668,7 @@ const dbJourney = {
type: 'location',
id: '624535',
latitude: 48.129064,
- longitude: 11.557422
+ longitude: 11.557422,
},
products: {
nationalExpress: false,
@@ -680,8 +680,8 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
+ taxi: false,
+ },
},
arrival: '2020-11-16T10:22:00+01:00',
plannedArrival: '2020-11-16T10:22:00+01:00',
@@ -705,7 +705,7 @@ const dbJourney = {
type: 'location',
id: '625176',
latitude: 48.133406,
- longitude: 11.566744
+ longitude: 11.566744,
},
products: {
nationalExpress: false,
@@ -717,8 +717,8 @@ const dbJourney = {
ferry: false,
subway: true,
tram: true,
- taxi: false
- }
+ taxi: false,
+ },
},
arrival: '2020-11-16T10:24:00+01:00',
plannedArrival: '2020-11-16T10:24:00+01:00',
@@ -742,7 +742,7 @@ const dbJourney = {
type: 'location',
id: '624885',
latitude: 48.137829,
- longitude: 11.576596
+ longitude: 11.576596,
},
products: {
nationalExpress: false,
@@ -754,7 +754,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -764,7 +764,7 @@ const dbJourney = {
type: 'location',
id: '8004135',
latitude: 48.137047,
- longitude: 11.575383
+ longitude: 11.575383,
},
products: {
nationalExpress: false,
@@ -776,9 +776,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: '2020-11-16T10:26:00+01:00',
plannedArrival: '2020-11-16T10:26:00+01:00',
@@ -802,7 +802,7 @@ const dbJourney = {
type: 'location',
id: '638143',
latitude: 48.143411,
- longitude: 11.57798
+ longitude: 11.57798,
},
products: {
nationalExpress: false,
@@ -814,7 +814,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -824,7 +824,7 @@ const dbJourney = {
type: 'location',
id: '8070914',
latitude: 48.142943,
- longitude: 11.577819
+ longitude: 11.577819,
},
products: {
nationalExpress: false,
@@ -836,9 +836,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: '2020-11-16T10:27:00+01:00',
plannedArrival: '2020-11-16T10:27:00+01:00',
@@ -862,7 +862,7 @@ const dbJourney = {
type: 'location',
id: '638611',
latitude: 48.150063,
- longitude: 11.581001
+ longitude: 11.581001,
},
products: {
nationalExpress: false,
@@ -874,7 +874,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -884,7 +884,7 @@ const dbJourney = {
type: 'location',
id: '625286',
latitude: 48.148283,
- longitude: 11.580048
+ longitude: 11.580048,
},
products: {
nationalExpress: false,
@@ -896,9 +896,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: '2020-11-16T10:29:00+01:00',
plannedArrival: '2020-11-16T10:29:00+01:00',
@@ -922,7 +922,7 @@ const dbJourney = {
type: 'location',
id: '624521',
latitude: 48.156517,
- longitude: 11.584003
+ longitude: 11.584003,
},
products: {
nationalExpress: false,
@@ -934,7 +934,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -944,7 +944,7 @@ const dbJourney = {
type: 'location',
id: '624526',
latitude: 48.157236,
- longitude: 11.584803
+ longitude: 11.584803,
},
products: {
nationalExpress: false,
@@ -956,9 +956,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: '2020-11-16T10:30:00+01:00',
plannedArrival: '2020-11-16T10:30:00+01:00',
@@ -982,7 +982,7 @@ const dbJourney = {
type: 'location',
id: '624950',
latitude: 48.161839,
- longitude: 11.586331
+ longitude: 11.586331,
},
products: {
nationalExpress: false,
@@ -994,8 +994,8 @@ const dbJourney = {
ferry: false,
subway: true,
tram: true,
- taxi: false
- }
+ taxi: false,
+ },
},
arrival: '2020-11-16T10:31:00+01:00',
plannedArrival: '2020-11-16T10:31:00+01:00',
@@ -1019,7 +1019,7 @@ const dbJourney = {
type: 'location',
id: '624333',
latitude: 48.166702,
- longitude: 11.578151
+ longitude: 11.578151,
},
products: {
nationalExpress: false,
@@ -1031,7 +1031,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -1041,7 +1041,7 @@ const dbJourney = {
type: 'location',
id: '790754',
latitude: 48.167035,
- longitude: 11.579347
+ longitude: 11.579347,
},
products: {
nationalExpress: false,
@@ -1053,9 +1053,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
arrival: '2020-11-16T10:33:00+01:00',
plannedArrival: '2020-11-16T10:33:00+01:00',
@@ -1069,9 +1069,9 @@ const dbJourney = {
departurePlatform: null,
plannedDeparturePlatform: null,
departurePrognosisType: null,
- }
+ },
],
- cycle: {min: 600, max: 600, nr: 13}
+ cycle: {min: 600, max: 600, nr: 13},
},
{
origin: {
@@ -1082,7 +1082,7 @@ const dbJourney = {
type: 'location',
id: '624333',
latitude: 48.166702,
- longitude: 11.578151
+ longitude: 11.578151,
},
products: {
nationalExpress: false,
@@ -1094,7 +1094,7 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -1104,7 +1104,7 @@ const dbJourney = {
type: 'location',
id: '790754',
latitude: 48.167035,
- longitude: 11.579347
+ longitude: 11.579347,
},
products: {
nationalExpress: false,
@@ -1116,9 +1116,9 @@ const dbJourney = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
destination: {
type: 'station',
@@ -1128,7 +1128,7 @@ const dbJourney = {
type: 'location',
id: '621790',
latitude: 48.166918,
- longitude: 11.574043
+ longitude: 11.574043,
},
products: {
nationalExpress: false,
@@ -1140,8 +1140,8 @@ const dbJourney = {
ferry: false,
subway: false,
tram: true,
- taxi: false
- }
+ taxi: false,
+ },
},
departure: '2020-11-16T10:33:00+01:00',
plannedDeparture: '2020-11-16T10:33:00+01:00',
@@ -1151,12 +1151,12 @@ const dbJourney = {
arrivalDelay: null,
public: true,
walking: true,
- distance: 353
- }
+ distance: 353,
+ },
],
refreshToken: '¶HKI¶T$A=1@O=München-Mittersendling@L=8004154@a=128@$A=1@O=München Siemenswerke@L=8004137@a=128@$202011161004$202011161005$S 7$$1$$$§W$A=1@O=München Siemenswerke@L=8004137@a=128@$A=1@O=Obersendling, München@L=625016@a=128@$202011161005$202011161015$$$1$$$§T$A=1@O=Obersendling, München@L=625016@a=128@$A=1@O=Bonner Platz, München@L=624333@a=128@$202011161015$202011161033$U 3$$1$$$§G@F$A=1@O=Bonner Platz, München@L=624333@a=128@$A=1@O=Karl-Theodor-Straße, München@L=621790@a=128@$202011161033$202011161038$$$1$$$¶GP¶ft@0@2000@120@1@100@1@1000@0@@@@@false@0@-1@$f@$f@$f@$f@$f@$§bt@0@2000@120@1@100@1@1000@0@@@@@false@0@-1@$f@$f@$f@$f@$f@$§tt@0@5000@120@1@100@1@2500@0@@@@@false@0@-1@$t@0@25000@120@1@100@1@3000@0@@@@@false@0@-1@$f@$f@$f@$f@$§',
cycle: {min: 1200},
- price: null
+ price: null,
}
export {
diff --git a/test/fixtures/db-journey-polyline.js b/test/fixtures/db-journey-polyline.js
index 75f063c40..82440f11a 100644
--- a/test/fixtures/db-journey-polyline.js
+++ b/test/fixtures/db-journey-polyline.js
@@ -10,7 +10,7 @@ const dbJourneyPolyline = {
type: 'location',
id: '8098160',
latitude: 52.52585,
- longitude: 13.368892
+ longitude: 13.368892,
},
products: {
nationalExpress: true,
@@ -22,7 +22,7 @@ const dbJourneyPolyline = {
ferry: false,
subway: false,
tram: true,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -32,7 +32,7 @@ const dbJourneyPolyline = {
type: 'location',
id: '8011160',
latitude: 52.524924,
- longitude: 13.369629
+ longitude: 13.369629,
},
products: {
nationalExpress: true,
@@ -44,9 +44,9 @@ const dbJourneyPolyline = {
ferry: false,
subway: false,
tram: true,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
destination: {
type: 'stop',
@@ -56,7 +56,7 @@ const dbJourneyPolyline = {
type: 'location',
id: '8002549',
latitude: 53.553533,
- longitude: 10.00636
+ longitude: 10.00636,
},
products: {
nationalExpress: true,
@@ -68,8 +68,8 @@ const dbJourneyPolyline = {
ferry: false,
subway: true,
tram: false,
- taxi: false
- }
+ taxi: false,
+ },
},
arrival: '2020-07-27T12:34:00+02:00',
plannedArrival: '2020-07-27T12:34:00+02:00',
@@ -93,7 +93,7 @@ const dbJourneyPolyline = {
type: 'location',
id: '8098160',
latitude: 52.52585,
- longitude: 13.368892
+ longitude: 13.368892,
},
products: {
nationalExpress: true,
@@ -105,7 +105,7 @@ const dbJourneyPolyline = {
ferry: false,
subway: false,
tram: true,
- taxi: false
+ taxi: false,
},
station: {
type: 'station',
@@ -115,7 +115,7 @@ const dbJourneyPolyline = {
type: 'location',
id: '8011160',
latitude: 52.524924,
- longitude: 13.369629
+ longitude: 13.369629,
},
products: {
nationalExpress: true,
@@ -127,14 +127,14 @@ const dbJourneyPolyline = {
ferry: false,
subway: false,
tram: true,
- taxi: false
- }
- }
+ taxi: false,
+ },
+ },
},
geometry: {
type: 'Point',
coordinates: [13.36889, 52.52585],
- }
+ },
},
{
type: 'Feature',
@@ -142,7 +142,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36723, 52.52811],
- }
+ },
},
{
type: 'Feature',
@@ -150,7 +150,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36567, 52.52968],
- }
+ },
},
{
type: 'Feature',
@@ -158,7 +158,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36647, 52.53],
- }
+ },
},
{
type: 'Feature',
@@ -166,7 +166,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36647, 52.53],
- }
+ },
},
{
type: 'Feature',
@@ -174,7 +174,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36511, 52.53106],
- }
+ },
},
{
type: 'Feature',
@@ -182,7 +182,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36241, 52.53358],
- }
+ },
},
{
type: 'Feature',
@@ -190,7 +190,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36241, 52.53358],
- }
+ },
},
{
type: 'Feature',
@@ -198,7 +198,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36187, 52.53337],
- }
+ },
},
{
type: 'Feature',
@@ -206,7 +206,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.36069, 52.53447],
- }
+ },
},
{
type: 'Feature',
@@ -214,7 +214,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.3594, 52.53563],
- }
+ },
},
{
type: 'Feature',
@@ -222,7 +222,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.35859, 52.53615],
- }
+ },
},
{
type: 'Feature',
@@ -230,7 +230,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.35776, 52.53652],
- }
+ },
},
{
type: 'Feature',
@@ -238,7 +238,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.35622, 52.53692],
- }
+ },
},
{
type: 'Feature',
@@ -246,7 +246,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.3562, 52.53687],
- }
+ },
},
{
type: 'Feature',
@@ -254,7 +254,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.35618, 52.53683],
- }
+ },
},
{
type: 'Feature',
@@ -262,7 +262,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.35491, 52.53697],
- }
+ },
},
{
type: 'Feature',
@@ -270,7 +270,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.3536, 52.53697],
- }
+ },
},
{
type: 'Feature',
@@ -278,7 +278,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.35117, 52.53673],
- }
+ },
},
{
type: 'Feature',
@@ -286,7 +286,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.3511, 52.53698],
- }
+ },
},
{
type: 'Feature',
@@ -294,7 +294,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.3511, 52.53698],
- }
+ },
},
{
type: 'Feature',
@@ -302,7 +302,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.34762, 52.53649],
- }
+ },
},
{
type: 'Feature',
@@ -310,7 +310,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.34425, 52.53613],
- }
+ },
},
{
type: 'Feature',
@@ -318,7 +318,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.34425, 52.53613],
- }
+ },
},
{
type: 'Feature',
@@ -326,7 +326,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.34144, 52.53573],
- }
+ },
},
{
type: 'Feature',
@@ -334,7 +334,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.33938, 52.53549],
- }
+ },
},
{
type: 'Feature',
@@ -342,7 +342,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.33942, 52.53536],
- }
+ },
},
{
type: 'Feature',
@@ -350,7 +350,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.33938, 52.53549],
- }
+ },
},
{
type: 'Feature',
@@ -358,7 +358,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.33459, 52.5349],
- }
+ },
},
{
type: 'Feature',
@@ -366,7 +366,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.33456, 52.535],
- }
+ },
},
{
type: 'Feature',
@@ -374,7 +374,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.33459, 52.5349],
- }
+ },
},
{
type: 'Feature',
@@ -382,7 +382,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.32921, 52.53425],
- }
+ },
},
{
type: 'Feature',
@@ -390,7 +390,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.32921, 52.53425],
- }
+ },
},
{
type: 'Feature',
@@ -398,7 +398,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.32857, 52.53417],
- }
+ },
},
{
type: 'Feature',
@@ -406,7 +406,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.32858, 52.53414],
- }
+ },
},
{
type: 'Feature',
@@ -414,7 +414,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.32853, 52.53426],
- }
+ },
},
{
type: 'Feature',
@@ -422,7 +422,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.3078, 52.53144],
- }
+ },
},
{
type: 'Feature',
@@ -430,7 +430,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.29942, 52.53041],
- }
+ },
},
{
type: 'Feature',
@@ -438,7 +438,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.29942, 52.53041],
- }
+ },
},
{
type: 'Feature',
@@ -446,7 +446,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.29941, 52.5304],
- }
+ },
},
{
type: 'Feature',
@@ -454,7 +454,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.29945, 52.53029],
- }
+ },
},
{
type: 'Feature',
@@ -462,7 +462,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.293, 52.52939],
- }
+ },
},
{
type: 'Feature',
@@ -470,7 +470,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.29009, 52.52909],
- }
+ },
},
{
type: 'Feature',
@@ -478,7 +478,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.25551, 52.52694],
- }
+ },
},
{
type: 'Feature',
@@ -486,7 +486,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.25551, 52.5269],
- }
+ },
},
{
type: 'Feature',
@@ -494,7 +494,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.25552, 52.52687],
- }
+ },
},
{
type: 'Feature',
@@ -502,7 +502,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.24855, 52.52647],
- }
+ },
},
{
type: 'Feature',
@@ -510,7 +510,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.24344, 52.52654],
- }
+ },
},
{
type: 'Feature',
@@ -518,7 +518,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.24088, 52.52693],
- }
+ },
},
{
type: 'Feature',
@@ -526,7 +526,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.23554, 52.52845],
- }
+ },
},
{
type: 'Feature',
@@ -534,7 +534,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.2312, 52.52902],
- }
+ },
},
{
type: 'Feature',
@@ -542,7 +542,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.23123, 52.52913],
- }
+ },
},
{
type: 'Feature',
@@ -550,7 +550,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.23048, 52.52914],
- }
+ },
},
{
type: 'Feature',
@@ -558,7 +558,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.22399, 52.52981],
- }
+ },
},
{
type: 'Feature',
@@ -566,7 +566,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.22397, 52.52975],
- }
+ },
},
{
type: 'Feature',
@@ -574,7 +574,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.22397, 52.52975],
- }
+ },
},
{
type: 'Feature',
@@ -582,7 +582,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.21369, 52.5311],
- }
+ },
},
{
type: 'Feature',
@@ -590,7 +590,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.21371, 52.53118],
- }
+ },
},
{
type: 'Feature',
@@ -598,7 +598,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.2137, 52.53117],
- }
+ },
},
{
type: 'Feature',
@@ -606,7 +606,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.20948, 52.53171],
- }
+ },
},
{
type: 'Feature',
@@ -614,7 +614,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.20956, 52.53196],
- }
+ },
},
{
type: 'Feature',
@@ -622,7 +622,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.20595, 52.53255],
- }
+ },
},
{
type: 'Feature',
@@ -630,7 +630,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.20114, 52.53401],
- }
+ },
},
{
type: 'Feature',
@@ -638,7 +638,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.20095, 52.5338],
- }
+ },
},
{
type: 'Feature',
@@ -646,7 +646,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.1984, 52.53437],
- }
+ },
},
{
type: 'Feature',
@@ -654,7 +654,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.19848, 52.53451],
- }
+ },
},
{
type: 'Feature',
@@ -662,7 +662,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.19478, 52.53514],
- }
+ },
},
{
type: 'Feature',
@@ -670,7 +670,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.18783, 52.53615],
- }
+ },
},
{
type: 'Feature',
@@ -678,7 +678,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.18763, 52.53573],
- }
+ },
},
{
type: 'Feature',
@@ -686,7 +686,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.18778, 52.53606],
- }
+ },
},
{
type: 'Feature',
@@ -694,7 +694,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.18523, 52.53648],
- }
+ },
},
{
type: 'Feature',
@@ -702,7 +702,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.18524, 52.5365],
- }
+ },
},
{
type: 'Feature',
@@ -710,7 +710,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.18523, 52.53648],
- }
+ },
},
{
type: 'Feature',
@@ -718,7 +718,7 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.17109, 52.53875],
- }
+ },
},
{
type: 'Feature',
@@ -726,3255 +726,3255 @@ const dbJourneyPolyline = {
geometry: {
type: 'Point',
coordinates: [13.16593, 52.53992],
- }
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.1607, 52.54117],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.1607, 52.54117],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.1276, 52.54975],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.1276, 52.54975],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.1276, 52.54975],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.1276, 52.54975],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.12921, 52.54933],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.12921, 52.54933],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.12921, 52.54933],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.12921, 52.54933],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.11701, 52.55246],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.11701, 52.55246],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.11701, 52.55246],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.11701, 52.55246],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.10514, 52.55567],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.10514, 52.55567],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.08924, 52.5598],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.08924, 52.5598],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.08924, 52.5598],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.08924, 52.5598],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.05095, 52.56974],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.05095, 52.56974],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.05095, 52.56974],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.05095, 52.56974],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.03193, 52.57466],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.03193, 52.57466],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.03193, 52.57466],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.03193, 52.57466],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.03193, 52.57466],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.03193, 52.57466],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.03193, 52.57466],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.03193, 52.57466],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [13.00885, 52.58066],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [13.00885, 52.58066],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.99998, 52.58292],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.99998, 52.58292],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.99998, 52.58292],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.99998, 52.58292],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.98704, 52.58622],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.98704, 52.58622],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.97895, 52.58845],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.97895, 52.58845],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.93546, 52.59969],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.93546, 52.59969],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.92199, 52.60329],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.92199, 52.60329],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.90683, 52.60719],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.90683, 52.60719],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.89792, 52.60938],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.89792, 52.60938],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.8856, 52.61272],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.8856, 52.61272],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.8856, 52.61272],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.8856, 52.61272],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.87943, 52.61423],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.87943, 52.61423],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.87436, 52.61571],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.87436, 52.61571],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.8491, 52.62502],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.8491, 52.62502],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.8491, 52.62502],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.8491, 52.62502],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.74165, 52.66478],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.74165, 52.66478],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.74165, 52.66478],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.74165, 52.66478],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.72018, 52.67271],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.72018, 52.67271],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.71653, 52.67424],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.71653, 52.67424],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.71322, 52.67589],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.71322, 52.67589],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.71322, 52.67589],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.71042, 52.6775],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.71322, 52.67589],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.70791, 52.67915],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.71042, 52.6775],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.63245, 52.73031],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.70791, 52.67915],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.63245, 52.73031],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.63245, 52.73031],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.5876, 52.76064],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.63245, 52.73031],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.5876, 52.76064],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.5876, 52.76064],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.4592, 52.84705],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.5876, 52.76064],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.4592, 52.84705],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.4592, 52.84705],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.45274, 52.85141],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.4592, 52.84705],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.45091, 52.85264],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.45274, 52.85141],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.45105, 52.85272],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.45091, 52.85264],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.444, 52.85746],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.45105, 52.85272],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.444, 52.85746],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.444, 52.85746],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.44385, 52.85737],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.444, 52.85746],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.43328, 52.86438],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.44385, 52.85737],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.43169, 52.8652],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.43328, 52.86438],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.42889, 52.8663],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.43169, 52.8652],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.35027, 52.8916],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.42889, 52.8663],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.34689, 52.89253],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.35027, 52.8916],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.34334, 52.89319],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.34689, 52.89253],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.33967, 52.89354],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.34334, 52.89319],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.33596, 52.89359],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.33967, 52.89354],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.28484, 52.89139],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.33596, 52.89359],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.27896, 52.89088],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.28484, 52.89139],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.23634, 52.88631],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.27896, 52.89088],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.23043, 52.88599],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.23634, 52.88631],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.22745, 52.88598],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.23043, 52.88599],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.2242, 52.88609],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.22745, 52.88598],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.2242, 52.88609],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.2242, 52.88609],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.1491, 52.8907],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.2242, 52.88609],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.14468, 52.89103],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.1491, 52.8907],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.14177, 52.89137],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.14468, 52.89103],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.13605, 52.89234],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.14177, 52.89137],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.08388, 52.90351],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.13605, 52.89234],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.08388, 52.90351],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.08388, 52.90351],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.07726, 52.90534],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.08388, 52.90351],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [12.07278, 52.90694],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.07726, 52.90534],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.94977, 52.96001],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [12.07278, 52.90694],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.94977, 52.96001],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.94977, 52.96001],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.94245, 52.96311],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.94977, 52.96001],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.93223, 52.96679],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.94245, 52.96311],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.92961, 52.96765],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.93223, 52.96679],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.87325, 52.98405],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.92961, 52.96765],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.86103, 52.98751],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.87325, 52.98405],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.8575, 52.98835],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.86103, 52.98751],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.85282, 52.98905],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.8575, 52.98835],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.84214, 52.98976],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.85282, 52.98905],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.78825, 52.99283],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.84214, 52.98976],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.78481, 52.99297],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.78825, 52.99283],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.77866, 52.9929],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.78481, 52.99297],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.77654, 52.99306],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.77866, 52.9929],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.77667, 52.99344],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.77654, 52.99306],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.77654, 52.99306],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.77667, 52.99344],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.77438, 52.99341],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.77654, 52.99306],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.77214, 52.99402],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.77438, 52.99341],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76965, 52.99507],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.77214, 52.99402],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76822, 52.99593],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76965, 52.99507],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76681, 52.99704],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76822, 52.99593],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76607, 52.99783],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76681, 52.99704],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.7651, 52.99924],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76607, 52.99783],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76404, 53.00122],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.7651, 52.99924],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76294, 53.00335],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76404, 53.00122],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76294, 53.00335],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76294, 53.00335],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76209, 53.00562],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76294, 53.00335],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.76156, 53.00818],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76209, 53.00562],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.75999, 53.01863],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.76156, 53.00818],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.75999, 53.01863],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.75999, 53.01863],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.75896, 53.02618],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.75999, 53.01863],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.75016, 53.08416],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.75896, 53.02618],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.75016, 53.08416],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.75016, 53.08416],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.73836, 53.16122],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.75016, 53.08416],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.73836, 53.16122],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.73836, 53.16122],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.73394, 53.19105],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.73836, 53.16122],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.73354, 53.19283],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.73394, 53.19105],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.73226, 53.19635],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.73354, 53.19283],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.7309, 53.19892],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.73226, 53.19635],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.72857, 53.20223],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.7309, 53.19892],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.72645, 53.2046],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.72857, 53.20223],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.72403, 53.20687],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.72645, 53.2046],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.72132, 53.20902],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.72403, 53.20687],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.71835, 53.21104],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.72132, 53.20902],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.71398, 53.21349],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.71835, 53.21104],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.66362, 53.23654],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.71398, 53.21349],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.66362, 53.23654],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.66362, 53.23654],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.65112, 53.24225],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.66362, 53.23654],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.65112, 53.24225],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.65112, 53.24225],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.57315, 53.27784],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.65112, 53.24225],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.56972, 53.27957],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.57315, 53.27784],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.56432, 53.28283],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.56972, 53.27957],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.56432, 53.28283],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.56432, 53.28283],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.5177, 53.31039],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.56432, 53.28283],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.51624, 53.30953],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.5177, 53.31039],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.5177, 53.31039],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.51624, 53.30953],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.51531, 53.31192],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.5177, 53.31039],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.51329, 53.31345],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.51531, 53.31192],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.511, 53.31557],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.51329, 53.31345],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.50921, 53.31767],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.511, 53.31557],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.50822, 53.31915],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.50921, 53.31767],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.5074, 53.32076],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.50822, 53.31915],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.50624, 53.32469],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.5074, 53.32076],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.50574, 53.32604],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.50624, 53.32469],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.50486, 53.32756],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.50385, 53.32882],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.50574, 53.32604],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.50245, 53.33014],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.50486, 53.32756],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.50027, 53.33172],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.50385, 53.32882],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.49907, 53.33241],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.50245, 53.33014],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.49366, 53.33506],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.50027, 53.33172],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.49366, 53.33506],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.49907, 53.33241],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.45045, 53.35549],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.49366, 53.33506],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.45045, 53.35549],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.49366, 53.33506],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.40358, 53.37763],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.45045, 53.35549],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.39713, 53.38052],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.45045, 53.35549],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.39326, 53.3819],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.40358, 53.37763],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.38919, 53.38305],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.39713, 53.38052],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.37464, 53.38622],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.39326, 53.3819],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.37464, 53.38622],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.38919, 53.38305],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.31781, 53.39847],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.37464, 53.38622],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.31781, 53.39847],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.37464, 53.38622],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.24191, 53.41474],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.31781, 53.39847],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.23624, 53.41587],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.31781, 53.39847],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.23324, 53.41619],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.24191, 53.41474],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.2305, 53.41627],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.23624, 53.41587],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.22814, 53.41618],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.23324, 53.41619],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.22597, 53.41597],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.2305, 53.41627],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.22395, 53.41566],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.22814, 53.41618],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.22151, 53.41512],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.22597, 53.41597],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.21897, 53.4144],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.22395, 53.41566],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.21576, 53.41327],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.22151, 53.41512],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.2153, 53.41361],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.21897, 53.4144],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.21199, 53.41173],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.21576, 53.41327],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.20864, 53.4102],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.2153, 53.41361],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.20778, 53.40993],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.21199, 53.41173],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.20612, 53.40964],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.20864, 53.4102],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.20612, 53.40964],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.20778, 53.40993],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.20701, 53.4091],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.20612, 53.40964],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.15773, 53.37663],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.20612, 53.40964],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.15606, 53.37572],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.20701, 53.4091],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.15427, 53.3749],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.15773, 53.37663],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.15106, 53.37375],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.15606, 53.37572],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.1476, 53.37287],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.15427, 53.3749],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.14299, 53.37216],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.15106, 53.37375],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.14299, 53.37216],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.1476, 53.37287],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.08354, 53.36499],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.14299, 53.37216],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.08354, 53.36499],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.14299, 53.37216],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.02743, 53.35819],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.08354, 53.36499],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.02384, 53.35785],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.08354, 53.36499],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [11.02009, 53.35773],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.02743, 53.35819],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.98705, 53.35799],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.02384, 53.35785],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.98405, 53.3581],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [11.02009, 53.35773],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.98183, 53.35829],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.98705, 53.35799],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.97962, 53.35856],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.98405, 53.3581],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.97674, 53.35906],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.98183, 53.35829],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.95201, 53.36442],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.97962, 53.35856],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.95201, 53.36442],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.97674, 53.35906],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.90455, 53.37471],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.95201, 53.36442],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.90024, 53.37551],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.95201, 53.36442],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.89731, 53.3759],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.90455, 53.37471],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.89434, 53.37617],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.90024, 53.37551],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.89135, 53.37631],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.89731, 53.3759],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.88684, 53.37635],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.89434, 53.37617],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.76786, 53.37606],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.89135, 53.37631],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.76411, 53.37619],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.88684, 53.37635],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.76042, 53.37662],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.76786, 53.37606],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.75756, 53.37718],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.76411, 53.37619],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.75411, 53.37813],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.76042, 53.37662],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.75411, 53.37813],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.75756, 53.37718],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.74951, 53.37959],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.75411, 53.37813],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.74639, 53.38083],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.75411, 53.37813],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.74343, 53.38242],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.74951, 53.37959],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.74114, 53.38403],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.74639, 53.38083],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.73225, 53.39182],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.74343, 53.38242],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.68993, 53.42813],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.74114, 53.38403],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.68993, 53.42813],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.73225, 53.39182],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.65985, 53.45385],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.68993, 53.42813],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.65601, 53.45662],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.68993, 53.42813],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.64984, 53.46022],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.65985, 53.45385],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.64984, 53.46022],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.65601, 53.45662],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.64982, 53.46022],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.64984, 53.46022],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.64982, 53.46022],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.64984, 53.46022],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.62314, 53.47542],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.64982, 53.46022],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.62268, 53.47521],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.64982, 53.46022],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.62181, 53.47606],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.62314, 53.47542],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.62098, 53.47663],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.62268, 53.47521],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.61977, 53.47735],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.62181, 53.47606],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.61131, 53.48209],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.62098, 53.47663],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.61131, 53.48209],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.61977, 53.47735],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.60795, 53.4839],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.61131, 53.48209],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.60315, 53.48606],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.61131, 53.48209],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.59996, 53.48726],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.60795, 53.4839],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.59079, 53.49017],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.60315, 53.48606],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.59079, 53.49017],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.59996, 53.48726],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.55908, 53.50015],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.59079, 53.49017],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.55908, 53.50015],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.59079, 53.49017],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.54596, 53.50428],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.55908, 53.50015],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.54324, 53.50506],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.55908, 53.50015],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.53969, 53.5058],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.54596, 53.50428],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.53749, 53.50611],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.54324, 53.50506],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.53526, 53.50631],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.53969, 53.5058],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.533, 53.5064],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.53749, 53.50611],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.53074, 53.50638],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.53526, 53.50631],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.52774, 53.50618],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.533, 53.5064],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.52553, 53.5059],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.53074, 53.50638],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.52337, 53.50552],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.52774, 53.50618],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.52126, 53.50504],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.52553, 53.5059],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.51294, 53.50272],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.51084, 53.50222],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.52337, 53.50552],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.50794, 53.50172],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.52126, 53.50504],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.50422, 53.50138],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.51294, 53.50272],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.49971, 53.50139],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.51084, 53.50222],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.49524, 53.50178],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.50794, 53.50172],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.49232, 53.50222],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.50422, 53.50138],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.48489, 53.50381],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.49971, 53.50139],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.48489, 53.50381],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.49524, 53.50178],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.48163, 53.50441],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.49232, 53.50222],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.47869, 53.50479],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.48489, 53.50381],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.46895, 53.50542],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.48489, 53.50381],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.46598, 53.5057],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.48163, 53.50441],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.46235, 53.50631],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.47869, 53.50479],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.45956, 53.507],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.46895, 53.50542],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.45692, 53.50785],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.46598, 53.5057],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.45505, 53.50861],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.46235, 53.50631],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.42782, 53.52066],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.45956, 53.507],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.42587, 53.52134],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.45692, 53.50785],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.42384, 53.52193],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.45505, 53.50861],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.42029, 53.52268],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.42782, 53.52066],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.41809, 53.523],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.42587, 53.52134],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.41586, 53.52321],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.42384, 53.52193],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.4136, 53.52331],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.42029, 53.52268],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.41134, 53.5233],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.41809, 53.523],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.37228, 53.52093],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.41586, 53.52321],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.36926, 53.52083],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.4136, 53.52331],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.36626, 53.52092],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.41134, 53.5233],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.36256, 53.52134],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.37228, 53.52093],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.3604, 53.52174],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.36926, 53.52083],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.35832, 53.52227],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.36626, 53.52092],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.35568, 53.52313],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.36256, 53.52134],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.3502, 53.52552],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.3604, 53.52174],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.34828, 53.52623],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.35832, 53.52227],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.34487, 53.52718],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.35568, 53.52313],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.34107, 53.5279],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.3502, 53.52552],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.34107, 53.5279],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.34828, 53.52623],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.33396, 53.5291],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.34487, 53.52718],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.32878, 53.52967],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.34107, 53.5279],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.32427, 53.52993],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.34107, 53.5279],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.31961, 53.52997],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.33396, 53.5291],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.3196, 53.53001],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.32878, 53.52967],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.31932, 53.52997],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.32427, 53.52993],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.31483, 53.52992],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.31961, 53.52997],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.31475, 53.53004],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.3196, 53.53001],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.31334, 53.52995],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.31932, 53.52997],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.30808, 53.52934],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.31483, 53.52992],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.303, 53.52852],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.31475, 53.53004],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.3002, 53.52793],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.31334, 53.52995],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.28762, 53.52489],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.30808, 53.52934],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.28493, 53.52409],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.303, 53.52852],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.28241, 53.52309],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.3002, 53.52793],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.28011, 53.52194],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.28762, 53.52489],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.27811, 53.52067],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.28493, 53.52409],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.27811, 53.52067],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.28241, 53.52309],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.27624, 53.51919],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.28011, 53.52194],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.27321, 53.51609],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.27811, 53.52067],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.27192, 53.51498],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.27811, 53.52067],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.26996, 53.51361],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.27624, 53.51919],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.26774, 53.5124],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.27321, 53.51609],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.2653, 53.51135],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.27192, 53.51498],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.26265, 53.51049],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.26996, 53.51361],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.26057, 53.50996],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.26774, 53.5124],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.25488, 53.50878],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.2653, 53.51135],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.25198, 53.50802],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.26265, 53.51049],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.25205, 53.50793],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.26057, 53.50996],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.2492, 53.50694],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.25488, 53.50878],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.24742, 53.50612],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.25198, 53.50802],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.24576, 53.5052],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.25205, 53.50793],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.24378, 53.50384],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.2492, 53.50694],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.24028, 53.50092],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.24742, 53.50612],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.23766, 53.49931],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.24576, 53.5052],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.23462, 53.49798],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.24378, 53.50384],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.23126, 53.49698],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.24028, 53.50092],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.23126, 53.49698],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.23766, 53.49931],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.2312, 53.49707],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.23462, 53.49798],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.22803, 53.49646],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.23126, 53.49698],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.22509, 53.49612],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.23126, 53.49698],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.22509, 53.49612],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.2312, 53.49707],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.22509, 53.49612],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.22803, 53.49646],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.22212, 53.49576],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.22509, 53.49612],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.21995, 53.49538],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.22509, 53.49612],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.21788, 53.49485],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.22509, 53.49612],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.21587, 53.49422],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.22212, 53.49576],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.21395, 53.49351],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.21995, 53.49538],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.21151, 53.49246],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.21788, 53.49485],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.20626, 53.48986],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.21587, 53.49422],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.20626, 53.48986],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.21395, 53.49351],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.20625, 53.48986],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.21151, 53.49246],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.20625, 53.48986],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.20626, 53.48986],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.20625, 53.48986],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.20626, 53.48986],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.20391, 53.48879],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.20625, 53.48986],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.20129, 53.4879],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.20625, 53.48986],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.19849, 53.48725],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.20625, 53.48986],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.19555, 53.48687],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.20391, 53.48879],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.19104, 53.48684],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.20129, 53.4879],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.18188, 53.48784],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.19849, 53.48725],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.18185, 53.48772],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.19555, 53.48687],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.18185, 53.48772],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.19104, 53.48684],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.18124, 53.48779],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.18188, 53.48784],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.18128, 53.48791],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.18185, 53.48772],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.15867, 53.49036],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.18185, 53.48772],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.15867, 53.49036],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.18124, 53.48779],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.15369, 53.49093],
- }
- },
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.18128, 53.48791],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.15867, 53.49036],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.15867, 53.49036],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.15369, 53.49093],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.15366, 53.49084],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.15369, 53.49093],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.15034, 53.49143],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.14748, 53.492],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.14195, 53.49342],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.13934, 53.49431],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.13687, 53.49534],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.13064, 53.49832],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.13064, 53.49832],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.12307, 53.50231],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.11319, 53.5073],
+ },
+ },
+ {
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.11319, 53.5073],
+ },
+ },
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.15366, 53.49084],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.11296, 53.50715],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.15369, 53.49093],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.11265, 53.50732],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.15034, 53.49143],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.09793, 53.5148],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.14748, 53.492],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.09799, 53.51483],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.14195, 53.49342],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.09793, 53.5148],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.13934, 53.49431],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.09685, 53.51534],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.13687, 53.49534],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.09693, 53.5154],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.13064, 53.49832],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.07175, 53.52804],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.13064, 53.49832],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.06978, 53.52904],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.12307, 53.50231],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.06973, 53.52901],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.11319, 53.5073],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.06969, 53.52899],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.11319, 53.5073],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.06647, 53.53056],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.11296, 53.50715],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.06655, 53.53063],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.11265, 53.50732],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.05948, 53.53359],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.09793, 53.5148],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.05426, 53.53536],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.09799, 53.51483],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.05258, 53.53586],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.09793, 53.5148],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.05257, 53.53585],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.09685, 53.51534],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.05254, 53.5358],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.09693, 53.5154],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.05088, 53.5361],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.07175, 53.52804],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.04571, 53.53672],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.06978, 53.52904],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.03906, 53.53792],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.06973, 53.52901],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.03905, 53.5379],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.06969, 53.52899],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.03906, 53.53792],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.06647, 53.53056],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.03188, 53.53976],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.06655, 53.53063],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.02942, 53.54022],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.05948, 53.53359],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.02807, 53.54062],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.05426, 53.53536],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.02363, 53.54233],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.05258, 53.53586],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.02165, 53.54297],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.05257, 53.53585],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.01983, 53.54376],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.05254, 53.5358],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.01789, 53.54445],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.05088, 53.5361],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.01648, 53.54477],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.04571, 53.53672],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.01353, 53.54515],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.03906, 53.53792],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00972, 53.54659],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.03905, 53.5379],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00864, 53.54722],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.03906, 53.53792],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00785, 53.54797],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.03188, 53.53976],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00749, 53.54884],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.02942, 53.54022],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00728, 53.55017],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.02807, 53.54062],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00731, 53.55131],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.02363, 53.54233],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00683, 53.55267],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.02165, 53.54297],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00703, 53.55368],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.01983, 53.54376],
- }
+ type: 'Feature',
+ properties: {},
+ geometry: {
+ type: 'Point',
+ coordinates: [10.007, 53.55371],
+ },
},
{
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.01789, 53.54445],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.01648, 53.54477],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.01353, 53.54515],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00972, 53.54659],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00864, 53.54722],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00785, 53.54797],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00749, 53.54884],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00728, 53.55017],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00731, 53.55131],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00683, 53.55267],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00703, 53.55368],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {},
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.007, 53.55371],
- }
- },
- {
- 'type': 'Feature',
- 'properties': {
- 'type': 'stop',
- 'id': '8002549',
- 'name': 'Hamburg Hbf',
- 'location': {
- 'type': 'location',
- 'id': '8002549',
- 'latitude': 53.553533,
- 'longitude': 10.00636
+ type: 'Feature',
+ properties: {
+ type: 'stop',
+ id: '8002549',
+ name: 'Hamburg Hbf',
+ location: {
+ type: 'location',
+ id: '8002549',
+ latitude: 53.553533,
+ longitude: 10.00636,
},
- 'products': {
- 'nationalExpress': true,
- 'national': true,
- 'regionalExpress': true,
- 'regional': true,
- 'suburban': true,
- 'bus': true,
- 'ferry': false,
- 'subway': true,
- 'tram': false,
- 'taxi': false
- }
- },
- 'geometry': {
- 'type': 'Point',
- 'coordinates': [10.00636, 53.55354],
- }
- }
- ]
+ products: {
+ nationalExpress: true,
+ national: true,
+ regionalExpress: true,
+ regional: true,
+ suburban: true,
+ bus: true,
+ ferry: false,
+ subway: true,
+ tram: false,
+ taxi: false,
+ },
+ },
+ geometry: {
+ type: 'Point',
+ coordinates: [10.00636, 53.55354],
+ },
+ },
+ ],
},
- 'tripId': '1|244757|0|80|27072020',
- 'line': {
- 'type': 'line',
- 'id': 'ice-696',
- 'fahrtNr': '696',
- 'name': 'ICE 696',
- 'public': true,
- 'adminCode': '80____',
- 'productName': 'ICE',
- 'mode': 'train',
- 'product': 'nationalExpress',
- 'operator': {
- 'type': 'operator',
- 'id': 'db-fernverkehr-ag',
- 'name': 'DB Fernverkehr AG'
- }
+ tripId: '1|244757|0|80|27072020',
+ line: {
+ type: 'line',
+ id: 'ice-696',
+ fahrtNr: '696',
+ name: 'ICE 696',
+ public: true,
+ adminCode: '80____',
+ productName: 'ICE',
+ mode: 'train',
+ product: 'nationalExpress',
+ operator: {
+ type: 'operator',
+ id: 'db-fernverkehr-ag',
+ name: 'DB Fernverkehr AG',
+ },
},
- 'direction': 'Kiel Hbf',
- 'arrivalPlatform': '5',
- 'plannedArrivalPlatform': '5',
- 'departurePlatform': '7',
- 'plannedDeparturePlatform': '7',
- 'loadFactor': 'low-to-medium'
- }
+ direction: 'Kiel Hbf',
+ arrivalPlatform: '5',
+ plannedArrivalPlatform: '5',
+ departurePlatform: '7',
+ plannedDeparturePlatform: '7',
+ loadFactor: 'low-to-medium',
+ },
],
- 'refreshToken': '¶HKI¶T$A=1@O=Berlin Hbf (tief)@L=8098160@a=128@$A=1@O=Hamburg Hbf@L=8002549@a=128@$202007271038$202007271234$ICE 696$$1$$$',
- 'price': {
- 'amount': 69.9,
- 'currency': 'EUR',
- 'hint': null
- }
+ refreshToken: '¶HKI¶T$A=1@O=Berlin Hbf (tief)@L=8098160@a=128@$A=1@O=Hamburg Hbf@L=8002549@a=128@$202007271038$202007271234$ICE 696$$1$$$',
+ price: {
+ amount: 69.9,
+ currency: 'EUR',
+ hint: null,
+ },
}
export {
diff --git a/test/fixtures/db-journey.js b/test/fixtures/db-journey.js
index b14246b81..4a1c42507 100644
--- a/test/fixtures/db-journey.js
+++ b/test/fixtures/db-journey.js
@@ -23,7 +23,7 @@ const dbJourney = {
subway: false,
tram: true,
taxi: false,
- }
+ },
},
destination: {
type: 'stop',
@@ -68,8 +68,8 @@ const dbJourney = {
subway: false,
tram: true,
taxi: false,
- }
- }
+ },
+ },
},
arrival: '2020-04-11T05:20:00+02:00',
plannedArrival: '2020-04-11T05:20:00+02:00',
@@ -126,8 +126,8 @@ const dbJourney = {
subway: false,
tram: true,
taxi: false,
- }
- }
+ },
+ },
},
destination: {
type: 'stop',
@@ -150,7 +150,7 @@ const dbJourney = {
subway: true,
tram: true,
taxi: false,
- }
+ },
},
arrival: '2020-04-11T09:01:00+02:00',
plannedArrival: '2020-04-11T09:01:00+02:00',
@@ -176,7 +176,7 @@ const dbJourney = {
type: 'operator',
id: 'db-fernverkehr-ag',
name: 'DB Fernverkehr AG',
- }
+ },
},
direction: 'München Hbf',
arrivalPlatform: '9',
@@ -184,14 +184,14 @@ const dbJourney = {
departurePlatform: '11',
plannedDeparturePlatform: '11',
remarks: [
- {
+ {
text: 'Komfort Check-in möglich (Infos unter bahn.de/kci)',
type: 'hint',
code: 'komfort-checkin',
summary: 'Komfort-Checkin available',
- }
- ]
- }
+ },
+ ],
+ },
],
refreshToken: '¶HKI¶D$A=1@O=Köln Hbf@L=8000207@a=128@$A=1@O=Köln Messe/Deutz Gl.11-12@L=8073368@a=128@$202004110517$202004110520$$$1$§T$A=1@O=Köln Messe/Deutz Gl.11-12@L=8073368@a=128@$A=1@O=Nürnberg Hbf@L=8000284@a=128@$202004110520$202004110901$ICE 523$$1$',
price: {amount: 49.9, currency: 'EUR', hint: null},
diff --git a/test/fixtures/db-stop.js b/test/fixtures/db-stop.js
index 2d865f910..d3315b40c 100644
--- a/test/fixtures/db-stop.js
+++ b/test/fixtures/db-stop.js
@@ -1,14 +1,14 @@
const facilities = {
'3SZentrale': '030/2971055',
- parkingLots: true,
- bicycleParkingRacks: true,
- localPublicTransport: true,
- toilets: true,
- lockers: true,
- travelShop: false,
- stepFreeAccess: true,
- boardingAid: 'ja, um voranmeldung unter 01806 512 512* wird gebeten',
- taxis: true,
+ 'parkingLots': true,
+ 'bicycleParkingRacks': true,
+ 'localPublicTransport': true,
+ 'toilets': true,
+ 'lockers': true,
+ 'travelShop': false,
+ 'stepFreeAccess': true,
+ 'boardingAid': 'ja, um voranmeldung unter 01806 512 512* wird gebeten',
+ 'taxis': true,
}
const reisezentrumOpeningHours = {
@@ -26,7 +26,7 @@ const reisezentrumOpeningHours = {
['Do', '08:00-20:00'],
['Fr', '08:00-20:00'],
['Sa', '10:00-18:00'],
- ['So', '10:00-18:00']
+ ['So', '10:00-18:00'],
],
}
@@ -38,7 +38,7 @@ const station = {
type: 'location',
id: '8011155',
latitude: 52.521526,
- longitude: 13.411088
+ longitude: 13.411088,
},
products: {
nationalExpress: false,
@@ -50,7 +50,7 @@ const station = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
transitAuthority: 'VBB',
ids: {
@@ -75,7 +75,7 @@ const dbStop = {
type: 'location',
id: '372948',
latitude: 52.523513,
- longitude: 13.411366
+ longitude: 13.411366,
},
products: {
nationalExpress: false,
@@ -87,7 +87,7 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
@@ -105,7 +105,7 @@ const dbStop = {
type: 'location',
id: '727273',
latitude: 52.52087,
- longitude: 13.411609
+ longitude: 13.411609,
},
products: {
nationalExpress: false,
@@ -117,7 +117,7 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
@@ -135,7 +135,7 @@ const dbStop = {
type: 'location',
id: '727460',
latitude: 52.521967,
- longitude: 13.41116
+ longitude: 13.41116,
},
products: {
nationalExpress: false,
@@ -147,7 +147,7 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
@@ -165,7 +165,7 @@ const dbStop = {
type: 'location',
id: '727484',
latitude: 52.522722,
- longitude: 13.410288
+ longitude: 13.410288,
},
products: {
nationalExpress: false,
@@ -177,7 +177,7 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
@@ -195,7 +195,7 @@ const dbStop = {
type: 'location',
id: '728658',
latitude: 52.52318,
- longitude: 13.413946
+ longitude: 13.413946,
},
products: {
nationalExpress: false,
@@ -207,11 +207,11 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
- facilities
+ facilities,
}, {
type: 'stop',
id: '728659',
@@ -224,7 +224,7 @@ const dbStop = {
type: 'location',
id: '728659',
latitude: 52.521742,
- longitude: 13.414045
+ longitude: 13.414045,
},
products: {
nationalExpress: false,
@@ -236,7 +236,7 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
@@ -254,7 +254,7 @@ const dbStop = {
type: 'location',
id: '728660',
latitude: 52.521661,
- longitude: 13.414045
+ longitude: 13.414045,
},
products: {
nationalExpress: false,
@@ -266,7 +266,7 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
@@ -284,7 +284,7 @@ const dbStop = {
type: 'location',
id: '728735',
latitude: 52.520322,
- longitude: 13.415708
+ longitude: 13.415708,
},
products: {
nationalExpress: false,
@@ -296,11 +296,11 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
- facilities
+ facilities,
}, {
type: 'stop',
id: '732533',
@@ -313,7 +313,7 @@ const dbStop = {
type: 'location',
id: '732533',
latitude: 52.521023,
- longitude: 13.412661
+ longitude: 13.412661,
},
products: {
nationalExpress: false,
@@ -325,7 +325,7 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
@@ -343,7 +343,7 @@ const dbStop = {
type: 'location',
id: '732535',
latitude: 52.522119,
- longitude: 13.414683
+ longitude: 13.414683,
},
products: {
nationalExpress: false,
@@ -355,11 +355,11 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
- facilities
+ facilities,
}, {
type: 'stop',
id: '732536',
@@ -372,7 +372,7 @@ const dbStop = {
type: 'location',
id: '732536',
latitude: 52.520825,
- longitude: 13.414926
+ longitude: 13.414926,
},
products: {
nationalExpress: false,
@@ -384,11 +384,11 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
station,
transitAuthority: 'VBB',
- facilities
+ facilities,
}, {
type: 'stop',
id: '8089001',
@@ -401,7 +401,7 @@ const dbStop = {
type: 'location',
id: '8089001',
latitude: 52.521643,
- longitude: 13.411097
+ longitude: 13.411097,
},
products: {
nationalExpress: false,
@@ -413,7 +413,7 @@ const dbStop = {
ferry: false,
subway: true,
tram: true,
- taxi: false
+ taxi: false,
},
transitAuthority: 'VBB',
station,
@@ -430,7 +430,7 @@ const dbStop = {
type: 'location',
id: '732594',
latitude: 52.522066,
- longitude: 13.41658
+ longitude: 13.41658,
},
products: {
nationalExpress: false,
@@ -442,193 +442,193 @@ const dbStop = {
ferry: false,
subway: false,
tram: false,
- taxi: false
+ taxi: false,
},
transitAuthority: 'VBB',
}],
entrances: [{
type: 'location', id: '608011155',
- latitude: 52.521814, longitude: 13.411456
+ latitude: 52.521814, longitude: 13.411456,
}, {
type: 'location', id: '718011155',
- latitude: 52.521373, longitude: 13.413317
+ latitude: 52.521373, longitude: 13.413317,
}, {
type: 'location', id: '708011155',
- latitude: 52.522317, longitude: 13.412895
+ latitude: 52.522317, longitude: 13.412895,
}, {
type: 'location', id: '698011155',
- latitude: 52.520852, longitude: 13.412274
+ latitude: 52.520852, longitude: 13.412274,
}, {
type: 'location', id: '688011155',
- latitude: 52.521176, longitude: 13.412463
+ latitude: 52.521176, longitude: 13.412463,
}, {
type: 'location', id: '678011155',
- latitude: 52.520933, longitude: 13.41285
+ latitude: 52.520933, longitude: 13.41285,
}, {
type: 'location', id: '668011155',
- latitude: 52.520798, longitude: 13.411717
+ latitude: 52.520798, longitude: 13.411717,
}, {
type: 'location', id: '658011155',
- latitude: 52.52096, longitude: 13.414908
+ latitude: 52.52096, longitude: 13.414908,
}, {
type: 'location', id: '648011155',
- latitude: 52.521724, longitude: 13.41027
+ latitude: 52.521724, longitude: 13.41027,
}, {
type: 'location', id: '638011155',
- latitude: 52.52211, longitude: 13.410881
+ latitude: 52.52211, longitude: 13.410881,
}, {
type: 'location', id: '628011155',
- latitude: 52.522119, longitude: 13.414647
+ latitude: 52.522119, longitude: 13.414647,
}, {
type: 'location', id: '618011155',
- latitude: 52.521409, longitude: 13.410728
+ latitude: 52.521409, longitude: 13.410728,
}, {
type: 'location', id: '8089001',
- latitude: 52.521643, longitude: 13.411097
+ latitude: 52.521643, longitude: 13.411097,
}, {
type: 'location', id: '608089001',
- latitude: 52.521409, longitude: 13.410728
+ latitude: 52.521409, longitude: 13.410728,
}, {
type: 'location', id: '718089001',
- latitude: 52.521373, longitude: 13.413317
+ latitude: 52.521373, longitude: 13.413317,
}, {
type: 'location', id: '708089001',
- latitude: 52.522317, longitude: 13.412895
+ latitude: 52.522317, longitude: 13.412895,
}, {
type: 'location', id: '698089001',
- latitude: 52.520852, longitude: 13.412274
+ latitude: 52.520852, longitude: 13.412274,
}, {
type: 'location', id: '688089001',
- latitude: 52.521176, longitude: 13.412463
+ latitude: 52.521176, longitude: 13.412463,
}, {
type: 'location', id: '678089001',
- latitude: 52.520933, longitude: 13.41285
+ latitude: 52.520933, longitude: 13.41285,
}, {
type: 'location', id: '668089001',
- latitude: 52.520798, longitude: 13.411717
+ latitude: 52.520798, longitude: 13.411717,
}, {
type: 'location', id: '658089001',
- latitude: 52.52096, longitude: 13.414908
+ latitude: 52.52096, longitude: 13.414908,
}, {
type: 'location', id: '648089001',
- latitude: 52.521724, longitude: 13.41027
+ latitude: 52.521724, longitude: 13.41027,
}, {
type: 'location', id: '638089001',
- latitude: 52.52211, longitude: 13.410881
+ latitude: 52.52211, longitude: 13.410881,
}, {
type: 'location', id: '628089001',
- latitude: 52.522119, longitude: 13.414647
+ latitude: 52.522119, longitude: 13.414647,
}, {
type: 'location', id: '618089001',
- latitude: 52.521814, longitude: 13.411456
+ latitude: 52.521814, longitude: 13.411456,
}, {
type: 'location', id: '600732533',
- latitude: 52.520933, longitude: 13.41285
+ latitude: 52.520933, longitude: 13.41285,
}, {
type: 'location', id: '710732533',
- latitude: 52.522317, longitude: 13.412895
+ latitude: 52.522317, longitude: 13.412895,
}, {
type: 'location', id: '700732533',
- latitude: 52.520852, longitude: 13.412274
+ latitude: 52.520852, longitude: 13.412274,
}, {
type: 'location', id: '690732533',
- latitude: 52.520798, longitude: 13.411717
+ latitude: 52.520798, longitude: 13.411717,
}, {
type: 'location', id: '680732533',
- latitude: 52.52096, longitude: 13.414908
+ latitude: 52.52096, longitude: 13.414908,
}, {
type: 'location', id: '670732533',
- latitude: 52.521724, longitude: 13.41027
+ latitude: 52.521724, longitude: 13.41027,
}, {
type: 'location', id: '660732533',
- latitude: 52.52211, longitude: 13.410881
+ latitude: 52.52211, longitude: 13.410881,
}, {
type: 'location', id: '650732533',
- latitude: 52.521409, longitude: 13.410728
+ latitude: 52.521409, longitude: 13.410728,
}, {
type: 'location', id: '640732533',
- latitude: 52.521814, longitude: 13.411456
+ latitude: 52.521814, longitude: 13.411456,
}, {
type: 'location', id: '630732533',
- latitude: 52.522119, longitude: 13.414647
+ latitude: 52.522119, longitude: 13.414647,
}, {
type: 'location', id: '620732533',
- latitude: 52.521373, longitude: 13.413317
+ latitude: 52.521373, longitude: 13.413317,
}, {
type: 'location', id: '610732533',
- latitude: 52.521176, longitude: 13.412463
+ latitude: 52.521176, longitude: 13.412463,
}, {
type: 'location', id: '600728660',
- latitude: 52.521373, longitude: 13.413317
+ latitude: 52.521373, longitude: 13.413317,
}, {
type: 'location', id: '710728660',
- latitude: 52.520852, longitude: 13.412274
+ latitude: 52.520852, longitude: 13.412274,
}, {
type: 'location', id: '700728660',
- latitude: 52.521176, longitude: 13.412463
+ latitude: 52.521176, longitude: 13.412463,
}, {
type: 'location', id: '690728660',
- latitude: 52.520933, longitude: 13.41285
+ latitude: 52.520933, longitude: 13.41285,
}, {
type: 'location', id: '680728660',
- latitude: 52.520798, longitude: 13.411717
+ latitude: 52.520798, longitude: 13.411717,
}, {
type: 'location', id: '670728660',
- latitude: 52.521724, longitude: 13.41027
+ latitude: 52.521724, longitude: 13.41027,
}, {
type: 'location', id: '660728660',
- latitude: 52.52211, longitude: 13.410881
+ latitude: 52.52211, longitude: 13.410881,
}, {
type: 'location', id: '650728660',
- latitude: 52.521409, longitude: 13.410728
+ latitude: 52.521409, longitude: 13.410728,
}, {
type: 'location', id: '640728660',
- latitude: 52.521814, longitude: 13.411456
+ latitude: 52.521814, longitude: 13.411456,
}, {
type: 'location', id: '630728660',
- latitude: 52.522317, longitude: 13.412895
+ latitude: 52.522317, longitude: 13.412895,
}, {
type: 'location', id: '620728660',
- latitude: 52.522119, longitude: 13.414647
+ latitude: 52.522119, longitude: 13.414647,
}, {
type: 'location', id: '610728660',
- latitude: 52.52096, longitude: 13.414908
+ latitude: 52.52096, longitude: 13.414908,
}, {
type: 'location', id: '600728659',
- latitude: 52.522119, longitude: 13.414647
+ latitude: 52.522119, longitude: 13.414647,
}, {
type: 'location', id: '710728659',
- latitude: 52.520852, longitude: 13.412274
+ latitude: 52.520852, longitude: 13.412274,
}, {
type: 'location', id: '700728659',
- latitude: 52.521176, longitude: 13.412463
+ latitude: 52.521176, longitude: 13.412463,
}, {
type: 'location', id: '690728659',
- latitude: 52.520933, longitude: 13.41285
+ latitude: 52.520933, longitude: 13.41285,
}, {
type: 'location', id: '680728659',
- latitude: 52.520798, longitude: 13.411717
+ latitude: 52.520798, longitude: 13.411717,
}, {
type: 'location', id: '670728659',
- latitude: 52.521724, longitude: 13.41027
+ latitude: 52.521724, longitude: 13.41027,
}, {
type: 'location', id: '660728659',
- latitude: 52.52211, longitude: 13.410881
+ latitude: 52.52211, longitude: 13.410881,
}, {
type: 'location', id: '650728659',
- latitude: 52.521409, longitude: 13.410728
+ latitude: 52.521409, longitude: 13.410728,
}, {
type: 'location', id: '640728659',
- latitude: 52.521814, longitude: 13.411456
+ latitude: 52.521814, longitude: 13.411456,
}, {
type: 'location', id: '630728659',
- latitude: 52.521373, longitude: 13.413317
+ latitude: 52.521373, longitude: 13.413317,
}, {
type: 'location', id: '620728659',
- latitude: 52.52096, longitude: 13.414908
+ latitude: 52.52096, longitude: 13.414908,
}, {
type: 'location', id: '610728659',
- latitude: 52.522317, longitude: 13.412895
+ latitude: 52.522317, longitude: 13.412895,
}],
}
diff --git a/test/fixtures/insa-stop.js b/test/fixtures/insa-stop.js
index d46bec54b..d6e9331e1 100644
--- a/test/fixtures/insa-stop.js
+++ b/test/fixtures/insa-stop.js
@@ -9,7 +9,7 @@ const insaStop = {
type: 'location',
id: '7341',
latitude: 52.096849,
- longitude: 11.637444
+ longitude: 11.637444,
},
products: {
nationalExpress: false,
@@ -18,7 +18,7 @@ const insaStop = {
suburban: false,
tram: false,
bus: true,
- tourismTrain: false
+ tourismTrain: false,
},
}
diff --git a/test/fixtures/oebb-trip.js b/test/fixtures/oebb-trip.js
index fb6934646..8fdebda36 100644
--- a/test/fixtures/oebb-trip.js
+++ b/test/fixtures/oebb-trip.js
@@ -17,7 +17,7 @@ const wienFlughafen = {
type: 'location',
id: '8100353',
latitude: 48.121163,
- longitude: 16.562418
+ longitude: 16.562418,
},
products: {
nationalExpress: true,
@@ -29,8 +29,8 @@ const wienFlughafen = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
}
const salzburgHbf = {
@@ -41,7 +41,7 @@ const salzburgHbf = {
type: 'location',
id: '8100002',
latitude: 47.812851,
- longitude: 13.045604
+ longitude: 13.045604,
},
products: {
nationalExpress: true,
@@ -53,14 +53,14 @@ const salzburgHbf = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
}
const öbbWestbahnTickets = {
type: 'hint',
code: 'O5',
- text: 'Hinweis: Gegenseitige Anerkennung von ÖBB- und WESTbahn-Tickets (Wien Hbf - Salzburg Hbf)'
+ text: 'Hinweis: Gegenseitige Anerkennung von ÖBB- und WESTbahn-Tickets (Wien Hbf - Salzburg Hbf)',
}
const corona = {
@@ -81,17 +81,17 @@ const corona = {
ferry: true,
subway: true,
tram: true,
- onCall: true
+ onCall: true,
},
edges: [{
icoCrd: {x: 14768356, y: 48156724, type: 'WGS84'},
icon: null,
fromLocation: null,
- toLocation: null
+ toLocation: null,
}],
validFrom: '2020-05-15T00:00:00+02:00',
validUntil: '2020-06-30T23:59:00+02:00',
- modified: '2020-05-28T13:48:14+02:00'
+ modified: '2020-05-28T13:48:14+02:00',
}
const oebbTrip = {
@@ -116,7 +116,7 @@ const oebbTrip = {
productName: 'RJ',
mode: 'train',
product: 'nationalExpress',
- operator: {type: 'operator', id: 'nahreisezug', name: 'Nahreisezug'}
+ operator: {type: 'operator', id: 'nahreisezug', name: 'Nahreisezug'},
},
direction: 'Salzburg Hbf',
arrivalPlatform: '6A-C',
@@ -148,7 +148,7 @@ const oebbTrip = {
type: 'location',
id: '8103000',
latitude: 48.184564,
- longitude: 16.378526
+ longitude: 16.378526,
},
products: {
nationalExpress: true,
@@ -160,8 +160,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T16:48:00+02:00',
plannedArrival: '2020-06-11T16:48:00+02:00',
@@ -178,7 +178,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -189,7 +189,7 @@ const oebbTrip = {
type: 'location',
id: '8100514',
latitude: 48.174585,
- longitude: 16.333733
+ longitude: 16.333733,
},
products: {
nationalExpress: true,
@@ -201,8 +201,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T17:00:00+02:00',
plannedArrival: '2020-06-11T17:00:00+02:00',
@@ -219,7 +219,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -230,7 +230,7 @@ const oebbTrip = {
type: 'location',
id: '8102059',
latitude: 48.295167,
- longitude: 15.996538
+ longitude: 15.996538,
},
products: {
nationalExpress: true,
@@ -242,8 +242,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T17:15:00+02:00',
plannedArrival: '2020-06-11T17:15:00+02:00',
@@ -260,7 +260,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -271,7 +271,7 @@ const oebbTrip = {
type: 'location',
id: '8100008',
latitude: 48.20825,
- longitude: 15.624681
+ longitude: 15.624681,
},
products: {
nationalExpress: true,
@@ -283,8 +283,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T17:28:00+02:00',
plannedArrival: '2020-06-11T17:28:00+02:00',
@@ -301,7 +301,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -312,7 +312,7 @@ const oebbTrip = {
type: 'location',
id: '8100012',
latitude: 48.121477,
- longitude: 14.878199
+ longitude: 14.878199,
},
products: {
nationalExpress: true,
@@ -324,8 +324,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T18:00:00+02:00',
plannedArrival: '2020-06-11T18:00:00+02:00',
@@ -342,7 +342,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -353,7 +353,7 @@ const oebbTrip = {
type: 'location',
id: '8100009',
latitude: 48.17873,
- longitude: 14.522083
+ longitude: 14.522083,
},
products: {
nationalExpress: true,
@@ -365,8 +365,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T18:16:00+02:00',
plannedArrival: '2020-06-11T18:16:00+02:00',
@@ -383,7 +383,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -394,7 +394,7 @@ const oebbTrip = {
type: 'location',
id: '8100013',
latitude: 48.29016,
- longitude: 14.291941
+ longitude: 14.291941,
},
products: {
nationalExpress: true,
@@ -406,8 +406,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T18:30:00+02:00',
plannedArrival: '2020-06-11T18:30:00+02:00',
@@ -424,7 +424,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -435,7 +435,7 @@ const oebbTrip = {
type: 'location',
id: '8100014',
latitude: 48.166208,
- longitude: 14.027271
+ longitude: 14.027271,
},
products: {
nationalExpress: true,
@@ -447,8 +447,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T18:44:00+02:00',
plannedArrival: '2020-06-11T18:44:00+02:00',
@@ -465,7 +465,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -476,7 +476,7 @@ const oebbTrip = {
type: 'location',
id: '8100017',
latitude: 48.012654,
- longitude: 13.720883
+ longitude: 13.720883,
},
products: {
nationalExpress: true,
@@ -488,8 +488,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T18:58:00+02:00',
plannedArrival: '2020-06-11T18:58:00+02:00',
@@ -506,7 +506,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -517,7 +517,7 @@ const oebbTrip = {
type: 'location',
id: '8100507',
latitude: 48.010002,
- longitude: 13.663936
+ longitude: 13.663936,
},
products: {
nationalExpress: true,
@@ -529,8 +529,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T19:04:00+02:00',
plannedArrival: '2020-06-11T19:04:00+02:00',
@@ -547,7 +547,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: {
@@ -558,7 +558,7 @@ const oebbTrip = {
type: 'location',
id: '8100134',
latitude: 47.954512,
- longitude: 13.224714
+ longitude: 13.224714,
},
products: {
nationalExpress: true,
@@ -570,8 +570,8 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
arrival: '2020-06-11T19:30:00+02:00',
plannedArrival: '2020-06-11T19:30:00+02:00',
@@ -588,7 +588,7 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
+ ],
},
{
stop: salzburgHbf,
@@ -607,19 +607,19 @@ const oebbTrip = {
remarks: [
öbbWestbahnTickets,
corona,
- ]
- }
+ ],
+ },
],
remarks: [
{
type: 'hint',
code: 'FR',
- text: 'Fahrradmitnahme reservierungspflichtig'
+ text: 'Fahrradmitnahme reservierungspflichtig',
},
{
type: 'hint',
code: 'FK',
- text: 'Fahrradmitnahme begrenzt möglich'
+ text: 'Fahrradmitnahme begrenzt möglich',
},
{type: 'hint', code: 'RM', text: 'Reservierung möglich'},
{type: 'hint', code: 'BR', text: 'Bordrestaurant'},
@@ -627,12 +627,12 @@ const oebbTrip = {
{
type: 'hint',
code: 'OA',
- text: 'Rollstuhlstellplatz - Voranmeldung unter +43 5 1717'
+ text: 'Rollstuhlstellplatz - Voranmeldung unter +43 5 1717',
},
{
type: 'hint',
code: 'EF',
- text: 'Fahrzeuggebundene Einstiegshilfe'
+ text: 'Fahrzeuggebundene Einstiegshilfe',
},
{type: 'hint', code: 'OC', text: 'rollstuhltaugliches WC'},
{type: 'hint', code: 'HD', text: 'Ruhezone'},
@@ -660,12 +660,12 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
+ onCall: false,
},
validFrom: '2020-05-18T00:00:00+02:00',
validUntil: '2020-06-30T23:59:00+02:00',
- modified: '2020-05-28T13:47:56+02:00'
- }
+ modified: '2020-05-28T13:47:56+02:00',
+ },
],
polyline: {
type: 'FeatureCollection',
@@ -718,7 +718,7 @@ const oebbTrip = {
type: 'location',
id: '8199506',
latitude: 48.139555,
- longitude: 16.435221
+ longitude: 16.435221,
},
products: {
nationalExpress: false,
@@ -730,10 +730,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(16.43523, 48.13958)
+ geometry: point(16.43523, 48.13958),
},
feature(point(16.43308, 48.14005)),
feature(point(16.4315, 48.14055)),
@@ -769,7 +769,7 @@ const oebbTrip = {
type: 'location',
id: '8103000',
latitude: 48.184564,
- longitude: 16.378526
+ longitude: 16.378526,
},
products: {
nationalExpress: true,
@@ -781,10 +781,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(16.37852, 48.18457)
+ geometry: point(16.37852, 48.18457),
},
feature(point(16.37616, 48.18488)),
feature(point(16.37427, 48.18495)),
@@ -809,7 +809,7 @@ const oebbTrip = {
type: 'location',
id: '8100514',
latitude: 48.174585,
- longitude: 16.333733
+ longitude: 16.333733,
},
products: {
nationalExpress: true,
@@ -821,10 +821,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(16.33373, 48.17459)
+ geometry: point(16.33373, 48.17459),
},
feature(point(16.3287, 48.17346)),
feature(point(16.32447, 48.17195)),
@@ -867,7 +867,7 @@ const oebbTrip = {
type: 'location',
id: '8199501',
latitude: 48.216493,
- longitude: 16.196431
+ longitude: 16.196431,
},
products: {
nationalExpress: false,
@@ -879,10 +879,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(16.19643, 48.2165)
+ geometry: point(16.19643, 48.2165),
},
feature(point(16.19266, 48.21819)),
feature(point(16.18994, 48.2197)),
@@ -910,7 +910,7 @@ const oebbTrip = {
type: 'location',
id: '8102059',
latitude: 48.295167,
- longitude: 15.996538
+ longitude: 15.996538,
},
products: {
nationalExpress: true,
@@ -922,10 +922,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(15.99654, 48.29517)
+ geometry: point(15.99654, 48.29517),
},
feature(point(15.97902, 48.29573)),
feature(point(15.94482, 48.29681)),
@@ -1006,7 +1006,7 @@ const oebbTrip = {
type: 'location',
id: '8100008',
latitude: 48.20825,
- longitude: 15.624681
+ longitude: 15.624681,
},
products: {
nationalExpress: true,
@@ -1018,10 +1018,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(15.62468, 48.20825)
+ geometry: point(15.62468, 48.20825),
},
feature(point(15.62117, 48.20838)),
feature(point(15.61982, 48.20854)),
@@ -1103,7 +1103,7 @@ const oebbTrip = {
type: 'location',
id: '8100006',
latitude: 48.207944,
- longitude: 15.216346
+ longitude: 15.216346,
},
products: {
nationalExpress: false,
@@ -1115,10 +1115,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(15.21635, 48.20794)
+ geometry: point(15.21635, 48.20794),
},
feature(point(15.20289, 48.20773)),
feature(point(15.18148, 48.20714)),
@@ -1164,7 +1164,7 @@ const oebbTrip = {
type: 'location',
id: '8100012',
latitude: 48.121477,
- longitude: 14.878199
+ longitude: 14.878199,
},
products: {
nationalExpress: true,
@@ -1176,10 +1176,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(14.8782, 48.12148)
+ geometry: point(14.8782, 48.12148),
},
feature(point(14.87397, 48.1214)),
feature(point(14.87116, 48.12117)),
@@ -1258,7 +1258,7 @@ const oebbTrip = {
type: 'location',
id: '8100009',
latitude: 48.17873,
- longitude: 14.522083
+ longitude: 14.522083,
},
products: {
nationalExpress: true,
@@ -1270,10 +1270,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(14.52208, 48.17873)
+ geometry: point(14.52208, 48.17873),
},
feature(point(14.51228, 48.19552)),
feature(point(14.51102, 48.198)),
@@ -1351,7 +1351,7 @@ const oebbTrip = {
type: 'location',
id: '8100013',
latitude: 48.29016,
- longitude: 14.291941
+ longitude: 14.291941,
},
products: {
nationalExpress: true,
@@ -1363,10 +1363,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(14.29194, 48.29016)
+ geometry: point(14.29194, 48.29016),
},
feature(point(14.28644, 48.28392)),
feature(point(14.28542, 48.28301)),
@@ -1388,7 +1388,7 @@ const oebbTrip = {
type: 'location',
id: '8101165',
latitude: 48.274015,
- longitude: 14.253871
+ longitude: 14.253871,
},
products: {
nationalExpress: false,
@@ -1400,10 +1400,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(14.25387, 48.27402)
+ geometry: point(14.25387, 48.27402),
},
feature(point(14.24863, 48.27396)),
feature(point(14.24531, 48.27367)),
@@ -1422,7 +1422,7 @@ const oebbTrip = {
type: 'location',
id: '8101389',
latitude: 48.257448,
- longitude: 14.209339
+ longitude: 14.209339,
},
products: {
nationalExpress: false,
@@ -1434,10 +1434,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(14.20934, 48.25745)
+ geometry: point(14.20934, 48.25745),
},
feature(point(14.18643, 48.24575)),
feature(point(14.15117, 48.2276)),
@@ -1452,7 +1452,7 @@ const oebbTrip = {
type: 'location',
id: '8101204',
latitude: 48.200996,
- longitude: 14.099491
+ longitude: 14.099491,
},
products: {
nationalExpress: false,
@@ -1464,10 +1464,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(14.09949, 48.201)
+ geometry: point(14.09949, 48.201),
},
feature(point(14.07166, 48.18672)),
feature(point(14.03896, 48.16978)),
@@ -1485,7 +1485,7 @@ const oebbTrip = {
type: 'location',
id: '8100014',
latitude: 48.166208,
- longitude: 14.027271
+ longitude: 14.027271,
},
products: {
nationalExpress: true,
@@ -1497,10 +1497,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(14.02727, 48.16621)
+ geometry: point(14.02727, 48.16621),
},
feature(point(14.02361, 48.1651)),
feature(point(14.01975, 48.16375)),
@@ -1522,7 +1522,7 @@ const oebbTrip = {
type: 'location',
id: '8199518',
latitude: 48.101198,
- longitude: 13.899058
+ longitude: 13.899058,
},
products: {
nationalExpress: false,
@@ -1534,10 +1534,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(13.90023, 48.10178)
+ geometry: point(13.90023, 48.10178),
},
feature(point(13.89709, 48.09997)),
feature(point(13.89427, 48.09856)),
@@ -1556,7 +1556,7 @@ const oebbTrip = {
type: 'location',
id: '8199519',
latitude: 48.094321,
- longitude: 13.872297
+ longitude: 13.872297,
},
products: {
nationalExpress: false,
@@ -1568,10 +1568,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(13.87004, 48.09435)
+ geometry: point(13.87004, 48.09435),
},
feature(point(13.84047, 48.09589)),
feature(point(13.83635, 48.09583)),
@@ -1585,7 +1585,7 @@ const oebbTrip = {
type: 'location',
id: '8101278',
latitude: 48.095471,
- longitude: 13.832529
+ longitude: 13.832529,
},
products: {
nationalExpress: false,
@@ -1597,10 +1597,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(13.83253, 48.09547)
+ geometry: point(13.83253, 48.09547),
},
feature(point(13.82899, 48.09485)),
feature(point(13.82521, 48.09386)),
@@ -1629,7 +1629,7 @@ const oebbTrip = {
type: 'location',
id: '8100017',
latitude: 48.012654,
- longitude: 13.720883
+ longitude: 13.720883,
},
products: {
nationalExpress: true,
@@ -1641,10 +1641,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(13.72088, 48.01266)
+ geometry: point(13.72088, 48.01266),
},
feature(point(13.71806, 48.00964)),
feature(point(13.71741, 48.00904)),
@@ -1672,7 +1672,7 @@ const oebbTrip = {
type: 'location',
id: '8100507',
latitude: 48.010002,
- longitude: 13.663936
+ longitude: 13.663936,
},
products: {
nationalExpress: true,
@@ -1684,10 +1684,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(13.66394, 48.01)
+ geometry: point(13.66394, 48.01),
},
feature(point(13.66038, 48.01116)),
feature(point(13.65788, 48.01184)),
@@ -1740,7 +1740,7 @@ const oebbTrip = {
type: 'location',
id: '8100508',
latitude: 47.99792,
- longitude: 13.489321
+ longitude: 13.489321,
},
products: {
nationalExpress: false,
@@ -1752,10 +1752,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(13.48932, 47.99792)
+ geometry: point(13.48932, 47.99792),
},
feature(point(13.4877, 47.99737)),
feature(point(13.48626, 47.997)),
@@ -1856,7 +1856,7 @@ const oebbTrip = {
type: 'location',
id: '8100020',
latitude: 47.966683,
- longitude: 13.239124
+ longitude: 13.239124,
},
products: {
nationalExpress: false,
@@ -1868,10 +1868,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(13.23912, 47.96669)
+ geometry: point(13.23912, 47.96669),
},
feature(point(13.23454, 47.96389)),
feature(point(13.23295, 47.96274)),
@@ -1886,7 +1886,7 @@ const oebbTrip = {
type: 'location',
id: '8100134',
latitude: 47.954512,
- longitude: 13.224714
+ longitude: 13.224714,
},
products: {
nationalExpress: true,
@@ -1898,10 +1898,10 @@ const oebbTrip = {
ferry: false,
subway: false,
tram: false,
- onCall: false
- }
+ onCall: false,
+ },
},
- geometry: point(13.22471, 47.95451)
+ geometry: point(13.22471, 47.95451),
},
feature(point(13.22338, 47.95317)),
feature(point(13.22247, 47.95247)),
@@ -2019,7 +2019,7 @@ const oebbTrip = {
feature(point(13.04872, 47.81824)),
feature(point(13.04627, 47.81381)),
feature(point(13.0456, 47.81285), salzburgHbf),
- ]
+ ],
},
}
diff --git a/test/fixtures/rejseplanen-trip.js b/test/fixtures/rejseplanen-trip.js
index 0a39cb098..991dcbfe8 100644
--- a/test/fixtures/rejseplanen-trip.js
+++ b/test/fixtures/rejseplanen-trip.js
@@ -16,7 +16,7 @@ const rejseplanenTrip = {
productName: 'IC',
mode: 'train',
product: 'national-train',
- operator: { type: 'operator', id: 'dsb', name: 'DSB' },
+ operator: {type: 'operator', id: 'dsb', name: 'DSB'},
},
origin: {
@@ -33,7 +33,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': true,
'local-train': true,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -58,7 +58,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': true,
'local-train': true,
- o: true,
+ 'o': true,
's-tog': false,
},
},
@@ -70,8 +70,8 @@ const rejseplanenTrip = {
arrivalPrognosisType: 'prognosed',
remarks: [
- { type: 'hint', code: 'RE', text: 'Reservierung empfohlen' },
- { type: 'hint', code: 'TD', text: 'Mulighed for internet' },
+ {type: 'hint', code: 'RE', text: 'Reservierung empfohlen'},
+ {type: 'hint', code: 'TD', text: 'Mulighed for internet'},
],
stopovers: [
@@ -90,7 +90,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': true,
'local-train': true,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -129,7 +129,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': false,
'local-train': true,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -161,7 +161,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': false,
'local-train': true,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -193,7 +193,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': false,
'local-train': true,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -225,7 +225,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': false,
'local-train': true,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -257,7 +257,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': true,
'local-train': false,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -289,7 +289,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': true,
'local-train': false,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -321,7 +321,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': true,
'local-train': false,
- o: false,
+ 'o': false,
's-tog': false,
},
},
@@ -353,7 +353,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': false,
'local-train': true,
- o: true,
+ 'o': true,
's-tog': false,
},
},
@@ -385,7 +385,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': false,
'local-train': true,
- o: true,
+ 'o': true,
's-tog': false,
},
},
@@ -417,7 +417,7 @@ const rejseplanenTrip = {
'national-train': true,
'national-train-2': true,
'local-train': true,
- o: true,
+ 'o': true,
's-tog': false,
},
},
diff --git a/test/fixtures/rsag-journey.js b/test/fixtures/rsag-journey.js
index a989770b6..4ee029f9c 100644
--- a/test/fixtures/rsag-journey.js
+++ b/test/fixtures/rsag-journey.js
@@ -17,8 +17,8 @@ const rsagJourneys = {
operator: {
type: 'operator',
id: 'db-regio-ag-nordost',
- name: 'DB Regio AG Nordost'
- }
+ name: 'DB Regio AG Nordost',
+ },
},
reachable: true,
currentLocation: {
@@ -38,17 +38,17 @@ const rsagJourneys = {
longitude: 12.131078,
},
products: {
- ice: true,
+ 'ice': true,
'ic-ec': true,
'long-distance-train': false,
'regional-train': true,
's-bahn': true,
- bus: false,
- ferry: false,
+ 'bus': false,
+ 'ferry': false,
'u-bahn': false,
- tram: false,
+ 'tram': false,
'on-call': false,
- }
+ },
},
departure: '2021-01-19T14:14:00+01:00',
plannedDeparture: '2021-01-19T14:14:00+01:00',
@@ -68,17 +68,17 @@ const rsagJourneys = {
longitude: 12.172833,
},
products: {
- ice: false,
+ 'ice': false,
'ic-ec': true,
'long-distance-train': false,
'regional-train': true,
's-bahn': true,
- bus: false,
- ferry: false,
+ 'bus': false,
+ 'ferry': false,
'u-bahn': false,
- tram: false,
+ 'tram': false,
'on-call': false,
- }
+ },
},
arrival: '2021-01-19T14:44:00+01:00',
plannedArrival: '2021-01-19T14:44:00+01:00',
diff --git a/test/fixtures/vbb-departures.js b/test/fixtures/vbb-departures.js
index 77200fca5..fd6139573 100644
--- a/test/fixtures/vbb-departures.js
+++ b/test/fixtures/vbb-departures.js
@@ -10,7 +10,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -19,7 +19,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -131,8 +131,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:44:00+02:00',
plannedWhen: '2021-10-12T17:44:00+02:00',
@@ -143,13 +143,13 @@ const vbbDepartures = [
direction: 'S Erkner Bhf',
origin: null,
destination: {
- type: "stop",
- id: "900310004",
+ type: 'stop',
+ id: '900310004',
stationDHID: 'de:12067:900310004',
- name: "S Erkner Bhf",
+ name: 'S Erkner Bhf',
location: {
- type: "location",
- id: "900310004",
+ type: 'location',
+ id: '900310004',
latitude: 52.428398,
longitude: 13.752246,
},
@@ -177,20 +177,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'DBS' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'DBS'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -199,14 +199,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
currentTripPosition: {
type: 'location',
@@ -225,7 +225,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -234,7 +234,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -346,8 +346,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:45:00+02:00',
plannedWhen: '2021-10-12T17:45:00+02:00',
@@ -370,19 +370,19 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'BVG' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
+ {type: 'hint', code: 'OPERATOR', text: 'BVG'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -391,24 +391,24 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
- type: "stop",
- id: "900005207",
+ type: 'stop',
+ id: '900005207',
stationDHID: 'de:11000:900005207',
- name: "Philharmonie Süd (Berlin)",
+ name: 'Philharmonie Süd (Berlin)',
location: {
- type: "location",
- id: "900005207",
+ type: 'location',
+ id: '900005207',
latitude: 52.508761,
longitude: 13.370025,
},
@@ -439,7 +439,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -448,7 +448,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -560,8 +560,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:45:00+02:00',
plannedWhen: '2021-10-12T17:45:00+02:00',
@@ -584,20 +584,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'BVG' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'BVG'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -606,24 +606,24 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
- type: "stop",
- id: "900079221",
+ type: 'stop',
+ id: '900079221',
stationDHID: 'de:11000:900079221',
- name: "S+U Hermannstr. (Berlin)",
+ name: 'S+U Hermannstr. (Berlin)',
location: {
- type: "location",
- id: "900079221",
+ type: 'location',
+ id: '900079221',
latitude: 52.467339,
longitude: 13.43143,
},
@@ -654,7 +654,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -663,7 +663,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -775,8 +775,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:45:00+02:00',
plannedWhen: '2021-10-12T17:45:00+02:00',
@@ -799,20 +799,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'BVG' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'BVG'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -821,14 +821,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -869,7 +869,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -878,7 +878,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -990,8 +990,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:45:00+02:00',
plannedWhen: '2021-10-12T17:45:00+02:00',
@@ -1014,20 +1014,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'DBS' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'DBS'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -1036,14 +1036,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -1084,7 +1084,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -1093,7 +1093,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -1205,8 +1205,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:47:00+02:00',
plannedWhen: '2021-10-12T17:47:00+02:00',
@@ -1229,20 +1229,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'DBS' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'DBS'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -1251,14 +1251,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -1299,7 +1299,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -1308,7 +1308,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -1420,8 +1420,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:48:00+02:00',
plannedWhen: '2021-10-12T17:48:00+02:00',
@@ -1444,20 +1444,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'DBS' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'DBS'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -1466,14 +1466,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -1514,7 +1514,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -1523,7 +1523,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -1635,8 +1635,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:49:00+02:00',
plannedWhen: '2021-10-12T17:49:00+02:00',
@@ -1659,20 +1659,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'DBS' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'DBS'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -1681,14 +1681,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -1729,7 +1729,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -1738,7 +1738,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -1850,8 +1850,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:50:00+02:00',
plannedWhen: '2021-10-12T17:50:00+02:00',
@@ -1874,20 +1874,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'BVG' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'BVG'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -1896,14 +1896,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -1944,7 +1944,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -1953,7 +1953,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -2065,8 +2065,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:50:00+02:00',
plannedWhen: '2021-10-12T17:50:00+02:00',
@@ -2089,20 +2089,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'BVG' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'BVG'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -2111,14 +2111,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -2159,7 +2159,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -2168,7 +2168,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -2280,8 +2280,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:51:00+02:00',
plannedWhen: '2021-10-12T17:51:00+02:00',
@@ -2304,19 +2304,19 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'BVG' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
+ {type: 'hint', code: 'OPERATOR', text: 'BVG'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -2325,14 +2325,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -2373,7 +2373,7 @@ const vbbDepartures = [
type: 'location',
id: '900100004',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
products: {
suburban: true,
@@ -2382,7 +2382,7 @@ const vbbDepartures = [
bus: true,
ferry: false,
express: false,
- regional: false
+ regional: false,
},
lines: [
{
@@ -2494,8 +2494,8 @@ const vbbDepartures = [
productName: 'Bus',
mode: 'bus',
product: 'bus',
- }
- ]
+ },
+ ],
},
when: '2021-10-12T17:51:00+02:00',
plannedWhen: '2021-10-12T17:51:00+02:00',
@@ -2518,20 +2518,20 @@ const vbbDepartures = [
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
remarks: [
- { type: 'hint', code: 'OPERATOR', text: 'DBS' },
- { type: 'hint', code: 'bf', text: 'barrierefrei' },
- { type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich' },
+ {type: 'hint', code: 'OPERATOR', text: 'DBS'},
+ {type: 'hint', code: 'bf', text: 'barrierefrei'},
+ {type: 'hint', code: 'FB', text: 'Fahrradmitnahme möglich'},
{
id: '118634',
type: 'warning',
summary: 'Gemeinsam sicher unterwegs - mit Abstand und medizinischer Maske (in Berlin: FFP2)!',
text: 'An Haltestellen und Bahnhöfen sowie in Fahrzeugen. Maskenmuffel riskieren mindestens 50 Euro.\n' +
'Weitere Informationen',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 100,
products: {
suburban: true,
@@ -2540,14 +2540,14 @@ const vbbDepartures = [
bus: true,
ferry: true,
express: true,
- regional: true
+ regional: true,
},
company: 'VBB',
- categories: [ 0 ],
+ categories: [0],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
- modified: '2021-06-12T07:43:36+02:00'
- }
+ modified: '2021-06-12T07:43:36+02:00',
+ },
],
origin: null,
destination: {
@@ -2576,7 +2576,7 @@ const vbbDepartures = [
latitude: 52.498604,
longitude: 13.467252,
},
- }
+ },
]
export {
diff --git a/test/fixtures/vbb-journeys.js b/test/fixtures/vbb-journeys.js
index 3c7905a82..460601bed 100644
--- a/test/fixtures/vbb-journeys.js
+++ b/test/fixtures/vbb-journeys.js
@@ -9,7 +9,7 @@ const vbbJourneys = [{
type: 'location',
id: '900042101',
latitude: 52.496581,
- longitude: 13.330616
+ longitude: 13.330616,
},
products: {
suburban: false,
@@ -29,7 +29,7 @@ const vbbJourneys = [{
type: 'location',
id: '900001201',
latitude: 52.536179,
- longitude: 13.343839
+ longitude: 13.343839,
},
products: {
suburban: true,
@@ -64,7 +64,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
direction: 'U Osloer Str. (Berlin)',
@@ -124,7 +124,7 @@ const vbbJourneys = [{
type: 'location',
id: '900001201',
latitude: 52.536179,
- longitude: 13.343839
+ longitude: 13.343839,
},
products: {
suburban: true,
@@ -144,7 +144,7 @@ const vbbJourneys = [{
type: 'location',
id: '900007102',
latitude: 52.548638,
- longitude: 13.388372
+ longitude: 13.388372,
},
products: {
suburban: true,
@@ -179,7 +179,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
direction: 'Ringbahn S 41',
@@ -229,7 +229,7 @@ const vbbJourneys = [{
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
- ],
+ ],
}, {
origin: {
type: 'stop',
@@ -239,7 +239,7 @@ const vbbJourneys = [{
type: 'location',
id: '900007102',
latitude: 52.548638,
- longitude: 13.388372
+ longitude: 13.388372,
},
products: {
suburban: true,
@@ -259,7 +259,7 @@ const vbbJourneys = [{
type: 'location',
id: '900350127',
latitude: 52.833668,
- longitude: 13.797031
+ longitude: 13.797031,
},
products: {
suburban: false,
@@ -314,7 +314,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'db-regio-ag',
- name: 'DB Regio AG'
+ name: 'DB Regio AG',
},
},
direction: 'Ostseebad Binz, Bahnhof',
@@ -336,7 +336,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'db-regio-ag',
- name: 'DB Regio AG'
+ name: 'DB Regio AG',
},
},
direction: 'Stralsund, Hauptbahnhof',
@@ -344,7 +344,7 @@ const vbbJourneys = [{
plannedWhen: '2020-12-07T18:22:00+01:00',
delay: null,
}],
- remarks: [
+ remarks: [
{
type: 'hint',
code: 'OPERATOR',
@@ -405,19 +405,19 @@ const vbbJourneys = [{
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
- ],
+ ],
}],
refreshToken: '¶HKI¶T$A=1@O=U Spichernstr. (Berlin)@L=900042101@a=128@$A=1@O=S+U Westhafen (Berlin)@L=900001201@a=128@$202012071408$202012071416$ U9$$1$$$$§T$A=1@O=S+U Westhafen (Berlin)@L=900001201@a=128@$A=1@O=S+U Gesundbrunnen Bhf (Berlin)@L=900007102@a=128@$202012071420$202012071425$ S41$$1$$$$§T$A=1@O=S+U Gesundbrunnen Bhf (Berlin)@L=900007102@a=128@$A=1@O=Eberswalde, Hauptbahnhof@L=900350127@a=128@$202012071352$202012071417$ICE 1710$$3$$$$',
cycle: {min: 7200},
remarks: [{
type: 'status',
code: 'text.realtime.connection.alternative.summary',
- text: 'Journey suggestion according to current traffic.'
+ text: 'Journey suggestion according to current traffic.',
}, {
type: 'status',
code: 'text.realtime.connection.alternative.detail',
- text: 'Journey suggestion according to current traffic situation. Please note the current real-time information.'
- }]
+ text: 'Journey suggestion according to current traffic situation. Please note the current real-time information.',
+ }],
},
{
type: 'journey',
@@ -430,7 +430,7 @@ const vbbJourneys = [{
type: 'location',
id: '900042101',
latitude: 52.496581,
- longitude: 13.330616
+ longitude: 13.330616,
},
products: {
suburban: false,
@@ -450,7 +450,7 @@ const vbbJourneys = [{
type: 'location',
id: '900001201',
latitude: 52.536179,
- longitude: 13.343839
+ longitude: 13.343839,
},
products: {
suburban: true,
@@ -485,7 +485,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
},
},
direction: 'U Osloer Str. (Berlin)',
@@ -494,7 +494,7 @@ const vbbJourneys = [{
departurePlatform: null,
plannedDeparturePlatform: null,
cycle: {min: 240, max: 300, nr: 26},
- remarks: [
+ remarks: [
{
type: 'hint',
code: 'OPERATOR',
@@ -535,7 +535,7 @@ const vbbJourneys = [{
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2020-11-04T11:22:50+01:00',
},
- ],
+ ],
}, {
origin: {
type: 'stop',
@@ -545,7 +545,7 @@ const vbbJourneys = [{
type: 'location',
id: '900001201',
latitude: 52.536179,
- longitude: 13.343839
+ longitude: 13.343839,
},
products: {
suburban: true,
@@ -565,7 +565,7 @@ const vbbJourneys = [{
type: 'location',
id: '900007102',
latitude: 52.548638,
- longitude: 13.388372
+ longitude: 13.388372,
},
products: {
suburban: true,
@@ -600,7 +600,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 's-bahn-berlin-gmbh',
- name: 'S-Bahn Berlin GmbH'
+ name: 'S-Bahn Berlin GmbH',
},
},
direction: 'Ringbahn S 41',
@@ -666,7 +666,7 @@ const vbbJourneys = [{
type: 'location',
id: '900007102',
latitude: 52.548638,
- longitude: 13.388372
+ longitude: 13.388372,
},
products: {
suburban: true,
@@ -686,7 +686,7 @@ const vbbJourneys = [{
type: 'location',
id: '900350127',
latitude: 52.833668,
- longitude: 13.797031
+ longitude: 13.797031,
},
products: {
suburban: false,
@@ -741,7 +741,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'db-regio-ag',
- name: 'DB Regio AG'
+ name: 'DB Regio AG',
},
},
direction: 'Tantow, Bahnhof',
@@ -763,7 +763,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'db-regio-ag',
- name: 'DB Regio AG'
+ name: 'DB Regio AG',
},
},
direction: 'Schwedt, Bahnhof',
@@ -785,7 +785,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'db-regio-ag',
- name: 'DB Regio AG'
+ name: 'DB Regio AG',
},
},
direction: 'Eberswalde, Hauptbahnhof',
@@ -807,7 +807,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'db-regio-ag',
- name: 'DB Regio AG'
+ name: 'DB Regio AG',
},
},
direction: 'Stralsund, Hauptbahnhof',
@@ -829,7 +829,7 @@ const vbbJourneys = [{
operator: {
type: 'operator',
id: 'db-regio-ag',
- name: 'DB Regio AG'
+ name: 'DB Regio AG',
},
},
direction: 'Szczecin, Glowny',
@@ -900,7 +900,7 @@ const vbbJourneys = [{
remarks: [{
type: 'status',
code: 'text.realtime.connection.cancelled',
- text: 'A section of this itinerary is cancelled or unusable.'
+ text: 'A section of this itinerary is cancelled or unusable.',
}],
}]
diff --git a/test/fixtures/vbb-on-demand-trip.js b/test/fixtures/vbb-on-demand-trip.js
index 32a5dfb7c..f714bb180 100644
--- a/test/fixtures/vbb-on-demand-trip.js
+++ b/test/fixtures/vbb-on-demand-trip.js
@@ -14,7 +14,7 @@ const vbbOnDemandTrip = {
operator: {
type: 'operator',
id: 'verkehrsgesellschaft-teltow-flaming-mbh',
- name: 'Verkehrsgesellschaft Teltow-Fläming mbH'
+ name: 'Verkehrsgesellschaft Teltow-Fläming mbH',
},
},
@@ -86,13 +86,13 @@ const vbbOnDemandTrip = {
},
company: 'VBB',
categories: [
- 0
+ 0,
],
validFrom: '2021-04-24T00:00:00+02:00',
validUntil: '2022-12-31T00:00:00+01:00',
modified: '2021-06-12T07:43:36+02:00',
- }
- ]
+ },
+ ],
}
export {
diff --git a/test/fixtures/vsn-departures.js b/test/fixtures/vsn-departures.js
index 2e2964e05..d2fcaa91b 100644
--- a/test/fixtures/vsn-departures.js
+++ b/test/fixtures/vsn-departures.js
@@ -30,7 +30,7 @@ const vsnDepartures = {
type: 'location',
id: '9013927',
latitude: 53.083478,
- longitude: 8.813833
+ longitude: 8.813833,
},
products: {
nationalExpress: true,
@@ -45,7 +45,7 @@ const vsnDepartures = {
anrufSammelTaxi: true,
},
isMeta: true,
- }
+ },
},
when: '2020-08-01T18:42:00+02:00',
plannedWhen: '2020-08-01T17:44:00+02:00',
diff --git a/test/fixtures/vsn-remarks.js b/test/fixtures/vsn-remarks.js
index 727a50536..a5051ab33 100644
--- a/test/fixtures/vsn-remarks.js
+++ b/test/fixtures/vsn-remarks.js
@@ -4,7 +4,7 @@ const vsnRemarks = [
type: 'warning',
summary: 'Hinweis zum Flughafenbus X15',
text: 'Der Flughafenbus X15 ist eine Linie der Regionalverkehr Münsterland GmbH (RVM). Es gilt der Westfalentarif. Infos gibt es online unter www.rvm-online.de sowie telefonisch unter der Rufnummer 0180 650 40 30.',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 6,
company: 'VOS',
products: {
@@ -17,16 +17,16 @@ const vsnRemarks = [
ferry: true,
subway: true,
tram: true,
- anrufSammelTaxi: true
+ anrufSammelTaxi: true,
},
- categories: [ 0 ],
+ categories: [0],
edges: [
{
- icoCrd: { x: 7875575, y: 52201492 },
+ icoCrd: {x: 7875575, y: 52201492},
icon: null,
fromLocation: null,
- toLocation: null
- }
+ toLocation: null,
+ },
],
events: [
{
@@ -34,8 +34,8 @@ const vsnRemarks = [
toLocation: null,
start: '2020-02-03T11:11:00+01:00',
end: '2020-12-13T00:00:00+01:00',
- sections: []
- }
+ sections: [],
+ },
],
affectedLines: [
{
@@ -43,12 +43,12 @@ const vsnRemarks = [
id: 'bus-x15',
fahrtNr: null,
name: 'Bus X15',
- public: true
- }
+ public: true,
+ },
],
validFrom: '2020-02-03T11:11:00+01:00',
validUntil: '2020-12-13T00:00:00+01:00',
- modified: '2020-02-03T11:24:29+01:00'
+ modified: '2020-02-03T11:24:29+01:00',
},
{
id: 'HIM_FREETEXT_9156',
@@ -57,7 +57,7 @@ const vsnRemarks = [
text: 'Aufgrund der Sperrung können die Haltestellen in Beverungen nicht bedient werden.\n' +
'Lauenförde-Beverungen\n' +
'Baustellenfahrplan Linie 556',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 6,
company: 'VSN',
products: {
@@ -70,16 +70,16 @@ const vsnRemarks = [
ferry: true,
subway: true,
tram: true,
- anrufSammelTaxi: true
+ anrufSammelTaxi: true,
},
- categories: [ 0 ],
+ categories: [0],
edges: [
{
- icoCrd: { x: 9395422, y: 51748714 },
+ icoCrd: {x: 9395422, y: 51748714},
icon: null,
fromLocation: null,
- toLocation: null
- }
+ toLocation: null,
+ },
],
events: [
{
@@ -87,8 +87,8 @@ const vsnRemarks = [
toLocation: null,
start: '2019-12-15T00:00:00+01:00',
end: '2020-12-12T23:59:00+01:00',
- sections: []
- }
+ sections: [],
+ },
],
affectedLines: [
{
@@ -96,19 +96,19 @@ const vsnRemarks = [
id: 'bus-554',
fahrtNr: null,
name: 'Bus 554',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-556',
fahrtNr: null,
name: 'Bus 556',
- public: true
- }
+ public: true,
+ },
],
validFrom: '2019-12-15T00:00:00+01:00',
validUntil: '2020-12-12T23:59:00+01:00',
- modified: '2019-12-09T13:55:14+01:00'
+ modified: '2019-12-09T13:55:14+01:00',
},
{
id: 'HIM_FREETEXT_9155',
@@ -117,7 +117,7 @@ const vsnRemarks = [
text: 'Aufgrund der Sperrung können die Haltestellen in Beverungen nicht bedient werden.\n' +
'Lauenförde-Beverungen\n' +
'Baustellenfahrplan Linie 554',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 6,
company: 'VSN',
products: {
@@ -130,16 +130,16 @@ const vsnRemarks = [
ferry: true,
subway: true,
tram: true,
- anrufSammelTaxi: true
+ anrufSammelTaxi: true,
},
- categories: [ 0 ],
+ categories: [0],
edges: [
{
- icoCrd: { x: 9435051, y: 51783147 },
+ icoCrd: {x: 9435051, y: 51783147},
icon: null,
fromLocation: null,
- toLocation: null
- }
+ toLocation: null,
+ },
],
events: [
{
@@ -147,8 +147,8 @@ const vsnRemarks = [
toLocation: null,
start: '2019-12-15T00:00:00+01:00',
end: '2020-12-12T23:59:00+01:00',
- sections: []
- }
+ sections: [],
+ },
],
affectedLines: [
{
@@ -156,26 +156,26 @@ const vsnRemarks = [
id: 'bus-509',
fahrtNr: null,
name: 'Bus 509',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-554',
fahrtNr: null,
name: 'Bus 554',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-556',
fahrtNr: null,
name: 'Bus 556',
- public: true
- }
+ public: true,
+ },
],
validFrom: '2019-12-15T00:00:00+01:00',
validUntil: '2020-12-12T23:59:00+01:00',
- modified: '2019-12-09T13:55:45+01:00'
+ modified: '2019-12-09T13:55:45+01:00',
},
{
id: 'HIM_FREETEXT_14527',
@@ -193,7 +193,7 @@ const vsnRemarks = [
'Haltestellenänderungen in Richtung Vegesack:\n' +
'(H) Wätjens Park > verlegt vor die Kreuzung Lüssumer Str./Zur Westpier\n' +
'(H) Margaretenallee > entfällt \n',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 6,
company: 'BSAG',
products: {
@@ -206,17 +206,17 @@ const vsnRemarks = [
ferry: false,
subway: false,
tram: false,
- anrufSammelTaxi: false
+ anrufSammelTaxi: false,
},
- categories: [ 0 ],
+ categories: [0],
events: [
{
fromLocation: null,
toLocation: null,
start: '2020-02-21T11:31:00+01:00',
end: '2020-06-30T23:59:00+02:00',
- sections: []
- }
+ sections: [],
+ },
],
affectedLines: [
{
@@ -224,33 +224,33 @@ const vsnRemarks = [
id: 'bus-91',
fahrtNr: null,
name: 'Bus 91',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-92',
fahrtNr: null,
name: 'Bus 92',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-94',
fahrtNr: null,
name: 'Bus 94',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-n7',
fahrtNr: null,
name: 'Bus N7',
- public: true
- }
+ public: true,
+ },
],
validFrom: '2020-02-21T11:31:00+01:00',
validUntil: '2020-06-30T23:59:00+02:00',
- modified: '2020-02-21T11:34:47+01:00'
+ modified: '2020-02-21T11:34:47+01:00',
},
{
id: 'HIM_FREETEXT_14525',
@@ -268,7 +268,7 @@ const vsnRemarks = [
'Haltestellenänderungen in Richtung Vegesack:\n' +
'(H) Wätjens Park > verlegt vor die Kreuzung Lüssumer Str./Zur Westpier\n' +
'(H) Margaretenallee > entfällt \n',
- icon: { type: 'HIM0', title: null },
+ icon: {type: 'HIM0', title: null},
priority: 6,
company: 'BSAG',
products: {
@@ -281,17 +281,17 @@ const vsnRemarks = [
ferry: false,
subway: false,
tram: false,
- anrufSammelTaxi: false
+ anrufSammelTaxi: false,
},
- categories: [ 0 ],
+ categories: [0],
events: [
{
fromLocation: null,
toLocation: null,
start: '2020-02-21T11:01:00+01:00',
end: '2020-06-30T23:59:00+02:00',
- sections: []
- }
+ sections: [],
+ },
],
affectedLines: [
{
@@ -299,34 +299,34 @@ const vsnRemarks = [
id: 'bus-91',
fahrtNr: null,
name: 'Bus 91',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-92',
fahrtNr: null,
name: 'Bus 92',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-94',
fahrtNr: null,
name: 'Bus 94',
- public: true
+ public: true,
},
{
type: 'line',
id: 'bus-n7',
fahrtNr: null,
name: 'Bus N7',
- public: true
- }
+ public: true,
+ },
],
validFrom: '2020-02-21T11:01:00+01:00',
validUntil: '2020-06-30T23:59:00+02:00',
- modified: '2020-02-21T13:31:05+01:00'
- }
+ modified: '2020-02-21T13:31:05+01:00',
+ },
]
export {
diff --git a/test/format/products-filter.js b/test/format/products-filter.js
index 9c0d9b7d8..506ad5bd2 100644
--- a/test/format/products-filter.js
+++ b/test/format/products-filter.js
@@ -5,24 +5,24 @@ const products = [
{
id: 'train',
bitmasks: [1, 2],
- default: true
+ default: true,
},
{
id: 'bus',
bitmasks: [4],
- default: true
+ default: true,
},
{
id: 'tram',
bitmasks: [8, 32],
- default: false
+ default: false,
},
]
const ctx = {
common: {},
opt: {},
- profile: {products}
+ profile: {products},
}
tap.test('formatProductsFilter works without customisations', (t) => {
@@ -31,20 +31,20 @@ tap.test('formatProductsFilter works without customisations', (t) => {
t.same(format(ctx, filter), {
type: 'PROD',
mode: 'INC',
- value: expected + ''
+ value: expected + '',
})
t.end()
})
tap.test('formatProductsFilter works with customisations', (t) => {
t.equal(+format(ctx, {
- bus: true
+ bus: true,
}).value, 1 | 2 | 4)
t.equal(+format(ctx, {
- bus: false
+ bus: false,
}).value, 1 | 2)
t.equal(+format(ctx, {
- tram: true
+ tram: true,
}).value, 1 | 2 | 4 | 8 | 32)
t.end()
})
diff --git a/test/lib/request.js b/test/lib/request.js
index c6295fdc1..7d39b2c4d 100644
--- a/test/lib/request.js
+++ b/test/lib/request.js
@@ -176,9 +176,9 @@ tap.test('checkIfResponseIsOk properly parses an unknown HAFAS errors', (t) => {
const freeze = (val) => {
if (
- 'object' === typeof val
- && val !== null
- && !Array.isArray(val)
+ 'object' === typeof val &&
+ val !== null &&
+ !Array.isArray(val)
) Object.freeze(val)
}
const ctx = {
diff --git a/test/parse/date-time.js b/test/parse/date-time.js
index cf7e95c6a..b19b88367 100644
--- a/test/parse/date-time.js
+++ b/test/parse/date-time.js
@@ -6,8 +6,8 @@ const ctx = {
opt: {},
profile: {
timezone: 'Europe/Berlin',
- locale: 'de-DE'
- }
+ locale: 'de-DE',
+ },
}
tap.test('date & time parsing returns a timestamp', (t) => {
@@ -46,7 +46,7 @@ tap.test('date & time parsing works with summer & winter time', (t) => {
tap.test('date & time parsing uses profile.timezone', (t) => {
const iso = parse({
...ctx,
- profile: {...ctx.profile, timezone: 'Europe/Moscow'}
+ profile: {...ctx.profile, timezone: 'Europe/Moscow'},
}, '20190819', '203000', undefined, false)
t.equal(iso, '2019-08-19T20:30:00+03:00')
t.end()
diff --git a/test/parse/hint.js b/test/parse/hint.js
index 9dbbac142..1917177c1 100644
--- a/test/parse/hint.js
+++ b/test/parse/hint.js
@@ -4,7 +4,7 @@ import {parseHint as parse} from '../../parse/hint.js'
const ctx = {
data: {},
opt: {},
- profile: {}
+ profile: {},
}
tap.test('parses hints correctly', (t) => {
@@ -12,43 +12,43 @@ tap.test('parses hints correctly', (t) => {
type: 'A',
code: 'bf',
prio: 123,
- txtN: 'some text'
+ txtN: 'some text',
}
const expected = {
type: 'hint',
code: 'bf',
- text: 'some text'
+ text: 'some text',
}
t.same(parse(ctx, input), expected)
t.same(parse(ctx, {
- ...input, type: 'I'
+ ...input, type: 'I',
}), expected)
// alternative trip
t.same(parse(ctx, {
- ...input, type: 'L', jid: 'trip id'
+ ...input, type: 'L', jid: 'trip id',
}), {
- ...expected, type: 'status', code: 'alternative-trip', tripId: 'trip id'
+ ...expected, type: 'status', code: 'alternative-trip', tripId: 'trip id',
})
// type: M
t.same(parse(ctx, {
- ...input, type: 'M', txtS: 'some summary'
+ ...input, type: 'M', txtS: 'some summary',
}), {
- ...expected, type: 'status', summary: 'some summary'
+ ...expected, type: 'status', summary: 'some summary',
})
// type: D
for (const type of ['D', 'U', 'R', 'N', 'Y']) {
t.same(parse(ctx, {...input, type}), {
- ...expected, type: 'status'
+ ...expected, type: 'status',
})
}
// .code via .icon
t.same(parse(ctx, {
- ...input, code: null, icon: {type: 'cancel'}
+ ...input, code: null, icon: {type: 'cancel'},
}), {...expected, code: 'cancelled'})
// invalid
diff --git a/test/parse/icon.js b/test/parse/icon.js
index 1d5ec6c24..5fff74f4a 100644
--- a/test/parse/icon.js
+++ b/test/parse/icon.js
@@ -4,69 +4,69 @@ import {parseIcon as parse} from '../../parse/icon.js'
const ctx = {
data: {},
opt: {},
- profile: {}
+ profile: {},
}
tap.test('parses icons correctly', (t) => {
const text = {
- "res": "BVG",
- "text": "Berliner Verkehrsbetriebe"
+ res: 'BVG',
+ text: 'Berliner Verkehrsbetriebe',
}
t.same(parse(ctx, text), {
type: 'BVG',
- title: 'Berliner Verkehrsbetriebe'
+ title: 'Berliner Verkehrsbetriebe',
})
const txtS = {
- "res": "PROD_BUS",
- "txtS": "18"
+ res: 'PROD_BUS',
+ txtS: '18',
}
t.same(parse(ctx, txtS), {
type: 'PROD_BUS',
- title: '18'
+ title: '18',
})
const txt = {
- "res": "RBB",
- "txt": "Regionalbus Braunschweig GmbH"
+ res: 'RBB',
+ txt: 'Regionalbus Braunschweig GmbH',
}
t.same(parse(ctx, txt), {
type: 'RBB',
- title: 'Regionalbus Braunschweig GmbH'
+ title: 'Regionalbus Braunschweig GmbH',
})
const noText = {
- "res": "attr_bike_r"
+ res: 'attr_bike_r',
}
t.same(parse(ctx, noText), {
type: 'attr_bike_r',
- title: null
+ title: null,
})
const withColor = {
- "res": "prod_sub_t",
- "fg": {
- "r": 255,
- "g": 255,
- "b": 255,
- "a": 255
+ res: 'prod_sub_t',
+ fg: {
+ r: 255,
+ g: 255,
+ b: 255,
+ a: 255,
+ },
+ bg: {
+ r: 0,
+ g: 51,
+ b: 153,
+ a: 255,
},
- "bg": {
- "r": 0,
- "g": 51,
- "b": 153,
- "a": 255
- }
}
t.same(parse(ctx, withColor), {
type: 'prod_sub_t',
title: null,
fgColor: {r: 255, g: 255, b: 255, a: 255},
- bgColor: {r: 0, g: 51, b: 153, a: 255}
+ bgColor: {r: 0, g: 51, b: 153, a: 255},
})
const empty = {
- "res": "Empty"
+ res: 'Empty',
}
t.equal(parse(ctx, empty), null)
diff --git a/test/parse/line.js b/test/parse/line.js
index fd30d2797..25d72ea09 100644
--- a/test/parse/line.js
+++ b/test/parse/line.js
@@ -6,13 +6,13 @@ const profile = {
products: [
{id: 'train', bitmasks: [1]},
{id: 'ferry', bitmasks: [2]},
- {id: 'bus', bitmasks: [4, 8]}
- ]
+ {id: 'bus', bitmasks: [4, 8]},
+ ],
}
const ctx = {
data: {},
opt: {},
- profile
+ profile,
}
tap.test('parses lines correctly', (t) => {
@@ -23,7 +23,7 @@ tap.test('parses lines correctly', (t) => {
num: 123,
// HAFAS endpoints commonly have these padded admin codes.
admin: 'foo---',
- }
+ },
}
const expected = {
type: 'line',
@@ -37,21 +37,21 @@ tap.test('parses lines correctly', (t) => {
t.same(parse(ctx, input), expected)
t.same(parse(ctx, {
- ...input, line: null, addName: input.line
+ ...input, line: null, addName: input.line,
}), expected)
t.same(parse(ctx, {
- ...input, line: null, name: input.line
+ ...input, line: null, name: input.line,
}), expected)
// no prodCtx.lineId
t.same(parse(ctx, {
- ...input, prodCtx: {...input.prodCtx, lineId: null}
+ ...input, prodCtx: {...input.prodCtx, lineId: null},
}), {
- ...expected, id: 'foo-line'
+ ...expected, id: 'foo-line',
})
// no prodCtx
t.same(parse(ctx, {
- ...input, prodCtx: undefined
+ ...input, prodCtx: undefined,
}), {
...omit(expected, [
'adminCode',
diff --git a/test/parse/location.js b/test/parse/location.js
index 0896a18a9..a8f6636b4 100644
--- a/test/parse/location.js
+++ b/test/parse/location.js
@@ -5,7 +5,7 @@ import {parseLocation as parse} from '../../parse/location.js'
const profile = {
parseLocation: parse,
parseStationName: (_, name) => name.toLowerCase(),
- parseProductsBitmask: (_, bitmask) => [bitmask]
+ parseProductsBitmask: (_, bitmask) => [bitmask],
}
const ctx = {
@@ -15,7 +15,7 @@ const ctx = {
subStops: true,
entrances: true,
},
- profile
+ profile,
}
tap.test('parses an address correctly', (t) => {
@@ -23,7 +23,7 @@ tap.test('parses an address correctly', (t) => {
type: 'A',
name: 'Foo street 3',
lid: 'a=b@L=some%20id',
- crd: {x: 13418027, y: 52515503}
+ crd: {x: 13418027, y: 52515503},
}
const address = parse(ctx, input)
@@ -32,7 +32,7 @@ tap.test('parses an address correctly', (t) => {
id: 'some id',
address: 'Foo street 3',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
})
t.end()
@@ -43,7 +43,7 @@ tap.test('parses a POI correctly', (t) => {
type: 'P',
name: 'some POI',
lid: 'a=b@L=some%20id',
- crd: {x: 13418027, y: 52515503}
+ crd: {x: 13418027, y: 52515503},
}
const poi = parse(ctx, input)
@@ -53,7 +53,7 @@ tap.test('parses a POI correctly', (t) => {
id: 'some id',
name: 'some POI',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
})
const withExtId = parse(ctx, {...input, extId: 'some ext id'})
@@ -70,7 +70,7 @@ const fooBusStop = {
name: 'Foo bus stop',
lid: 'a=b@L=foo%20stop',
crd: {x: 13418027, y: 52515503},
- pCls: 123
+ pCls: 123,
}
tap.test('parses a stop correctly', (t) => {
@@ -83,9 +83,9 @@ tap.test('parses a stop correctly', (t) => {
type: 'location',
id: 'foo stop',
latitude: 52.515503,
- longitude: 13.418027
+ longitude: 13.418027,
},
- products: [123]
+ products: [123],
})
const withoutLoc = parse(ctx, omit(fooBusStop, ['crd']))
@@ -100,9 +100,9 @@ tap.test('parses a stop correctly', (t) => {
const lineA = {id: 'a'}
const withLines = parse({
...ctx,
- opt: {...ctx.opt, linesOfStops: true}
+ opt: {...ctx.opt, linesOfStops: true},
}, {
- ...fooBusStop, lines: [lineA]
+ ...fooBusStop, lines: [lineA],
})
t.same(withLines.lines, [lineA])
@@ -113,7 +113,7 @@ tap.test('falls back to coordinates from `lid`', (t) => {
const {location} = parse(ctx, {
type: 'S',
name: 'foo',
- lid: 'a=b@L=foo@X=12345678@Y=23456789'
+ lid: 'a=b@L=foo@X=12345678@Y=23456789',
})
t.ok(location)
t.equal(location.latitude, 23.456789)
@@ -129,7 +129,7 @@ tap.test('handles recursive references properly', (t) => {
crd: {x: 22222222, y: 11111111},
// This doesn't make sense semantically, but we test if
// `parseLocation` falls into an endless recursive loop.
- stopLocL: [1]
+ stopLocL: [1],
}
const northernInput = {
type: 'S',
@@ -138,7 +138,7 @@ tap.test('handles recursive references properly', (t) => {
crd: {x: 44444444, y: 33333333},
// This doesn't make sense semantically, but we test if
// `parseLocation` falls into an endless recursive loop.
- entryLocL: [0]
+ entryLocL: [0],
}
const common = {locL: [southernInput, northernInput]}
const _ctx = {...ctx, res: {common}}
@@ -150,8 +150,8 @@ tap.test('handles recursive references properly', (t) => {
location: {
type: 'location',
id: 'northern-platform',
- latitude: 33.333333, longitude: 44.444444
- }
+ latitude: 33.333333, longitude: 44.444444,
+ },
}
const southernExpected = {
type: 'station',
@@ -160,20 +160,20 @@ tap.test('handles recursive references properly', (t) => {
location: {
type: 'location',
id: 'southern-platform',
- latitude: 11.111111, longitude: 22.222222
+ latitude: 11.111111, longitude: 22.222222,
},
- stops: [northernExpected]
+ stops: [northernExpected],
}
const {entrances} = parse(_ctx, {
...fooBusStop,
- entryLocL: [0]
+ entryLocL: [0],
})
t.same(entrances, [southernExpected.location])
const {type, stops} = parse(_ctx, {
...fooBusStop,
- stopLocL: [0]
+ stopLocL: [0],
})
t.equal(type, 'station')
t.same(stops, [southernExpected])
diff --git a/test/parse/operator.js b/test/parse/operator.js
index 4036099b3..2de78b3af 100644
--- a/test/parse/operator.js
+++ b/test/parse/operator.js
@@ -4,19 +4,19 @@ import {parseOperator as parse} from '../../parse/operator.js'
const ctx = {
data: {},
opt: {},
- profile: {}
+ profile: {},
}
tap.test('parses an operator correctly', (t) => {
const op = {
- "name": "Berliner Verkehrsbetriebe",
- "icoX": 1,
- "id": "Berliner Verkehrsbetriebe"
+ name: 'Berliner Verkehrsbetriebe',
+ icoX: 1,
+ id: 'Berliner Verkehrsbetriebe',
}
t.same(parse(ctx, op), {
type: 'operator',
id: 'berliner-verkehrsbetriebe',
- name: 'Berliner Verkehrsbetriebe'
+ name: 'Berliner Verkehrsbetriebe',
})
t.end()
})
diff --git a/test/parse/warning.js b/test/parse/warning.js
index b1083db51..a5c264ba3 100644
--- a/test/parse/warning.js
+++ b/test/parse/warning.js
@@ -4,12 +4,12 @@ import merge from 'lodash/merge.js'
const profile = {
parseProductsBitmask: (_, bitmask) => [bitmask],
- parseDateTime: (_, date, time) => date + ':' + time
+ parseDateTime: (_, date, time) => date + ':' + time,
}
const ctx = {
data: {},
opt: {},
- profile
+ profile,
}
tap.test('parses warnings correctly', (t) => {
@@ -19,7 +19,7 @@ tap.test('parses warnings correctly', (t) => {
text: 'some long
text
body', // todo: null
icon: {type: 'HimWarn'}, // todo: null
prio: 123,
- cat: 1
+ cat: 1,
}
const expected = {
id: 'some warning ID',
@@ -28,7 +28,7 @@ tap.test('parses warnings correctly', (t) => {
text: 'some long\ntext\n\nbody',
icon: {type: 'HimWarn'},
priority: 123,
- category: 1
+ category: 1,
}
t.same(parse(ctx, input), expected)
@@ -41,12 +41,12 @@ tap.test('parses warnings correctly', (t) => {
// without icon
t.same(parse(ctx, {...input, icon: null}), {
- ...expected, type: 'warning', icon: null
+ ...expected, type: 'warning', icon: null,
})
// with products
t.same(parse(ctx, {...input, prod: 123}), {
- ...expected, products: [123]
+ ...expected, products: [123],
})
// validFrom, validUntil, modified
@@ -59,7 +59,7 @@ tap.test('parses warnings correctly', (t) => {
...expected,
validFrom: '20190101:094020',
validUntil: '20190101:114020',
- modified: '20190101:084020'
+ modified: '20190101:084020',
})
// events
@@ -109,7 +109,7 @@ tap.test('parses warnings correctly', (t) => {
events: [{
start: '20211111:000000',
end: '20211221:000000',
- }]
+ }],
}))
// todo: .edges
diff --git a/test/parse/when.js b/test/parse/when.js
index 982fca1b3..656ab8df0 100644
--- a/test/parse/when.js
+++ b/test/parse/when.js
@@ -3,14 +3,14 @@ import {parseWhen as parse} from '../../parse/when.js'
const profile = {
parseDateTime: ({profile}, date, time, tzOffset, timestamp = false) => {
- if (timestamp) return ((date + '' + time) - tzOffset * 60) * 1000
+ if (timestamp) return (date + '' + time - tzOffset * 60) * 1000
return date + ':' + time
- }
+ },
}
const ctx = {
data: {},
opt: {},
- profile
+ profile,
}
tap.test('parseWhen works correctly', (t) => {
@@ -21,21 +21,21 @@ tap.test('parseWhen works correctly', (t) => {
const expected = {
when: '20190606:163130',
plannedWhen: '20190606:163000',
- delay: 130 // seconds
+ delay: 130, // seconds
}
t.same(parse(ctx, date, timeS, timeR, tzOffset), expected)
// no realtime data
t.same(parse(ctx, date, timeS, null, tzOffset), {
- ...expected, when: expected.plannedWhen, delay: null
+ ...expected, when: expected.plannedWhen, delay: null,
})
// cancelled
t.same(parse(ctx, date, timeS, timeR, tzOffset, true), {
...expected,
when: null,
- prognosedWhen: expected.when
+ prognosedWhen: expected.when,
})
t.end()
})
diff --git a/test/retry.js b/test/retry.js
index 0ba287a10..4bc400357 100644
--- a/test/retry.js
+++ b/test/retry.js
@@ -25,32 +25,32 @@ tap.test('withRetrying works', (t) => {
if (calls < 4) return Promise.reject(new Error('generic error'))
return {
res: [],
- common: {}
+ common: {},
}
}
const profile = withRetrying({
...vbbProfile,
- request: failingRequest
+ request: failingRequest,
}, {
retries: 3,
minTimeout: 100,
factor: 2,
- randomize: false
+ randomize: false,
})
const client = createClient(profile, userAgent)
t.plan(2 + 4)
client.departures(spichernstr, {duration: 1})
- .then((res) => {
- const {
- departures: deps,
- realtimeDataUpdatedAt,
- } = res
- t.same(deps, [], 'resolved with invalid value')
- t.equal(realtimeDataUpdatedAt, null, 'resolved with invalid value')
- })
- .catch(t.ifError)
+ .then((res) => {
+ const {
+ departures: deps,
+ realtimeDataUpdatedAt,
+ } = res
+ t.same(deps, [], 'resolved with invalid value')
+ t.equal(realtimeDataUpdatedAt, null, 'resolved with invalid value')
+ })
+ .catch(t.ifError)
setTimeout(() => t.equal(calls, 1), 50) // buffer
setTimeout(() => t.equal(calls, 2), 200) // 100 + buffer
diff --git a/test/rsag-journey.js b/test/rsag-journey.js
index de9ebb474..698fa27ae 100644
--- a/test/rsag-journey.js
+++ b/test/rsag-journey.js
@@ -20,7 +20,7 @@ const opt = {
subStops: true,
entrances: true,
remarks: false,
- products: {}
+ products: {},
}
tap.test('parses a journey correctly (RSAG)', (t) => {
diff --git a/test/throttle.js b/test/throttle.js
index 706020a0c..509e81d13 100644
--- a/test/throttle.js
+++ b/test/throttle.js
@@ -19,13 +19,13 @@ tap.test('withThrottling works', {timeout: 3000}, (t) => {
calls++
return {
res: depsRes,
- common: ctx.profile.parseCommon({...ctx, res: depsRes})
+ common: ctx.profile.parseCommon({...ctx, res: depsRes}),
}
}
const profile = withThrottling({
...vbbProfile,
- request: mockedRequest
+ request: mockedRequest,
}, 2, 1000)
const client = createClient(profile, ua)
diff --git a/test/vbb-departures.js b/test/vbb-departures.js
index 1d5f8072c..1050fc448 100644
--- a/test/vbb-departures.js
+++ b/test/vbb-departures.js
@@ -21,7 +21,7 @@ const opt = {
stopovers: true,
includeRelatedStations: true,
when: '2021-10-12T17:42:00+02:00',
- products: {}
+ products: {},
}
tap.test('parses a departure correctly (VBB)', (t) => {
diff --git a/throttle.js b/throttle.js
index 2d4c6dc9f..1789452a2 100644
--- a/throttle.js
+++ b/throttle.js
@@ -7,7 +7,7 @@ const withThrottling = (profile, limit = 5, interval = 1000) => {
return {
...profile,
- request: throttle({limit, interval})(request)
+ request: throttle({limit, interval})(request),
}
}
diff --git a/tools/debug-cli/cli.js b/tools/debug-cli/cli.js
index b6ee4c69b..d89af2bdb 100755
--- a/tools/debug-cli/cli.js
+++ b/tools/debug-cli/cli.js
@@ -11,7 +11,9 @@ const showError = (err) => {
const toString = val => val + ''
const parseJsObject = val => {
const res = eval(`(${val})`)
- return res && 'object' === typeof res ? res : {}
+ return res && 'object' === typeof res
+ ? res
+ : {}
}
const methodsAndTheirArgs = [
@@ -60,10 +62,11 @@ const fnName = args[1]
const parsedArgs = args.slice(2).map((arg, i) => {
const parser = methodsAndTheirArgs.find(([_fnName, _i]) => _fnName === fnName && _i === i)
- return parser ? parser[2](arg) : arg
-})
-
-;(async () => {
+ return parser
+ ? parser[2](arg)
+ : arg
+});
+(async () => {
const {profile} = await import(`../../p/${profileName}/index.js`)
const client = createClient(profile, 'hafas-client debug CLI')
@@ -73,4 +76,4 @@ const parsedArgs = args.slice(2).map((arg, i) => {
const res = await fn(...parsedArgs)
process.stdout.write(JSON.stringify(res) + '\n')
})()
-.catch(showError)
+ .catch(showError)
diff --git a/tools/endpoint-hci-version/cli.js b/tools/endpoint-hci-version/cli.js
index 665dac5f3..d3dfe2035 100755
--- a/tools/endpoint-hci-version/cli.js
+++ b/tools/endpoint-hci-version/cli.js
@@ -35,9 +35,8 @@ Examples:
}
const profileName = args[0]
-const silent = flags.silent
-
-;(async () => {
+const silent = flags.silent;
+(async () => {
const {profile} = await import(`../../p/${profileName}/index.js`)
const client = createClient(
@@ -53,7 +52,7 @@ const silent = flags.silent
if (silent) console.log(v)
else console.log(v + ' reported as the endpoint version ✔︎')
})()
-.catch((err) => {
- console.error(err)
- process.exit(1)
-})
+ .catch((err) => {
+ console.error(err)
+ process.exit(1)
+ })