google maps - check if geo coordinates are in dynamically drawn polygon -


i'm trying point(s) in polygon implementation multiple points , dynamic shapes drawn on google maps. user may draw shape on map , tries find stored places(available in database lat , long) in drawn shape.

i've browsed enough articles , posts on how store borders of polygon table , doing spatial query doesn't suit problem. in case dynamic input.

i'm looking optimal way instead of storing shapes. appreciated.

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


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -