Hi @deet_dev ,
Thanks for coming to the forums as you work on your project and it is great you have gotten some useful advice from @anneg.
To your latest question in this thread regarding polygon overlap. In previous discussions on this topic including in this thread How can I determine if two polygons overlap? we have found it helpful to point to geospatial helper libraries such as booleanOverlap | Turf.js which may abstract away some of the work for a calculation like polygon overlap.
I hope that is helpful, please let us know if this is not a fit and we would be happy to try and help further.
Thanks,
Luke