Loitering is the act of standing or waiting around idly without purpose in some public places.
"No Loitering" sign in Fortuna, California
Gilbert Wheatley, arrested in England on 7 July 1904, for loitering with intent to commit a felony
Vagrancy is the condition of wandering homelessness without regular employment or income. Vagrants usually live in poverty and support themselves by travelling while engaging in begging, scavenging, or petty theft. In Western countries, vagrancy was historically a crime punishable with forced labor, military service, imprisonment, or confinement to dedicated labor houses.
John Everett Millais' The Blind Girl, depicting vagrant musicians
A woodcut from c.1536 depicting a vagrant being punished in the streets in Tudor England
The Pass Room at Bridewell, c. 1808. At this time paupers from outside London apprehended by the authorities could be imprisoned for seven days before being sent back to their own parish.
Caricature of a tramp