In fact, Tencent has the solution in the interface description
Request URL
The request is a GET request
https://apis.map.qq.com/ws/coord/v1/translate
Request parameter
parameter | Mandatory | Explanation | Examples |
---|---|---|---|
locations | Yes | Pre coordinate conversion, supports batch conversion, format: latitude before, the longitude, latitude and longitude with between "," separated, each set of coordinates used between a ';'; Batch number coordinates to support HTTP GET method request limit prevail | locations=39.12,116.83;30.21,115.43 |
type | Yes | Type coordinate input locations optional integer value between [1,6], each number represents the Type Description: 1 GPS latitude and longitude coordinates 2 sogou 3 baidu latitude longitude 4 mapbar 5 [default] Tencent, google, high German 6 sogou Mercator coordinates | type=3 |
key | Yes | Development Key (Key) | key=OB4BZ-D4W3U-B7VVO-4PJWW-6TKDJ-WPB77 |
output | no | Returned Format: supports JSON / JSONP, the default JSON | output=json |
callback | no | JSONP callback mode | callback=function1 |