tz-trout icon indicating copy to clipboard operation
tz-trout copied to clipboard

Better timezone detection for phones via phonenumbers

Open tsx opened this issue 5 years ago • 1 comments

This switches phone tz detection from indirect (phone -> address -> tz) to direct phonenumbers call.

It is now simpler, faster, significantly more precise outside of US, and saves a whopping 100MB of RAM per process by not using (and not loading) phonenumbers' geocoder.

tsx avatar Dec 03 '20 14:12 tsx

Just to clarify: judging by initial test failures, our prefix-based AU state detection appears to be more precise than phonenumbers' so I left it there. For US/CA phonenumbers' seems to be fine though.

tsx avatar Dec 03 '20 17:12 tsx