Add generit methods getLocation