Giter Site home page Giter Site logo

Comments (11)

ruimarinho avatar ruimarinho commented on May 13, 2024

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.

dtheb avatar dtheb commented on May 13, 2024

😞 ... will just write my own geo location function i guess
Thanks

from google-libphonenumber.

ruimarinho avatar ruimarinho commented on May 13, 2024

You could submit a PR with the port to their repository :)

from google-libphonenumber.

avimar avatar avimar commented on May 13, 2024

@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.

avimar avatar avimar commented on May 13, 2024

I scraped wikipedia for North America ... I saved the code here:

https://gist.github.com/avimar/bcc7a8159d214c51b5496be5f5e14362

from google-libphonenumber.

avimar avatar avimar commented on May 13, 2024

I asked for it here, apparently it's a leet request... https://github.com/googlei18n/libphonenumber/issues/1337

from google-libphonenumber.

dtheb avatar dtheb commented on May 13, 2024

@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.

avimar avatar avimar commented on May 13, 2024

@ahmed-90 uhm, ok, so how can we access that within the lib? :)

from google-libphonenumber.

dtheb avatar dtheb commented on May 13, 2024

@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.

sahilkanani avatar sahilkanani commented on May 13, 2024

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.

ruimarinho avatar ruimarinho commented on May 13, 2024

@sahilkanani1812, see original comment #46 (comment). It's still valid.

from google-libphonenumber.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.