{ "language": "javascript", "views": { "nosea": { "map": "function(doc){ if( doc.code && [9,10,11,19,20,21,25,29].indexOf(doc.code) > -1 ){ emit( doc._id, {code:doc.code,prefecture:doc.prefecture,capital:doc.capital,lat:doc.lat,lng:doc.lng} ); } }" } }, "lists": { "nosea": "function( head, row ){ start( { 'headers': { 'content-type': 'text/html; charset=utf-8' } } ); send( '' );}" }, "shows": { "nosea": "(function( doc, req ){ if( doc ){ var str = '

' + doc.prefecture + '

' + doc.capital + '


緯度: ' + doc.lat + '
経度: ' + doc.lng; return str; }else{ return 'empty'; }})" } }