added location callbacks

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