Reputation: 147
Is possible verify if the route generated by user, crossed trough to other route stored in a kml file?
I found in the API Docs:
Class Direction have Ltg Ltd array.
Can I use Google API for compare each point approximation in kml file? or maybe i should do it with a script, in my server side?
Some one have something similar?
Thanks, developer community.
Upvotes: 0
Views: 274
Reputation: 147
You need use fusion table:
The column called "geometry" (by default), store your Lgt Ltd o polylines or polygons.
Now you need "query" the data in your table for this you can consult the correct syntax in https://developers.google.com/fusiontables/docs/developers_guide
If you want ask for Lgt & Ltd contains in your the geometry you need
SELECT <columns> FROM <tableid>
WHERE ST_INTERSECTS('<column with coordinates>',RECTANGLE(LATLNG(<point_lower_x>,
<point_lower_y>),LATLNG(<point_upper_x>,<point_upper_x>)))
Upvotes: 1