   routeIds = d3.set()
   segmentIds = d3.set()
   poi = []
+  roads = []
+  rivers = []
 
   pos = (id) ->
     node = obj[id]

    }
    return f

  route = (relation) ->
    segments = []
    for m in relation.members

      if o.type == 'node' or o.type == 'way'
        poi.push(tourism(o))

    if o.type == 'way' and o.tags.highway?
      roads.push(road(o))

    if o.type == 'way' and o.tags.waterway?
      rivers.push(river(o))

  layers = {
    segments: turf.featurecollection(segment(id) for id in segmentIds.values())
    poi: turf.featurecollection(poi)
    roads: turf.featurecollection(roads)
    rivers: turf.featurecollection(rivers)
  }

  return {
