CanalPlanAC

Stop codes

When a user clicks on "stop here" in the planning menu, the values are kept as a string of codes. The code to handle these on input is in can_js/enter_route.js (Breakout_Stoppings_Values and Store_Stoppings_Values) and for processing there is Parse_Stop_Codes in cgi-bin/includes/general.can. There is no corresponding "encode" as they are never set other than from the user input screen.

The stored string consists of a comma separated list of single letter codes followed by a colon and a value.

code value meaning
D number stop for that number of nights
N number stop on that numbered night
H number stop for that many hours
B "yes" the hours are before the overnight
A "yes" the hours are after the overnight
L "yes" only insert nights after this one
S "yes" my service as a trader is available during this stop