-2

I'm trying to do point(s) in polygon implementation with multiple points and dynamic shapes drawn over google maps. The user may draw a shape over a map and tries to find all stored places(available in database as lat and long) in that drawn shape.

I've browsed enough articles and SO posts on how they store the borders of the polygon into a table and doing a spatial query which doesn't suit my problem. In my case it is dynamic input.

I'm looking for an optimal way to do this instead of storing the shapes. Any help is much appreciated.

prit4fun
  • 450
  • 1
  • 7
  • 15

1 Answers1

1

You could try browser based spatial analytics libraries for point-in-polygon algorithms e.g http://turfjs.org/ or http://geoscript.org/.

Paul Crease
  • 150
  • 5