mirror of
https://github.com/public-transport/db-vendo-client.git
synced 2025-02-23 15:19:35 +02:00
17 lines
328 B
JavaScript
17 lines
328 B
JavaScript
import {formatLocationIdentifier} from './location-identifier.js';
|
||
|
||
const formatStation = (id) => {
|
||
return {
|
||
type: 'S', // station
|
||
// todo: name necessary?
|
||
lid: formatLocationIdentifier({
|
||
A: '1', // station?
|
||
L: id,
|
||
// todo: `p` – timestamp of when the ID was obtained
|
||
}),
|
||
};
|
||
};
|
||
|
||
export {
|
||
formatStation,
|
||
};
|