Added location functionality

Signed-off-by: premek <premekcech@seznam.cz>