scripts/database.js
/**
 * Determine the end location for the journey and all necessary data for creating the Option Item
 * @param {Object} dbRecord A JSON object holding the data of the final row in a journey
 * @param {String} startLocation All text that has been identified as being part of this Option Item's Text component so far
 *				   (just the route start location)
 */
Determine the end location for the journey and all necessary data for creating the Option Item
@param {Object} dbRecord A JSON object holding the data of the final row in a journey
@param {String} startLocation All text that has been identified as being part of this Option Item's Text component so far
(just the route start location)
Determine the end location for the journey and all necessary data for creating the Option Item @param { Object } dbRecord A JSON object holding the data of the final row in a journey @param { String } startLocation All text that has been identified as being part of this Option Item ' s Text component so far ( just the route start location )
function finalizeRouteMenuOptionData(dbRecord, startLocation) {
	var menuSection = "route";
	var endLocation = useNameOrCoordinates(dbRecord);
	var optGroup = determineMenuItemOptGroup(dbRecord["Type"], menuSection);
	setRouteOptGroupValAndText(startLocation, endLocation, optGroup);
}
function finalizeRouteMenuOptionData ( dbRecord , startLocation ) { var menuSection = "route" ; var endLocation = useNameOrCoordinates ( dbRecord ) ; var optGroup = determineMenuItemOptGroup ( dbRecord [ "Type" ] , menuSection ) ; setRouteOptGroupValAndText ( startLocation , endLocation , optGroup ) ; }
Determine the end location for the journey and all necessary data for creating the Option Item
 @param {Object} dbRecord A JSON object holding the data of the final row in a journey
 @param {String} startLocation All text that has been identified as being part of this Option Item's Text component so far
                                 (just the route start location)
Determine the end location for the journey and all necessary data for creating the Option Item @param { Object } dbRecord A JSON object holding the data of the final row in a journey @param { String } startLocation All text that has been identified as being part of this Option Item ' s Text component so far ( just the route start location )