Outside next to a building is the worst place to be, as debris can detach and fall from the sides and tops of buildings. If you're indoors, stay indoors. Furniture that can fall over or slide around is supposed to already be secured to the wall or floor, but you will probably want to cover under a desk or something, anyway, in case panels or fixtures fall from the ceiling, or glass shatters.
If you're already outside, stay away from the sides of buildings, walls, power lines, etc. You may want to walk out into the middle of the road (seriously): https://www3.nhk.or.jp/nhkworld/en/ondemand/video/2084030/