utils

package
v0.0.0-...-36cf4ee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStationMetadataFromCode

func GetStationMetadataFromCode(stationCode string) (string, int64, error)

GetStationMetadataFromCode returns the train line name and station code in integer format Assumes that the train line is a 2 character value which is a prefix of stationcode and stationcode is always a number The logic can be enhanced further by either having another field for trainline or add these constraints on stationcode naming

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL