API Home: Http://lbsyun.baidu.com/index.php?title=webapi/high-acc-ip
1. Apply for Baidu account, create application, get key (AK)
Http://lbsyun.baidu.com/apiconsole/key
Enable the service :, can be based on their own needs to hook-and-choose, here First all selected.
Request Check method : IP Whitelist Check/sn check, select IP Whitelist check here. Enter the IP address of the machine you are accessing below. such as (114.114.114.114).
Click Submit to get AK
2, access method:
Service Address:
HTTP://api.map.baidu.com/highacciploc/v1
HTTPS://api.map.baidu.com/highacciploc/v1
Parameters:
QCIP to location IP Optional if empty then locate the IP for the location service
AK Developer Key, which is what you applied for earlier
Extensions return result extension setting optional,
0 (Default): Returns only base positioning results
1: Return base positioning result + address information
2: Back to base positioning results + peripheral POI Information
3: Return base positioning result + address information +poi information
Here we use 1
coord Return coordinate type optional,
BD09 (default): Baidu Mercator coordinates
BD09LL: Baidu latitude and longitude coordinates
GCJ02: National Survey Bureau longitude coordinates
Full invocation:
Enter the following URL in the browser address bar
HTTPS://api.map.baidu.com/highacciploc/v1?qcip=220.181.38.113&ak= you apply for the Ak&extensions=1 &coord=bd09ll
Get the results as follows:
Not finished
C # call Baidu high-precision IP location API get address via IP