Google fusion table latitude,longitude instead of location

477 views Asked by At

I have used fusion table layer query to retrieve places using the Location column,

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

As given in google, enter image description here

How we have to use the latitude, longitude to query the places instead of location in select and where condition.

1

There are 1 answers

0
geocodezip On

For a two column latitude/longitude use the name of the first column, the one defined as latitude, which in your case would be Latitude.