java util of geofence polygon

Solutions on MaxInterview for java util of geofence polygon by the best coders in the world

showing results for - "java util of geofence polygon"
Erika
24 Jan 2017
1    GeoPolygon fence = new GeoPolygon( // Define a Fence Polygon 
2            new GeoPoint(-31.414547, -64.488178),
3            new GeoPoint(-31.415579, -64.496261),
4            new GeoPoint(-31.411513, -64.495720),
5            new GeoPoint(-31.408726, -64.489549),
6            new GeoPoint(-31.411898, -64.484406)
7            );
8
9    GeoPoint testgp1 = new GeoPoint(-31.411753, -64.489922);// Point1 inside
10    GeoPoint testgp2 = new GeoPoint(-31.413962, -64.486445);// Point2 outside
11
12
13    boolean inzone = fence.isPointInside(testgp1);
14    System.out.println ("Point1 is inside of polygon= "+inzone);
15    inzone = fence.isPointInside(testgp2);
16    System.out.println ("Point2 is inside of polygon= "+inzone);
17
similar questions
queries leading to this page
java util of geofence polygon