Comments (11)
Unfortunately, PhoneNumberOfflineGeocoder
has not been ported to javascript so don't expect to see this functionality on this wrapper package any time soon. You might want to submit an issue on the official repository.
from google-libphonenumber.
😞 ... will just write my own geo location function i guess
Thanks
from google-libphonenumber.
You could submit a PR with the port to their repository :)
from google-libphonenumber.
@ahmed-90 did you find/write anything?
I found this for the USA but it's a year old: https://github.com/BlueRival/node-areacodes
from google-libphonenumber.
I scraped wikipedia for North America ... I saved the code here:
https://gist.github.com/avimar/bcc7a8159d214c51b5496be5f5e14362
from google-libphonenumber.
I asked for it here, apparently it's a leet request... https://github.com/googlei18n/libphonenumber/issues/1337
from google-libphonenumber.
@avimar yeah.. well kindof.. anyway you can find the geo data in the resources https://github.com/googlei18n/libphonenumber/tree/master/resources/geocoding/en
sorted by the geo code also the nanpa has public listings of the codes -> https://www.nationalnanpa.com/reports/area_code_relief_planning.html
from google-libphonenumber.
@ahmed-90 uhm, ok, so how can we access that within the lib? :)
from google-libphonenumber.
@avimar i just used my own lookup without the lib so .. simply converted the data to json object (keyBy areacode) and just did a lookup when i can't identify the number
not the cleanest way :P but worked fine
from google-libphonenumber.
Is there any update on this??
Can i use geo-location and timezone mapper facility with Javascript/Node?? If so please reply...
from google-libphonenumber.
@sahilkanani1812, see original comment #46 (comment). It's still valid.
from google-libphonenumber.
Related Issues (20)
- Error messages for validation failure HOT 2
- Function to get the area code HOT 4
- Diferent result for fixed line number HOT 1
- Use of eval is strongly discouraged as it poses security risks HOT 1
- libphonenumber +1 and +1 864 HOT 2
- **号码正则判断有问题 HOT 1
- Not correct validation for south africa number HOT 1
- Issue with AU mobile phone numbers HOT 2
- Adopt upstream version scheme HOT 3
- Please update metadata HOT 2
- Missed Tagged Phone Number as Invalid HOT 1
- AU Number Validation - 0493 776 XXX not valid.
- Georgia country Regex not working for few numbers.
- These phone numbers 07700900982 and +447708900982 are not valid
- Updating
- Not accepting 368 areacode
- Valid numbers are considered as invalid
- phoneUtil.parse is giving wrong result for nigerian number
- Currently behind google libphonenumber release 8.13.29 HOT 1
- Giving invalid number to a valid number HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-libphonenumber.