) then
					voice_settings[k] = v
				end
			end
		else
			voice_settings[k] = v
		end
	end

	if gender == "f" then
		voice_settings["gender"] = "female"
	elseif gender == "m" then
		voice_settings["gender"] = "male"
	end

	for k,v in pairs(voice_settings) do
		if v == "true" then
			voice_settings[k] = true
		elseif v == "false" then
			voice_settings[k] = false
		end
	end

	
	use_streetnames = voice_settings["streetnames"]
	use_signposts = voice_settings["signposts"]
	use_nguidance = voice_settings["nguidance"]
	use_trafficlights = voice_settings["trafficlights"]
	use_phoneticdata = voice_settings["phoneticdata"]
	use_speedwarning = voice_settings["speedwarning"]
	use_safetyspotwarning = voice_settings["safetyspotwarning"]
	use_trafficwarning = voice_settings["trafficwarning"]
	use_gpswarning = voice_settings["gpswarning"]

end

function get_itinerary_output()

	result_sentence = ""
	cleanup( )
	preparations( )

	if instruction_format == "html" then
		useHTML = true
	end

	if itinerary ~= nil then
		if itinerary_warnings[itinerary.id] ~= nil then
			result_sentence = set_result( "ITINERARY" )
		end
	end

	table.insert( result_list, result_sentence)

end

function get_public_transport()

	result_id = {"p","t","0","0","0","0","0","0"}	

	if maneuver_1.id == "ENTER_STATION" then
		set_result_id(3, "a")
		
		if maneuver_1.company_name ~= "" and maneuver_1.company_name ~= nil then
			station_company_name = maneuver_1.company_name
		elseif maneuver_1.transit_type ~= "" and maneuver_1.transit_type ~= nil then
			if transit_type_list[maneuver_1.transit_type][1] ~= nil and transit_types ~= nil then
				station_company_name = transit_types[transit_type_list[maneuver_1.transit_type][1]]
			end
		end
		if maneuver_1.transit_type ~= "" and maneuver_1.transit_type ~= nil then
			if transit_type_list[maneuver_1.transit_type][2] ~= nil and transit_types ~= nil then
				station_type = transit_types[transit_type_list[maneuver_1.transit_type][2]]
			end
			if transit_type_list[maneuver_1.transit_type][1] ~= nil and transit_types ~= nil then
				transit_type = transit_types[transit_type_list[maneuver_1.transit_type][1]]
			end
		end
		
		if maneuver_1.station_name ~= "" and maneuver_1.station_name ~= nil then
			station_name = maneuver_1.station_name
		end
		
		if maneuver_1.line_name ~= "" and maneuver_1.line_name ~= nil then
			set_result_id(4, "a")
			line_name = maneuver_1.line_name
		else
			set_result_id(4, "b")
		end
		
		if maneuver_1.line_destination ~= "" and maneuver_1.line_destination ~= nil then
			set_result_id(5, "a")
			line_destination = maneuver_1.line_destination
		end

	elseif maneuver_1.id == "ENTER_LINE" then
		set_result_id(3, "b")
		
		if maneuver_1.line_name ~= "" and maneuver_1.line_name ~= nil then
			set_result_id(4, "a")
			line_name = maneuver_1.line_name
		else
			set_result_id(4, "b")
		end
		
		if maneuver_1.line_destination ~= "" and maneuver_1.line_destination ~= nil then
			set_result_id(5, "a")