【Gold Map】 IP Positioning

IP Positioning-API Document-Development Guide-Web Service API | Gaode Map API
https://lbs.amap.com/api/webservice/guide/api/ipconfig

product description

IP positioning is a simple HTTP interface. According to the IP address entered by the user, it can quickly help the user locate the IP location.

You need to apply for a Key before using the API. If you don't have an API account of High German Map, you need to apply for an account first.

Applicable scene

Hope to be able to convert IP information into geographic location information.

Use restrictions

Please click here to check the service call limit.

Instructions for use

The first step is to apply for the "web service API" key (Key);

The second step is to concatenate the HTTP request URL. The Key applied in the first step needs to be sent as a required parameter;

The third step is to receive the data (JSON or XML format) returned by the HTTP request and parse the data.

If there is no special statement, the input parameters and output data encoding of the interface are all unified as UTF-8.

IP location API service address:

  • URL:https://restapi.amap.com/v3/ip?parameters
  • Request method: GET

The parameters represented by parameters include required parameters and optional parameters. All parameters are separated by ampersand characters (&). The following list enumerates these parameters and their usage rules.
Insert picture description here
Insert picture description here

Service example

https://restapi.amap.com/v3/ip?ip=114.247.50.2&output=xml&key=<user's key>

Insert picture description here

Published 252 original articles · Like 106 · Visits 30,000+

Guess you like

Origin blog.csdn.net/weixin_42554191/article/details/105459628