geolocation - Best node.js module for finding location? -
i had found couple of node.js modules finding information client location , network using ip address.
requirements:
location - country, city, state, latitude, longitude etc.
network - internet service provider, internet connection type , internet speed etc.
data accuracy - maximum possibility.
note: looking server side solution.
the above mentioned modules uses maxmind data. , had read maxmind data accuracy well.
i little confused choose above node.js modules , know there better node.js frameworks available finding information met requirement or other language plugins can portable node.js.
any idea greatful.
using ip-based geolocation possible, not accurate. suggest think going hybrid approach, trying users location via html5 geolocation api inside browser , fallback serverside if necessary.
i took @ 2 used geoip/-location modules available node.js , both use datasets provided maxmind. afaik have keep these databases up-2-date manually, clear downer. may consider writing little sync service / script, updates database once per month. (more information on maxminds free solution can found here).
kuno/geoip
geoip binding, @ it's core it's using libgeoip c library, okay, maybe not portable pure javascript implementation bluesmoon/node-geoip
offers. both okay , it's library more. in terms of performance have benchmakrs (if topic matters you) … there no general answer question, type of module (c-binding/native) faster.
if you're willing spend few bucks maxminds web service, simple rest api , precise way go. documentation quite – so getting started won't problem.
Comments
Post a Comment