The assessment of railroad bridges spanning any river that constitutes a boundary of the state shall be allocated to the counties in which they are located, and the local tax derived therefrom shall be applied to each city, county, or taxing district in which the bridges are located.