Baidu map coordinates of the pickup tool toolfk programmer tool - hubs/toolfk GitHub Wiki

  This paper to recommend [ToolFk] is a programmers often use a free online test kit, ToolFk feature is focused on everyday programmer development tools, without having to install any software, as long as the content execution affixed by a button, able to obtain the contents of the desired results.ToolFk also supports   BarCode Barcode generated online ,  QueryList collector ,  PHP code is run online ,  PHP confusion, encryption, decryption ,  Python code is run online JavaScript online operation ,YAML formatting tools , HTTP simulation query tool HTML online toolbox JavaScript online Toolbox ,CSS online toolbox JSON online toolbox unixtime timestamp conversion Base64 / the URL of / native2ascii conversion CSV conversion kit XML online toolbox the WebSocket online tools Markdown online toolbox Htaccess2nginx conversionHex conversion online online encryption toolkit ,online pseudo-original tools online APK decompile online web screenshot tool online random password generation online generate two-dimensional code qrcode online Crontab Expression Builder ,the online short URL Generator Online calculator tool , Linux common commands Daquan , online text comparison tool , online mind mapping tools , online database design tool , free CDN acceleration service , online stress test tool , map coordinates pick up tools , online SQL conversion tool . And more than 20 daily programmer development tools, can be considered a very comprehensive website programmer's toolbox.

Site name: ToolFk
website links: https://www.toolfk.com/
Tools link: https://www.toolfk.com/tool-online-map

? Teaching Code

This tool [Baidu map coordinates of the pickup tool -toolfk programmer tool]? Dependent on Baidu Maps API, High German, QQ Maps API

STEP 1

STEP 2

? THE CORE CODE IS AS FOLLOWS

$ Out_datas = [];
#QQ
$ Qq_map_url = "https://apis.map.qq.com/ws/coord/v1/translate?locations={$lat},{$lng}&type=3&key=XXXX";
$ Qq_map = \ App \ Helper \ UtilsHelper :: curlGet ($ qq_map_url);
if ($ qq_map [ 'status'] == 0) {
    $ Location = @ $ qq_map [ "locations"] [0];
    if ($ location) {
        $ Lat_qq = $ location [ "lat"];
        $ Lng_qq = $ location [ "lng"];
        $ Out_datas [ "qq"] = "{$ lng_qq}, {$ lat_qq}";
    }
}

#gaode https://lbs.amap.com/api/webservice/guide/api/convert
$ Gaode_map_url = "https://restapi.amap.com/v3/assistant/coordinate/convert?locations={$lng},{$lat}&coordsys=baidu&output=json&key=YYY";
$ Gaode_res = \ App \ Helper \ UtilsHelper :: curlGet ($ gaode_map_url);
if ($ gaode_res [ "status"] == 1) {
    $ Location = @ $ gaode_res [ "locations"];
    if ($ location) {
        $ Out_datas [ "gaode"] = $ location;
    }
}

if ($ out_datas) {
    
    return \ App \ Helper \ UtilsHelper :: success ($ out_datas);
}
return \ App \ Helper \ UtilsHelper :: error ( "");

It is worth a try for three reasons:

  1. Integrate various programmers often used in development and testing tools.

  2. Simple and beautiful atmosphere of the site pages

  3. Online support formatting code execution, APK online decompile, online high-strength password generator, two dozen screenshots online web tools service

  4. Also recommend its sister network  www.videofk.com  video download Toolbox 

This link: http://www.hihubs.com/article/397