Your question is too broad. You need to consult a textbook on English. Many, many pages of instruction are needed to cover the use of "on", "at", and "in", and most textbooks will give you better answers than any of us can improvise here in a post.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.