我使用融合表层查询来使用 Location
列检索地点,
layer = new google.maps.FusionTablesLayer({
query: {
select: 'Location',
from: '****************************',
where: 'ST_INTERSECTS(\'Location\', CIRCLE(LATLNG(' + position.lat() + ', ' + position.lng() + '),' + 5000 + '))',
limit: 500
}
});
正如谷歌给出的那样,
我们如何在select and where条件
中使用纬度、经度
来查询地点,而不是位置
。
最佳答案
对于两列纬度/经度,请使用第一列的名称,即定义为纬度的那一列,在您的情况下为Latitude
。
关于javascript - 谷歌融合表纬度,经度而不是位置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30800510/