Geofence validation on Google Maps JS API

Note: This post reflects my 2019 exploration of geofence validation. Today, libraries like Turf.js or GEOS handle these cases more efficiently. Suppose you...