WeChat public platform is a new service platform that provides business services and user management capabilities to individuals, enterprises and organizations. The WeChat public platform mainly includes real-time communication, message sending and material management. Users can group and manage fans of public accounts and communicate in real time. They can also use advanced functions - editing mode and development mode to automatically reply to user information.
Course playback address: http://www.php.cn/course/545.html
The teacher’s teaching style:
The teacher’s lectures are simple, clear, layer-by-layer analysis, interlocking, rigorous argumentation, rigorous structure, using the logical power of thinking to attract people Students' attention and rational control of the classroom teaching process. By listening to teachers' lectures, students not only learn knowledge, but also receive thinking training, and are also influenced and influenced by teachers' rigorous academic attitude.
The more difficult point in this video is to query the WeChat location and store it in the database:
Backend format:
<xml> <ToUserName><![CDATA[gh_680bdefc8c5d]]></ToUserName> <FromUserName><![CDATA[oIDrpjqASyTPnxRmpS9O_ruZGsfk]]></FLACFromUserName> <CreateTime>1359036619</CreateTime> <MsgType><![CDATA[location]]></MsgType> <Location_X>22.539968</Location_X> <Location_Y>113.954980</Location_Y> <Scale>16</Scale> <Label><![CDATA[中国广东省深圳市南山区华侨城深南大道9789号 邮政编码: 518057]]></Label> <MsgId>5837017832671832047</MsgId> </xml>
XML format explanation
ToUserName 消息接收方微信号,一般为公众平台账号微信号 FromUserName 消息发送方微信号 CreateTime 消息创建时间 MsgType 消息类型,地理位置为location Location_X 地理位置纬度 Location_Y 地理位置经度 Scale 地图缩放大小 Label 地理位置信息 MsgId 消息ID号
2. Obtaining surrounding area information
Baidu Map Place API is a simple HTTP interface used to return a query Certain types of POI data in a region, and provides detailed query services for a single POI. Users can use C#, C++, Java and other development languages to send HTTP requests and receive json, xml data.
Place API provides regional search POI services, POI details services, group purchase information retrieval services, and merchant group purchase details inquiries. The regional search POI service provides three regional search methods: within-city search, rectangular search, and circular area search.
We use circular area retrieval to implement the nearby search function.
place area retrieval POI service interface is as follows:
http://api.map.baidu.com/place/v2/search
The above is the detailed content of WeChat development public account platform video tutorial. For more information, please follow other related articles on the PHP Chinese website!