telize

High performance JSON IP and GeoIP REST API (IP Geolocation)
Log | Files | Refs | README | LICENSE

commit a7ffde67d3d7bdba5c326d58c5e230be45f171f7
parent e1086844064b687e519f1ee8b15e65bfa3313d48
Author: Frederic Cambus <fcambus@users.sourceforge.net>
Date:   Sun, 10 Aug 2014 22:16:00 +0200

Adding comments explaining the /localize endpoint

Diffstat:
Mtelize | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/telize b/telize @@ -49,6 +49,9 @@ server { } location /localize { + # This step is necessary as $geoip_latitude and $geoip_longitude fields might not always be + # initialized. This issue is fixed in Nginx 1.7.4 and this section will become redundant. + set_real_ip_from 127.0.0.1; echo_exec /jsonify ip=$remote_addr&country_code=$geoip_city_country_code&country_code3=$geoip_city_country_code3&country=$geoip_city_country_name&region_code=$geoip_region&region=$geoip_region_name&city=$geoip_city&postal_code=$geoip_postal_code&continent_code=$geoip_city_continent_code&latitude=$geoip_latitude&longitude=$geoip_longitude&dma_code=$geoip_dma_code&area_code=$geoip_area_code&org=$geoip_org&timezone=$geoip_timezone&offset=$geoip_timezone_offset&callback=$arg_callback;