Currently the user types the to and from locations into a StringField.
As there is a finite list of valid station 3 letter codes, these fields should instead be a SelectField.
Currently invalid values are not detected and an HTTP POST failure to the HSP API occurs.
It would also be good to use a plugin such as Chosen to make the selection nicer for the user.
Currently the user types the to and from locations into a StringField. As there is a finite list of valid station 3 letter codes, these fields should instead be a SelectField. Currently invalid values are not detected and an HTTP POST failure to the HSP API occurs. It would also be good to use a plugin such as Chosen to make the selection nicer for the user.