scripts/routeCreation.js
/**
 * Tokenize a route into two separate values - a "From" Destination and a "To" Destination
 * @param {Object} routePoints An object to store the From and To values in
 * @param {String} route The string of route points to tokenize
 * @return {Object} The object storing the separated From and To values
 */
Tokenize a route into two separate values - a "From" Destination and a "To" Destination
@param {Object} routePoints An object to store the From and To values in
@param {String} route The string of route points to tokenize
@return {Object} The object storing the separated From and To values
Tokenize a route into two separate values - a " From " Destination and a " To " Destination @param { Object } routePoints An object to store the From and To values in @param { String } route The string of route points to tokenize @return { Object } The object storing the separated From and To values
function tokenizeRouteValue(routePoints, route) {
	var routeTokens = route.split(";");
	routePoints.from = routeTokens[0];
	routePoints.to = routeTokens[1];
	return routePoints;
}
function tokenizeRouteValue ( routePoints , route ) { var routeTokens = route . split ( ";" ) ; routePoints . from = routeTokens [ 0 ] ; routePoints . to = routeTokens [ 1 ] ; return routePoints ; }
Tokenize a route into two separate values - a "From" Destination and a "To" Destination
 @param {Object} routePoints An object to store the From and To values in
 @param {String} route The string of route points to tokenize
 @return {Object} The object storing the separated From and To values
Tokenize a route into two separate values - a " From " Destination and a " To " Destination @param { Object } routePoints An object to store the From and To values in @param { String } route The string of route points to tokenize @return { Object } The object storing the separated From and To values
/* Untokenized route values are not allowed to have semicolons in them unless put there by
	 * finalizeRouteMenuOptionData(). finalizeRouteMenuOptionData() sets the value attribute of
	 * a route HTML OptGroup Option Item to be two values separated by a semicolon.
	 *
	 * For custom routes, users are not allowed to enter semicolons as part of the Destination Name.
	 *
	 * As such, we can always assume there will be only one semicolon in the second argument passed to
	 * this function, and thus exactly two tokens will be returned from executing route.split() */