jump to nearest wall

Can someone point me on how to make this system:
Basically a character detects any nearest wall within vicinity, and if the wall is not ground or within a certain angle,
it creates a pointer, marking that you can jump to that nearest point.
Once you press a certain button, you go there with jump.