如何在Fusion Tables中查询多个'where'?

时间:2015-02-16 19:52:49

标签: google-fusion-tables intersection

我在Fusion表中有两个“where”,所以我想在单个where子句中运行代码。

query: 
{
    select: 'geometry',
    from: 'tableid',
    where: "direction = 'ida'",
    where: 'ST_INTERSECTS(geometry, CIRCLE(LATLNG(-8.754864219111248, -63.87663083648681), 200))',
    limit: 2
}

我想像这样运行查询,但它不起作用

where: "direction = 'ida'"   AND   'ST_INTERSECTS(geometry, CIRCLE(LATLNG(-8.754864219111248, -63.87663083648681), 200))',

1 个答案:

答案 0 :(得分:0)

我解决了它:

这是错误的查询顺序以及+'和'+:

where: 'ST_INTERSECTS(geometry, CIRCLE(LATLNG(-8.754864219111248, -63.87663083648681), 200))' +'and'+ "'direction' = 'ida'"