Question: I have seen few examples of using geoip in node.js such as <https://github.com/kuno/GeoIP.git> and <https://github.com/wadey/node-geoip>. However what i want is to display the map showing geoip for the particular loged in user.How can it be implemented.

Answer: 
The best module for GeoIP is <https://github.com/kuno/GeoIP> in my opinion (I actually used this module for a project and it worked perfectly for me). You have to download the database from Maxmind and also install some OS specific libraries and then compile the module.

There is no need to put the database into MongoDB unless you want to replicate easily across multiple servers. You can just put your database into a file and provide the path in the Node.js module.

Here is an example:

```
// Open the GeoLiteCity.dat file first.
var City = geoip.City;
var city = new City('/path/to/GeoLiteCity.dat');
console.log(city); // this contains country, city, lat, long, continent, postal code etc

```
Python Implementation:

```
#!/usr/bin/python
#coding: utf-8
import os
import pygeoip

gi = pygeoip.GeoIP('GeoIP.dat')
gic = pygeoip.GeoIP('GeoIPCity.dat')

fl = file(r'apache-unique.log')
lines = fl.readlines()

for line in lines:
    print gi.country_code_by_addr(line)
    print gic.record_by_addr(line)

os.system('pause')

```