It depends on zoning laws, everywhere is different. Usually color coded into red, orange, yellow and green with a few extra codes.
Just go and ask at the tetsabaan office.
Then if your neighbor is building illegally you can snitch on him while you are there.