Linking radio buttons

Good day i need help how do i link radio buttons with button to generate specific value
e.g Bus service trip planner where a user his current location and the destination using radio buttons then click on generate button to get specific data for selected locations(Areas)