Check the collision side of a tile

Hi, I need a gameObject or a tile to behave differently based on the side of the collision. For example, I need the player to perform a certain action only if it collides with a tile from above or from the left side. Also I need that a gameObject should do a certain action if collision with another gameObject happens on top.
Is there some kind of property I can invoke in the collider, which controls the side of the collision?
For the tile collison, i can use the setCollision method, but by doing so, collisions on the other sides do not occur. I want different actions to happen on different sides

You can check body.blocked for collisions versus a tile or static body or body.touching for collisions versus other bodies. If that’s not adequate then you can usually compare positions.\physics\arcade\collision%20direction.js