0

Check Latitude & Longitude is within Area without Google Maps Api

I make Boundary Polygon shape,

How can I check if the given (Lat, Lng) 11.028367, 76.932336 is inside that Boundary Polygon?

I need to do it without Google Maps API, because the program will be offline and must check more often than Google API’s free service will allow.

NodeJs function to detect Point in Polygon:

Test for convex polygon:

Result:

IN
OUT

Test for concave polygon:

Result:

OUT
IN
OUT

Prakash S

Prakash S

I would like to introduce myself as a Software professional opting for the career in software industry. I'm Prakash S, a MCA graduate and trained as industry level practice for Software technology. Basically I am a PHP Developer but now days exploring more in HTML5, CSS, AngularJS and jQuery libraries.