Closed (fixed)
Project:
Smart IP
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2012 at 10:05 UTC
Updated:
29 Jun 2013 at 03:10 UTC
Maxmind provides geolocation Web services (non-free).
I wrote a small patch which permits the use of thoses web services.
Only available for Country for now since I don't have information on other services.
Probably need to refactor the UI admin to integrate this in a more ergonomic way.
Attached is a patch against 7-x.1.5.
| Comment | File | Size | Author |
|---|---|---|---|
| smart_ip_maxmindgeoip.patch | 6.99 KB | etiennechataignier |
Comments
Comment #0.0
etiennechataignier commentedAdd UI info
Comment #1
arpeggio commentedHi echataig, I have implemented the patch you have submitted (I have done few improvements). Already pushed, please use dev version. Thank you for sharing the patch.
Comment #3
duntuk commentedHere's the updated code for maxmind IP web service "GeoIP City/ISP/Organization Web Service" (they only offer 3 packages: "Country", "GeoIP City/ISP/Organization Web Service" , and "omni":
under smart_ip.module around line 389. Which includes additional: longtitude, latitude, and region
Prior to this, smart_ip only displayed maxmind's City and Country.
Before:
Los Angeles, US
AFTER
Los Angeles, CA, US longtitude, latitude
As you can tell, having the 'region' is pretty crucial, since there are identical city names throughout the United States.
Comment #4
arpeggio commented@duntuk I have already updated the code for GeoIP City/ISP/Organization Web Service. Thank you for sharing this info.
Comment #4.0
arpeggio commentedenglish trial