added simple implementation to assign a way to a rule (simply using shortest distance)
Merge commit '236ed8744993a3fb6c91ef34539d25f7f1efc8ff'