for our bike router we need to prioritize certain ways that are part of routes; green routes, regional routes, etc. the routes are marked in OSM using relations.
maybe the way function could get a list of relations that the way is part of?
this issue is a follow up on #300 by @karme.