Ip2Country - Free Translation Service API

The purpose of Ip2Country project is to
- Provide free online IP to Country Translation.
- Show how to use "crossite ajax".
- Show how to use "ajax web service".
Online Demo
Usage
http://www.document.sk/util/ip2country/?ip=<ip address>[&callback=<callback id>]
Response Format
- CSV
<p_haserror>,<p_errormsg>,<p_country2>,<p_country3>,<p_country>
Example: http://www.document.sk/util/ip2country/?ip=8.8.8.8
<callback id>({"p_haserror":<p_haserror>,"p_errormsg":"<p_errormsg>","p_country2":"<p_country2>","p_country3":"<p_country3>","p_country":"<p_country>"})
Example: http://www.document.sk/util/ip2country/?ip=8.8.8.8&callback=aaabbb
Possible values for p_haserror
- Success!
- DOC_NO_VALID_IP_ADDRESS
- DOC_NO_DB_CONNECTION
- DOC_NO_RECORD_FOUND

