           +lat_0=#{param.lat_0} +lon_0=#{param.lon_0}"
 
 
-landuseType = (obj) ->
-  switch obj.tags.natural
+landuseType = (o) ->
+  switch o.tags.natural
     when 'heath'        then return 'heath'
     when 'rock'         then return 'rock'
     when 'scrub'        then return 'scrub'
     when 'wood'         then return 'forest'
     when 'wetland'
-      switch obj.tags.wetland
+      switch o.tags.wetland
         when 'marsh'    then return 'marsh'
 
-  switch obj.tags.landuse
+  switch o.tags.landuse
     when 'farmland'     then return 'farmland'
     when 'forest'       then return 'forest'
     when 'grass'        then return 'grass'

    }
    return f

  tourism = (obj) ->
    switch obj.type
      when 'node'
        f = point(obj)
      when 'way'
        f = turf.centroid(segment(obj.id))
    f.id = obj.id
    f.properties = {
      name: obj.tags.name
      type: obj.tags.tourism
    }
    return f

  shelter = (obj) ->
    f = point(obj)
    f.id = obj.id
    f.properties = {
      name: obj.tags.name
      type: 'basic_hut'
    }
    return f

  highway = (obj) ->
    f = linestring(obj.nodes)
    grade = switch obj.tags.highway
      when 'track' then 'path'
      when 'path' then 'path'
      when 'footway' then 'path'

    f.properties = {grade: grade}
    return f

  river = (o) ->
    linestring(o.nodes)

  lake = (o) ->
    f = polygon(o.nodes)
    f.properties = {name: o.tags.name}
    return f

  landFeature = (o) ->
    type = landuseType(o)
    buffer = turf.buffer(osmFeature[o.type + '/' + o.id], 0, 'meters')
    f = turf.intersect(bboxPoly, buffer.features[0])
    projectCoord(f.geometry.coordinates)
    f.id = "#{o.type}/#{o.id}"
    f.properties = {type: type}
    return f

