Google Maps Fusion Table API SQL "LIKE" 命令无效

Google Maps Fusion Table API SQL "LIKE" command not working

我正在使用 Google 地图 API 根据用户输入从 Fusion Table 中提取数据。我试图使用 "LIKE" 命令来创建更强大的搜索功能,但是除了简单的 where 查询(例如 where x=y 或 x>y)之外的任何其他内容似乎 return 每个条目或没有条目全部来自融合 table。

main.js

function updateMap(layer, tableID) {
    var input = document.getElementById('input').value;
    var newLayer = new google.maps.FusionTablesLayer({
        query: {
            select: 'FULL_ADDRESS',
            from: tableID,
            where: "FULL_ADDRESS LIKE  \'%" + input + "%\' "
        }
    });
    console.log(newLayer);
    layer.setMap(null);//deletes old layer
    newLayer.setMap(map);//sets map to new layer
    LAYER = newLayer;// sets global layer to new layer

}

根据文档 here and here 这应该可以正常工作。

index.html

<input id="input" class="controls floating-label" type="text" placeholder="Search by Address or Zip Code">

融合table条目

000000000000000000| Taylor Road , Birmingham, AL, 36117| 0 |[=17=].00 ,800.00 |[=17=].00 |[=17=].00 |,360.00

第二个字段是 FULL_ADDRESS

live site 我的目标是使用用户输入来尝试部分匹配地址,但是它无法正常工作。有什么我想念的吗?

谢谢!

LIKE 似乎不起作用,所以请改用 MATCHES