Get the App
SLTechnology News&Howtos  ›  Development  › 

How does the developer of PHP Wechat return nearby information based on the user's reply keyword\ location?

Shulou Source: shulou.com Published: 2022-06-03 19:30:05 11月12日 Update

Editor to share with you how the development of PHP Wechat according to the user response keywords\ location to return nearby information, I believe that most people do not know much, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

After users follow the Wechat official account, they can reply to the user's geographic location (Tencent Map) to the official account, extract the latitude and longitude of the location information, and convert it into the latitude and longitude of Baidu. Then, according to latitude and longitude, call the API of Baidu map to return information such as "hotel" and "hotel" (which can be customized) within the nearby radius 2KM. When you call Baidu's API, you need to get the apiKEY. If not, please register and apply at Baidu developer Center.

First, test the data returned by the interface with a set of latitudes and longitudes:

Tags: Information location user map longitude and latitude longitude and latitude key latitude longitude hotel keywords data reference development geography location articles links Tencent public Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS NVidia OPPO Reno Microsoft MySQL