ttacon/libphonenumber

[Question] Any plan to port PhoneNumberToTimeZonesMapper?

Opened this issue · 2 comments

I would like to map a phonenumber to the relative timezone.
The Google Java/Javascript library allows it. It would be good to have it in go as well.

The original file is this one:
https://github.com/googlei18n/libphonenumber/blob/3ea1359a3e41bbb0a90ec253c00ba41712fb736b/java/geocoder/src/com/google/i18n/phonenumbers/PhoneNumberToTimeZonesMapper.java

I can help with a PR if @ttacon could provide me with some basic instructions. For example how to import the binary data for the timezone...

Please let me know what is the best way to proceed.

Cool! PRs are always welcome! I don't have a ton of spare time to do this myself, but you should probably grab the binary data from the C project - the Java libphonenumber project data is encoded in Java's Object[Input|Output] format. From that, it's just generating whatever protobuf structures (I'm assuming it's protobufs) that are required to extract the necessary data.