Influencing factors between rural and urban living