implement getLocation