Change argument of getLocation methode

now the methode takes a percent value (float) instead of two longs.