ToolFk is a free test kit that programmers use online. ToolFk focuses on the tools that programmers use every day. You don’t need to install any software, just paste the content and press the execute button to get the results you want. ToolFk also supports BarCode BarCode generation online, QueryList collector, PHP code running online, PHP obfuscation, encryption, decryption, Python code online running, JavaScript online running, YAML Formatting Tool, HTTP simulation query tool, HTML online toolbox, JavaScript online toolbox, CSS online toolbox, JSON online toolbox, Unixtime timestamp conversion, Base64/URL/N Ative2Ascii conversion, CSV conversion toolbox, XML online toolbox, WebSocket online tool, Markdown online toolbox, Htaccess2nginx Transition, hexadecimal conversion online, online encryption tool box, pseudo original tools online, online APK decompiling, online web page screenshots tools, online random password generation, online generated qr code Qrcode, online Crontab expression, online short url generation, on-line calculator tool, commonly used Linux command daquan, text comparison tool, in the online Line mind mapping tool, online database design tool, free CDN acceleration service, online stress testing tool, map picking coordinate tool, online SQL conversion tool. Such as more than 20 daily programmer development tools, is a very comprehensive programmer toolbox site.


Site name: ToolFk Site Link: www.toolfk.com/ Tool link: www.toolfk.com/tool-online…

The code of teaching

This tool [Baidu map pick coordinate tool -toolfk programmer tool] relies on Baidu map API, Autonavi,QQ map API

STEP 1


STEP 2

The core code is as follows

//keywords
$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("");Copy the code

Three reasons it’s worth a try:

  1. Integrate a variety of development test tools commonly used in programmer development.

  2. Simple and beautiful atmosphere of the website page

  3. Support online formatting execution code, APK online decompilation, online high-strength password generation, online web page screenshots and more than 20 tool services

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



This paper links: www.hihubs.com/article/397