addLocation
Adds the location after the current position. If the currentposition is not the end of the list then the elements between the current element and the end of the list will be discarded.
Does nothing if the new location matches the current location.
If this nr of locations becomes larger then the historySize then the first item(s) will be removed.
Parameters
location