location algorithmus