The ranking calculated the index by analyzing each location for several factors , including bicycle usage , weather , cycling facilities , safety , investment and infrastructure quality , among other factors .