setup :Shp do point :restaurants do string :id, 20 string :name, 100 end end nodes do if amenity == 'restaurant' :restaurants << shape(:id => id, :name => name) end end