128
128
config.db_name+'/_spatial/points?bbox='+
129
129
south_lat+','+west_lng+','+north_lat+','+east_lng,
130
130
function(data, textStatus, jqXHR){
131
132
var congs = eval('('+data+')')['rows'];
132
133
if (typeof congs !== 'undefined' && congs.length > 0){
133
134
// TODO: Refactor this so it's not redeclared every time this code is called