C # call Baidu high-precision IP location API get address via IP

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.