need to write android native code with angular ionic

I have created mobile application using Ionic, angular 8, Now I have to write android native code to fetch device location with accuracy up to 20 meter.
Using Cordova plugin not getting desired accuracy.
I have to implement geofencing in ionic app.
Is it possible to implement the same with Capacitor?