private RelationMembership decodeRelationMembership(long encoded) {
    int role = (int) ((encoded >>> ROLE_SHIFT) & ROLE_MASK);
    return new RelationMembership(roleIdsReverse.get(role), encoded & NOT_ROLE_MASK);
  }
Returns the role and relation ID packed into a long.
planetiler-core/src/main/java/com/onthegomap/planetiler/reader/osm/OsmReader.java