Background technology
Location-based service (LBS, LocationBasedServices) also known as positioning service, LBS be by mobile communications network and global position system combine provide a kind of value-added service, the positional information such as latitude and longitude coordinates data of running fix terminal are obtained by one group of location technology, it is supplied to mobile subscriber or other people and communication system, it is achieved the various business relevant to position. Under normal circumstances, after positional information is reported to Location Service Platform by some cycles by running fix terminal, Location Service Platform is with the mode position of appearing information such as map, word. Current position service acquisition is mainly through following several ways: 1, running fix terminal periodic reporting position information. 2, by computer to access Location Service Platform network address, running fix terminal location is presented on a web browser. 3, by download location service platform client software, install on computers after successfully on special-purpose software, present running fix terminal location. 4, by downloading program of mobile terminal, program of mobile terminal presents running fix terminal location. But, all there is following deficiency in aforesaid way: 1, running fix terminal periodic reported data, consumes the data traffic of terminal built-in flow card, adds cost of serving. 2, running fix terminal periodic reported data, consumes electricity, especially under passive states so that running fix terminal standby time shortens. 3, the client software installed on computers checks that when going out location-based service is inconvenient. 4, requiring over application shop and download special program of mobile terminal, downloading process is high to network speed and traffic requirement.
Summary of the invention
It is an object of the invention to, by a kind of position service method mutual based on wechat, solve the problem that background section above is mentioned.
For reaching this purpose, the present invention by the following technical solutions:
A kind of position service method mutual based on wechat, it comprises the steps:
S101, at wechat public number open position query function;
S102, sent inquiry request by wechat public number to Location Service Platform;
S103, Location Service Platform are by two-way short message channel transmission query statement to running fix terminal;
S104, running fix terminal receive home position information after inquiry is specified;
S105, Location Service Platform receive positional information, by this information pushing to wechat platform;
S106, wechat platform show positional information in wechat public number.
Especially, described step S102 specifically includes: user pays close attention to wechat public number; User sends position enquiring by wechat public number and asks to wechat platform; Wechat platform receives the position enquiring request of user, forwards request message to Location Service Platform; The running fix end message that Location Service Platform resolution request message includes, finds the SIM number that the running fix terminal of association is embedded, and constructs the position enquiring instruction that running fix terminal is supported.
Especially, described step S104 specifically includes: running fix terminal receives position enquiring instruction, generates positional information, and this positional information note form returns back to the SMS number sending query statement; The information received is forwarded to Location Service Platform by short message channel.
Especially, described step S105 specifically includes: Location Service Platform resolves the location data of running fix terminal by predetermined format, and is pushed to wechat platform.
Especially, described step S106 specifically includes: wechat platform shows positional information in the wechat public number of customer mobile terminal in the way of including but not limited to word, GIS.
The position service method mutual based on wechat that the present invention the proposes wechat public number by paying close attention to, actively to initiate inquiry mode to obtain the positional information of running fix terminal (being associated with personnel, article), inquiry request is arrived mobile terminal by wechat platform (wechat public number), Location Service Platform, short message channel and reversely positional information is progressively pushed to wechat interface; Mobile terminal, without periodicity reported data, had both avoided mobile terminal and had frequently sent positional information consumption data flow, and saved cost, also improve mobile terminal in stand-by time passively, add service life; In addition user does not need to download special location-based service software yet, had both achieved mobile enquiry, reduction yet and has used threshold.
Detailed description of the invention
Below in conjunction with drawings and Examples, the invention will be further described. It is understood that specific embodiment described herein is used only for explaining the present invention, but not limitation of the invention. It also should be noted that, for the ease of describing, illustrate only part related to the present invention in accompanying drawing but not full content, unless otherwise defined, all technology used herein are identical with the implication that the those skilled in the art belonging to the present invention are generally understood that with scientific terminology. Term used herein is intended merely to description specific embodiment, it is not intended that in the restriction present invention.
Refer to shown in Fig. 1, the position service method flow chart mutual based on wechat that Fig. 1 provides for the embodiment of the present invention.
The present embodiment specifically includes following steps based on the position service method that wechat is mutual:
S101, at wechat public number open position query function.
S102, sent inquiry request by wechat public number to Location Service Platform.
User pays close attention to wechat public number; User sends position enquiring by wechat public number and asks to wechat platform;Wechat platform receives the position enquiring request of user, forwards request message to Location Service Platform; The running fix end message that Location Service Platform resolution request message includes, finds the SIM number that the running fix terminal of association is embedded, and constructs the position enquiring instruction that running fix terminal is supported.
S103, Location Service Platform are by two-way short message channel transmission query statement to running fix terminal.
S104, running fix terminal receive home position information after inquiry is specified.
Running fix terminal receives position enquiring instruction, generates positional information, and this positional information note form returns back to the SMS number sending query statement; The information received is forwarded to Location Service Platform by short message channel.
S105, Location Service Platform receive positional information, by this information pushing to wechat platform. In the present embodiment, Location Service Platform is pressed predetermined format and is resolved the location data of running fix terminal, and is pushed to wechat platform.
S106, wechat platform show positional information in wechat public number. Concrete, wechat platform shows positional information in the wechat public number of customer mobile terminal in the way of including but not limited to word, GIS.
Briefly the work process of the present invention is illustrated with instantiation below:
In child (numbering RY000001) one running fix terminal of upper placement, terminal number TC000001, built-in SIM is 18811991256, and wechat public number is chaxunweizhi.
1) user pays close attention to wechat public number chaxunweizhi.
2) user inputs RY000001 on mobile terminals, and RY000001 inquiry request is sent to Location Service Platform by wechat platform.
3) the running fix terminal card number that Location Service Platform is installed according to requesting query goods is 18811991256.
4) Location Service Platform generates query statement: CXWZ, and is sent instructions to the mobile number 18811991256 on running fix terminal TC000001 by short message channel.
5) running fix terminal is replied after receiving note: 116.38,39.9.
6) positional information 116.38,39.9 received is carried out address resolution, Tian An-men, East Chang'an Street, Xicheng District of Beijing by Location Service Platform, and address is pushed to wechat platform.
7) wechat platform presents address information at wechat public number interface: Tian An-men, East Chang'an Street, Xicheng District of Beijing.
The technical scheme wechat public number by paying close attention to, actively to initiate inquiry mode to obtain the positional information of running fix terminal (being associated with personnel, article), inquiry request is arrived mobile terminal by wechat platform (wechat public number), Location Service Platform, short message channel and reversely positional information is progressively pushed to wechat interface; Mobile terminal, without periodicity reported data, had both avoided mobile terminal and had frequently sent positional information consumption data flow, and saved cost, also improve mobile terminal in stand-by time passively, add service life; In addition user does not need to download special location-based service software yet, had both achieved mobile enquiry, reduction yet and has used threshold.
Note, above are only presently preferred embodiments of the present invention and institute's application technology principle. It will be appreciated by those skilled in the art that and the invention is not restricted to specific embodiment described here, various obvious change can be carried out for a person skilled in the art, readjust and substitute without departing from protection scope of the present invention. Therefore, although the present invention being described in further detail by above example, but the present invention is not limited only to above example, when without departing from present inventive concept, other Equivalent embodiments more can also be included, and the scope of the present invention is determined by appended right.