MCPcopy Create free account
hub / github.com/comuline/api / fixName

Function fixName

src/sync/schedule.ts:100–117  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

98 let [origin, destination] = d.route_name.split("-")
99
100 const fixName = (name: string) => {
101 switch (name) {
102 case "TANJUNGPRIUK":
103 return "TANJUNG PRIOK"
104 case "JAKARTAKOTA":
105 return "JAKARTA KOTA"
106 case "KAMPUNGBANDAN":
107 return "KAMPUNG BANDAN"
108 case "TANAHABANG":
109 return "TANAH ABANG"
110 case "PARUNGPANJANG":
111 return "PARUNG PANJANG"
112 case "BANDARASOEKARNOHATTA":
113 return "BANDARA SOEKARNO HATTA"
114 default:
115 return name
116 }
117 }
118
119 origin = fixName(origin)
120 destination = fixName(destination)

Callers 1

syncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected