google maps flutter check if a point inside a polygon

I found this answer and just modified some minor things to work with dart, I ran a test on a hardcoded polygon. The list _area is my polygon and _polygons is required for my mapcontroller. final Set<Polygon> _polygons = {}; List<LatLng> _area = [ LatLng(-17.770992200, -63.207739700), LatLng(-17.776386600, -63.213576200), LatLng(-17.778348200, -63.213576200), LatLng(-17.786848100, -63.214262900), LatLng(-17.798289700, -63.211001300), LatLng(-17.810547700, … Read more

iOS Geofence CLCircularRegion monitoring. locationManager:didExitRegion does not seem to work as expected

I don’t think region monitoring will work well for such a small radius. The best accuracy with the GPS chip and kCLLocationAccuracyBestForNavigation is often just 10 meters. Apple says (in the Location & Maps PG) that the minimum distance for regions should be assumed to be 200m I’ve heard that region monitoring is using WiFi … Read more

How to draw a polygon around a polyline in JavaScript?

My working solution: working example (based off of Manolis Xountasis’s answer) and pieces from these related questions: How to calculate intersection area in Google Maps API with JSTS Library? Google Maps Polygons self intersecting detection include the JSTS library add routines to translate google.maps.Polyline paths to JSTS objects: function googleMaps2JTS(boundaries) { var coordinates = []; … Read more