By darhamid


2012-02-03 10:15:40 8 Comments

I have a requirement where i have to find the geoip location of the users. I have used the code where i store the address of the user in database and then display the geoip location of that user.Now suppose the users changed his location to some other place.If the user now logs in from that region or country, how should i display the geoip of that user. The code that i use is:

geo.geocoder(geo.google, address, sensor,function(formattedAddress, latitude, longitude) {
             console.log("Formatted Address: " + formattedAddress);
             console.log("Latitude: " + latitude);
             console.log("Longitude: " + longitude);
             user.latitude = latitude;
             user.longitude = longitude;
             user.save(function(err) {
               if(err)
                 return userUpdateFailed();
               req.flash('info', 'Succesfully Upadated Changes');
               res.redirect('/userinfo');
             });
          });

Is there any alternative wherby i can be able to find the exact location of user.Please help

1 comments

@FGRibreau 2012-02-04 19:06:59

Node-GeoIP could be a solution but keep in mind that ip-based geolocalization isn't always truthful.

Related Questions

Sponsored Content

53 Answered Questions

[SOLVED] How to replace all occurrences of a string in JavaScript

22 Answered Questions

[SOLVED] How do I get the current GPS location programmatically in Android?

45 Answered Questions

[SOLVED] How can I update NodeJS and NPM to the next versions?

20 Answered Questions

16 Answered Questions

[SOLVED] How do I find out which DOM element has the focus?

  • 2009-01-30 20:21:31
  • Tony Peterson
  • 582863 View
  • 1172 Score
  • 16 Answer
  • Tags:   javascript dom

1 Answered Questions

[SOLVED] Node.js: choosing DigitalOcean city from location of user

1 Answered Questions

How reliable are GeoIP services for mobile roaming?

  • 2012-11-28 14:40:17
  • KevinD
  • 839 View
  • 3 Score
  • 1 Answer
  • Tags:   mobile geoip quova

1 Answered Questions

Google Maps, need to display country in TextView

3 Answered Questions

[SOLVED] Closest point to another point on a spherical coordinate system

1 Answered Questions

[SOLVED] Location and region finding from the user ip address

Sponsored Content