Change Location2IDIndex to return LocationIDResult instead of nodeId
improve node selection to respect traffic flow