문제

I have a fusion table populated with addresses, not lat/lng coordinates. Google has done the geocoding for me so I don't have access to the geocoded data. This fusion table is one layer on my map, and it shows markers for each address.

I'm using the DrawingManager to allow the user to draw a polygon. Once the polygon is completed (i.e. in the polygoncomplete callback) I would like to be able to determine which of the markers from the fusion table are located within the polygon.

If I had access to the coordinates then I could do this with ST_INTERSECTS, but I don't have access to it. And since it is already geocoded by Google I don't see a reason to make additional queries using the geocoding API to get the coordinates.

So is there a way to determine which markers from the fusion table are within a polygon?

도움이 되었습니까?

해결책

When you mean with ST_INTERSECTS the function of the FusionTablesAPI:

you don't need the coordinates, when the specific column is marked as location-column and has already been geocoded you may use this column in your query(even when you had the coordinates they wouldn't help you more when you use the API, because ST_INTERSECTS expects the column-name, not the geometry).

The problem is another: the FusionTablesAPI supports as geometry for ST_INTERSECTS only CIRCLE and RECTANGLE

So the answer is: No

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top