I'm developíng an App in Android Studio using Kotlin with Minimun API of 21 -Lollipop- that works totally offline, and i need to test if a point (decimal degrees for lat and long) that the users write (Or that i get from GPS offline location) is inside certain polygon in a ShapeFile (Or any geo-file, it doesnt matter the type).
For example. The Shapefile has 2 polygons with name A and B. In the first page of the App the user have to select if they want to work with polygon A or B. After that the user has the option to write some decimal coordinates or to use the GPS of his phone to get a coordinate, and i have to test if those coordinates are inside the polygon that the users selected in the beginning (Polygon A). I'm working with WGS84.
Is there a package or something that are capable of doing that spatial intersection with the geofile and the point?