(a) Whenever a person is brought into this State on an extradition warrant or upon waiver of extradition to be tried for an offense within this State and is subsequently released from custody without being convicted of the offense for which he was brought into this State to be tried, it shall be the duty of the peace officer, sheriff or other official from whom he was released from custody to provide or offer the person transportation to the nearest public transportation facility if the municipality or county in which he was held does not have a public transportation facility.
     (b) As used in this Section:
        (1) "Public transportation facility" means a terminal
    
or other place where one may obtain public transportation; and
        (2) "Public transportation" means the transportation
    
or conveyance of persons by means available to the general public, except for transportation by automobiles not used for conveyance of the general public as passengers.