22.03.2015, 15:13
Quote:
Something like this maybe ?
I can't see a more "optimized" solution (except with packed strings, thing I can't use for the moment) (just proposing because I trynna go forward in the optimization) PHP Code:
|
This is the data received for a random IP:
Code:
{"country_code":"US","region_code":"NJ","city_name":"Stratford","postal_code":"08084","latitude":39.8299,"longitude":-75.0165,"metro_code":"504","area_code":"856","ip":"68.45.78.40","country_name":"United States","region_name":"New Jersey"}