Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Any plan to port PhoneNumberToTimeZonesMapper? #30

Open
fabriziomoscon opened this issue Jul 10, 2016 · 2 comments
Open

[Question] Any plan to port PhoneNumberToTimeZonesMapper? #30

fabriziomoscon opened this issue Jul 10, 2016 · 2 comments

Comments

@fabriziomoscon
Copy link
Contributor

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.

@ttacon
Copy link
Owner

ttacon commented Jul 11, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants