This commit is contained in:
parent
cd7f98171b
commit
bfcd15886e
@ -138,7 +138,7 @@ func getRealTime(code string, stations []string) ([]IDFMMonitoredStopVisit, erro
|
||||
func declareSchedulesRoutes(router *gin.RouterGroup) {
|
||||
router.GET("/schedules/:type/:code/:station/:way", func(c *gin.Context) {
|
||||
t := convertLineType(string(c.Param("type")))
|
||||
code := searchLine(t, string(c.Param("code")))
|
||||
code := searchLine(t, convertLineCode(string(c.Param("code"))))
|
||||
station := string(c.Param("station"))
|
||||
way := string(c.Param("way"))
|
||||
|
||||
|
@ -42,7 +42,7 @@ func effectGradation(effect navitia.Effect) int {
|
||||
|
||||
func declareTrafficRoutes(router *gin.RouterGroup) {
|
||||
router.GET("/traffic/:type/:code", func(c *gin.Context) {
|
||||
code := searchLine(convertLineType(string(c.Param("type"))), string(c.Param("code")))
|
||||
code := searchLine(convertLineType(string(c.Param("type"))), convertLineCode(string(c.Param("code"))))
|
||||
|
||||
rurl, err := url.JoinPath(IDFM_BASEURL, "v2/navitia/lines", "line:IDFM:"+code, "line_reports")
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user