libphonenumber to print all supported countries and sub-regions.I know I can list all supported regions using in java:
PhoneNumberUtil phoneUtil = PhoneNumberUtil.getInstance();
for (String s : phoneUtil.getSupportedRegions()) {
System.out.println(s);
}
But how can I access all sub-regions? The following code will print "New York, NY"
String nyNumber = "+1 212-565-0000";
PhoneNumber numberProto = phoneUtil.parse(nyNumber, "CH");
System.out.println(geoCoder.getDescriptionForNumber(numberProto, Locale.ENGLISH, "US"));
Thanks.
(Originally posted in stackoverflow http://stackoverflow.com/questions/33327395/print-all-supported-countries-and-sub-regions)
--
You received this message because you are subscribed to the Google Groups "libphonenumber-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to libphonenumber-di...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "libphonenumber-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/libphonenumber-discuss/RKYIAGCQNgk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to libphonenumber-di...@googlegroups.com.
The data files you're mentioning are those in: https://github.com/googlei18n/libphonenumber/tree/master/resources/geocoding?Thanks for your reply Andy.Yes I'm specifically interested in geocoder's coverage.
I'm developing an app which receives a phone number and must return the region coordinates. As it must work offline I need to know all coverage provided by geocoder to create a file with something like: US;NY;latitude;longitude.