javascript - 谷歌融合表纬度,经度而不是位置

标签 javascript google-fusion-tables

我使用融合表层查询来使用 Location 列检索地点,

   layer = new google.maps.FusionTablesLayer({
    query: {
        select: 'Location',
        from: '****************************',
        where: 'ST_INTERSECTS(\'Location\', CIRCLE(LATLNG(' + position.lat() + ', ' + position.lng() + '),' + 5000 + '))',
        limit: 500
    }
});

正如谷歌给出的那样, enter image description here

我们如何在select and where条件中使用纬度、经度来查询地点,而不是位置

最佳答案

对于两列纬度/经度,请使用第一列的名称,即定义为纬度的那一列,在您的情况下为Latitude

关于javascript - 谷歌融合表纬度,经度而不是位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30800510/

相关文章:

ruby - 融合表 : Why do I keep getting a "400 Bad Request" error when trying to update a table style via Ruby's RestClient gem

带有onclick事件的javascript弹出框

javascript - 为连接到 websocket 服务器的客户端生成唯一 ID

javascript - 根据内容设置表格样式

javascript - 检索城市的位置 Google Map API

javascript - Fusion Tables 不支持 CORS(跨源资源共享)?

oauth-2.0 - 如何在 Dart 中使用 Oauth2 在 Google Fusion Tables 中进行身份验证?

javascript - HTML 对象标记 'data' 属性不会随着 jQuery 更改而更新

javascript - point.dist = function () { ^ ReferenceError : points is not defined

google-fusion-tables - 使用 MySQL 或其他数据库动态更新 Google fusion 表