Disclosure of Invention
The invention mainly aims to provide a method for realizing the positioning service of a mobile terminal, aiming at realizing the LBS of the mobile terminal and improving the user experience.
The invention provides a method for realizing positioning service of a mobile terminal, which comprises the following steps:
the mobile terminal sends a location-based service LBS service request to the service terminal;
and the service terminal performs corresponding processing according to the type of the LBS service request and returns a processing result to the mobile terminal.
Preferably, the step of the mobile terminal sending the LBS service request to the service terminal further comprises:
the mobile terminal sends a short message of a service registration application to the service terminal, and applies for registration LBS;
and the service terminal adds the number of the mobile terminal to a service number list according to the short message of the service registration application and sends the short message of successful service registration to the mobile terminal.
Preferably, when the LBS service request is a location query service request, the step of the service terminal performing corresponding processing according to the type of the LBS service request and returning the processing result to the mobile terminal specifically includes:
acquiring longitude and latitude information of the current position of the mobile terminal;
sending the longitude and latitude information of the current position to a server, and reading address information corresponding to the longitude and latitude information of the current position from a map database server through the server;
and sending the address information to the mobile terminal.
Preferably, when the LBS service request is a route query service request, the service terminal performs corresponding processing according to the type of the LBS service request, and the step of returning the processing result to the mobile terminal specifically includes:
acquiring longitude and latitude information of a place of departure of the mobile terminal, and converting position information of a destination into the longitude and latitude information;
sending the latitude and longitude information of the departure place and the latitude and longitude information of the destination to a server, and reading route information from the departure place to the destination from a map database server through the server;
and sending the route information to a mobile terminal.
Preferably, when the LBS service request is the point of interest query service request, the service terminal performs corresponding processing according to the type of the LBS service request, and the step of returning the processing result to the mobile terminal specifically includes:
acquiring longitude and latitude information of a reference point position;
sending the longitude and latitude information of the position of the reference point and the interest point to a server, and reading the geographical position and the basic information of the interest point around the reference point from a map database server through the server;
and sending the geographic position and the basic information to a mobile terminal.
The invention also provides a system for realizing the positioning service of the mobile terminal, which comprises the following steps:
the mobile terminal is used for sending an LBS service request to the service terminal;
and the service terminal is used for carrying out corresponding processing according to the type of the LBS service request and returning a processing result to the mobile terminal.
Preferably, the mobile terminal is further configured to:
before sending the LBS service request to the service terminal, the service terminal is also used for sending a short message of service registration application to the service terminal so as to apply for the service terminal to register the LBS;
the service terminal is further configured to: and adding the number of the mobile terminal to a service number list according to the short message of the service registration application, and sending the short message of successful service registration to the mobile terminal.
Preferably, when the LBS service request is a location query service request, the service terminal is specifically configured to:
acquiring longitude and latitude information of the current position of the mobile terminal;
sending the longitude and latitude information of the current position to a server, and reading address information corresponding to the longitude and latitude information of the current position from a map database server through the server;
and sending the address information to the mobile terminal.
Preferably, when the LBS service request is a route query service request, the service terminal is specifically configured to:
acquiring longitude and latitude information of a place of departure of the mobile terminal, and converting position information of a destination into the longitude and latitude information;
sending the latitude and longitude information of the departure place and the latitude and longitude information of the destination to a server, and reading route information from the departure place to the destination from a map database server through the server;
and sending the route information to a mobile terminal.
Preferably, when the LBS service request is a point of interest query service request, the service terminal is specifically configured to:
acquiring longitude and latitude information of a reference point position;
sending the longitude and latitude information of the position of the reference point and the interest point to a server, and reading the geographical position and the basic information of the interest point around the reference point from a map database server through the server;
and sending the geographic position and the basic information to a mobile terminal.
The invention realizes the function of assisting LBS by utilizing the communication between the mobile terminal and the server. The method provided by the invention can realize the LBS related service only by the corresponding software upgrading of the mobile terminal and the service terminal, has better universality, can reduce the cost of similar services, further promotes the use of the LBS service of the mobile terminal, and improves the availability and the user experience of the mobile terminal.
Detailed Description
The technical scheme of the invention is further explained by combining the drawings and the specific embodiments in the specification. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Fig. 1 is a flowchart illustrating a method for implementing a location service of a mobile terminal according to an embodiment of the present invention.
The mobile terminal in the invention refers to a mobile terminal which can not realize LBS service, such as an old man machine and other low-end machines. The embodiment is only an old man-machine example, and other mobile terminals can refer to the embodiment.
Referring to fig. 1, the method for implementing the mobile terminal location service of the present invention includes the following steps:
s101, the old man machine initiates an LBS service request to a service terminal;
LBS (Location Based Service) contains two layers of meaning: firstly, determining the geographical position of the location of a mobile terminal or a user; and secondly, providing various types of information services related to the position. For example, the name and address of a hotel, theater, library, gas station, etc., in the vicinity of the location of the mobile terminal or user is looked up. Therefore, when the old man needs to use a certain LBS, a corresponding LBS service request can be initiated to the service terminal. The LBS service request is in a mutually agreed format between the old man machine and the service machine, and can be initiated through a short message or a fixed service number.
And step S102, the service terminal carries out corresponding processing according to the LBS service request and returns a processing result to the old machine.
The service terminal analyzes the LBS service request according to a format agreed with the old man machine to determine the type of the LBS service request, so that corresponding processing can be performed according to the service type of the LBS service request, and a processing result is returned to the old man machine. For example, when the type of the LBS service is location query, the geographic location of the elderly people is searched, and the search result is returned to the elderly people.
The invention realizes the function of assisting the LBS through the communication between the mobile phones, thereby promoting the user experience for the popularization and the use of the caring mobile phone service.
In step S102, before the service terminal analyzes the LBS service request, the validity of the old mobile phone may be determined, that is, whether the old mobile phone has registered the LBS service. Therefore, the method for implementing the mobile terminal location service of the present invention further includes, before step S101: and the old man registers the LBS service with the service terminal. The LBS service registration process comprises the following steps:
step A, the old man machine sends a short message of service registration application to a service terminal according to an agreed format, and applies for registration LBS;
b, the service terminal analyzes the short message, judges whether the short message is a service registration short message, if yes, the step C is executed; otherwise, executing step D;
step C, adding the number of the old man-machine into a service number list, and sending a short message of successful service registration to the old man-machine;
and D, sending a short message of service registration failure to the old man machine.
Fig. 2 is a schematic flow chart of the LBS service request being a location query service request in the method for implementing location services of a mobile terminal of the present invention.
Referring to fig. 2, the specific process is as follows:
step S201, the old man machine sends a position query service request to a service terminal according to an appointed format;
step S202, the service terminal analyzes the received short message and judges whether the short message is a service registration short message or not; if yes, go to step S203; otherwise, ending the flow;
step S203, judging whether the sender of the short message is a registered legal user, if so, executing step S204; otherwise, ending the flow;
step S204, determining the service type of the LBS service request as the current position query service;
step S205, judging whether the short message contains longitude and latitude information of the current position of the old man-machine, if so, executing step S207; otherwise, executing step S206;
s206, the service terminal positions the old man-machine to acquire longitude and latitude information of the current position of the old man-machine;
step S207, the service terminal sends the longitude and latitude information of the current position to a server, and the server reads address information corresponding to the longitude and latitude information of the current position from a map database server;
and S208, the service terminal sends the acquired specific address information to the old man machine through a short message according to an appointed format.
Fig. 3 is a schematic flow chart of the LBS service request being the route query service request in the method for implementing location services of a mobile terminal of the present invention.
Referring to fig. 3, the specific process is as follows:
step S301, the old man machine sends a route query service request to a service terminal according to an agreed format;
step S302, the service terminal analyzes the received short message, judges whether the type of the short message is a service registration short message, if so, executes step S303; otherwise, ending the flow;
step S303, judging whether the short message sending party is a registered legal user, if so, executing step S304; otherwise, ending the flow;
step S304, determining the service type of the LBS service request as a route query service;
step S305, judging whether the short message contains longitude and latitude information of the departure place of the old machine, if so, executing step S307; otherwise, executing step S306;
s306, the service terminal positions the old man-machine, acquires longitude and latitude information of the current position of the old man-machine, and converts the position information of the destination into longitude and latitude information;
and when the short message of the LBS service request does not contain the latitude and longitude information of the departure place of the old man machine, acquiring the latitude and longitude information of the current position of the old man machine, and taking the latitude and longitude information as the latitude and longitude information of the departure place.
Step S307, the service terminal sends the latitude and longitude information of the departure place and the latitude and longitude information of the destination to the server, and the server reads the route information from the departure place to the destination from the map database server;
step S308, the service terminal sends the route information to the old man machine through the multimedia message according to the appointed format; or the service terminal converts the route information into character information according to an appointed format and sends the character information to the old man-machine through a short message.
Fig. 4 is a schematic flow chart of an LBS service request as a service request for point of interest query in the method for implementing location services of a mobile terminal of the present invention.
Referring to fig. 4, the specific process is as follows:
step S401, the old man machine sends an interest point query service request to a service terminal according to an appointed format;
step S402, the service terminal analyzes the received short message, judges whether the type of the short message is a service registration short message, if yes, step S403 is executed; otherwise, ending the flow;
step S403, judging whether the short message sender is a registered legal user, if so, executing step S404; otherwise, ending the flow;
step S404, determining the service type of the LBS service request as the interest point inquiry service;
step S405, judging whether the short message contains latitude and longitude information of the reference point position, if so, executing step S407; otherwise, executing step S406;
s406, the service terminal positions the old man-machine to acquire longitude and latitude information of the current position of the old man-machine;
and when the short message of the LBS service request does not contain the longitude and latitude information of the reference point position, acquiring the longitude and latitude information of the current position of the old man machine, and taking the longitude and latitude information as the longitude and latitude information of the reference point position.
Step S407, the service terminal sends the longitude and latitude information of the reference point position and the interest points to the server, and the server reads the geographic position and the basic information of the interest points around the reference point from the map database server;
and step S408, the service terminal sends the geographic position of the interest point around the reference point and the basic information to the old man machine through the short message according to the appointed format.
The server can comprise a positioning server and a map server. The positioning server is mainly used for receiving positioning requests of old people and service terminals in various states and receiving positioning requests of third parties. The map server is mainly used for receiving the positioning address and the query address of the old man machine sent by the service terminal, generating a map containing queried position information according to the information and sending the map to the service terminal.
In summary, the method for implementing the location based service of the mobile terminal according to the present invention utilizes the communication between the mobile terminal and the service terminal to implement the function of assisting the LBS. The method provided by the invention can realize the LBS related service only by the corresponding software upgrading of the mobile terminal and the service terminal, has better universality, can reduce the cost of similar services, further promotes the use of the LBS service of the mobile terminal, and improves the availability and the user experience of the mobile terminal.
Fig. 5 is a schematic structural diagram of a positioning service implementation system of a mobile terminal according to an embodiment of the present invention.
Referring to fig. 5, the positioning service implementation system of the mobile terminal of the present invention includes:
the old man-machine 100 is used for sending an LBS service request to the service terminal;
and the service terminal 200 is configured to perform corresponding processing according to the type of the LBS service request, and return a processing result to the old.
LBS (Location Based Service) contains two layers of meaning: firstly, determining the geographical position of the location of a mobile terminal or a user; and secondly, providing various types of information services related to the position. For example, the name and address of a hotel, theater, library, gas station, etc., in the vicinity of the location of the mobile terminal or user is looked up. Therefore, when the old machine needs to use a certain LBS, a corresponding LBS service request can be initiated to the service terminal. The LBS service request is in a mutually agreed format between the old man machine and the service machine, and can be initiated through a short message or a fixed service number.
The service terminal analyzes the LBS service request according to a format agreed with the old man machine to determine the service type of the LBS service request, so that corresponding processing can be performed according to the service type of the LBS service request, and a processing result is returned to the old man machine. For example, when the type of the LBS service request is location query, the geographic location of the elderly people is searched, and the search result is returned to the elderly people.
The invention realizes the function of assisting the LBS through the communication between the mobile phones, thereby promoting the user experience for the popularization and the use of the caring mobile phone service.
Before analyzing the LBS service request, the service terminal may also determine the validity of the old man-machine, i.e., whether the old man-machine has registered the LBS service. Therefore, the elderly must first register for LBS services. The LBS service registration process has been described above, and will not be described herein.
It should be noted here that the number of the old machines and the service terminals may be 1, that is, their connection relationship is one-to-one; or the number of the old man-machines is only 1, the number of the service terminals is multiple, or the number of the old man-machines is multiple, the number of the service terminals is only 1, namely the connection relationship is one-to-many; or the number of the old people is more, and the number of the service terminals is also more, namely the connection relationship is many-to-many.
The LBS service request may include a location query service request, a route query service request, a point of interest query service request, etc. For different LBS service requests, the processing procedures of the service terminal are also different, and the specific processing procedures refer to the foregoing description, which is not described herein again.
The positioning service system of the mobile terminal provided by the invention realizes the function of assisting LBS by utilizing the communication between the mobile terminal and the service terminal. The method provided by the invention can realize the LBS related service only by the corresponding software upgrading of the mobile terminal and the service terminal, has better universality, can reduce the cost of similar services, further promotes the use of the LBS service of the mobile terminal, and improves the availability and the user experience of the mobile terminal.
The above description is only for the preferred embodiment of the present invention and is not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes that can be directly or indirectly applied to other related technical fields using the contents of the present specification and the accompanying drawings are included in the scope of the present invention.