1)There were several street vendors selling snacks by the footpath.
2)Having warm tea by the tea cart ear my university was my favorite pastime.
English Language Learners Stack Exchange is a question and answer site for speakers of other languages learning English. It only takes a minute to sign up.
Sign up to join this community1)There were several street vendors selling snacks by the footpath.
2)Having warm tea by the tea cart ear my university was my favorite pastime.
In both of these cases, it's a preposition meaning near/close to.
In 1, the street vendors are near the footpath.
In 2, the writer drank (had) their tea near the tea cart.