mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 23:29:35 +02:00
16 lines
282 B
JavaScript
16 lines
282 B
JavaScript
'use strict'
|
|
|
|
const formatLocationIdentifier = require('./location-identifier')
|
|
|
|
const formatStation = (id) => {
|
|
return {
|
|
type: 'S', // station
|
|
// todo: name necessary?
|
|
lid: formatLocationIdentifier({
|
|
A: '1', // station?
|
|
L: id
|
|
})
|
|
}
|
|
}
|
|
|
|
module.exports = formatStation
|