give a id when a way is a member of a relation