ans-4175 / talenta-api

API HR Talenta for ClockIn and ClockOut
MIT License
19 stars 15 forks source link

Add Auto Detect Location #4

Open ans-4175 opened 3 years ago

ans-4175 commented 3 years ago

Based on device location, fetch longitude then latitude to automate clockIn and clockOut

k1m0ch1 commented 3 years ago

this is hard to implement, the best one to do, is using the geoIP https://github.com/geoip-lite/node-geoip and I don't think its good

ans-4175 commented 3 years ago

this is hard to implement, the best one to do, is using the geoIP https://github.com/geoip-lite/node-geoip and I don't think its good

It would be have wide ranges of area. I am thinking bit more "old school" with Browser Location API by using puppeteer maybe?

haryanapnx commented 3 years ago

this is hard to implement, the best one to do, is using the geoIP https://github.com/geoip-lite/node-geoip and I don't think its good

I've tried with this library, the results aren't accurate. maybe get location from browser is the best choice.