zzzxxxyyy-geoip
v1.0.1
Published
This module binds a Country object to requests based on IP address preauthentication.
Downloads
5
Readme
GeoIP dashboard module
This module binds a Country object to requests based on IP address preauthentication.
Data and geolocation is handled by MaxMind.com's node-maxmind module and a copy of
their database in the data
folder.
Example req.country
{
continent: {
code: 'NA',
geoname_id: 6255149,
names: {
de: 'Nordamerika',
en: 'North America',
es: 'Norteamérica',
fr: 'Amérique du Nord',
ja: '北アメリカ',
'pt-BR': 'América do Norte',
ru: 'Северная Америка',
'zh-CN': '北美洲'
}
},
country: {
geoname_id: 6252001,
iso_code: 'US',
names: {
de: 'USA',
en: 'United States',
es: 'Estados Unidos',
fr: 'États-Unis',
ja: 'アメリカ合衆国',
'pt-BR': 'Estados Unidos',
ru: 'США',
'zh-CN': '美国'
}
},
registered_country: {
geoname_id: 6252001,
iso_code: 'US',
names: {
de: 'USA',
en: 'United States',
es: 'Estados Unidos',
fr: 'États-Unis',
ja: 'アメリカ合衆国',
'pt-BR': 'Estados Unidos',
ru: 'США',
'zh-CN': '美国'
}
}
}