CN110087305B - Control method and control device for rapidly acquiring accurate geographic position in application program - Google Patents

Control method and control device for rapidly acquiring accurate geographic position in application program Download PDF

Info

Publication number
CN110087305B
CN110087305B CN201811367248.6A CN201811367248A CN110087305B CN 110087305 B CN110087305 B CN 110087305B CN 201811367248 A CN201811367248 A CN 201811367248A CN 110087305 B CN110087305 B CN 110087305B
Authority
CN
China
Prior art keywords
positioning
range
mobile terminal
acquiring
geographic
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811367248.6A
Other languages
Chinese (zh)
Other versions
CN110087305A (en
Inventor
方文韬
张春龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai 2345 Network Technology Co ltd
Original Assignee
Shanghai 2345 Network Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai 2345 Network Technology Co ltd filed Critical Shanghai 2345 Network Technology Co ltd
Priority to CN201811367248.6A priority Critical patent/CN110087305B/en
Publication of CN110087305A publication Critical patent/CN110087305A/en
Application granted granted Critical
Publication of CN110087305B publication Critical patent/CN110087305B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W64/00Locating users or terminals or network equipment for network management purposes, e.g. mobility management

Abstract

The invention provides a control method for quickly acquiring an accurate geographic position in an application program, which is used for acquiring the geographic position in a hierarchical mode based on a positioning strategy and comprises the following steps: a. determining a positioning strategy based on the current configuration state of the mobile terminal, and executing the step b when the first positioning strategy is determined; when determining the second positioning strategy, executing the step d; b. obtaining a first geographic location within a first range based on one or more positioning procedures and a first positioning policy; c. the method comprises the steps of obtaining a second geographical position in a second range based on one or more positioning programs, a first positioning strategy and the first geographical position, finally achieving the effect of quickly obtaining the accurate geographical position in an application program based on different positioning strategies by obtaining different states of the mobile terminal and appointing different positioning strategies based on the different states.

Description

Control method and control device for rapidly acquiring accurate geographic position in application program
Technical Field
The invention belongs to the field of accurate positioning, and particularly relates to a control method and a control device for quickly acquiring an accurate geographic position in an application program.
Background
With the rapid development of the technology and the advancement of the times, the living standard of people is also dramatically improved, and with the emergence of intelligent terminals, nowadays, smart phones become necessities in the life of people, and no matter work, life or shopping can be completed through the smart phones.
At present, in any field, the corresponding operation can be completed through the application program of the smart phone, various fields such as shopping, movie and TV play, hotel reservation and the like have various application programs, however, many applications are used to acquire the geographic location of the user, such as shopping through an application in a smart phone, when a user places an order, the geographical location of the user must be acquired first, and there are usually two ways to acquire, one is that manual input by the user, which is bound to cause a waste of time, while at the same time the user does not guarantee that detailed geographical locations can be known, secondly, accurate positioning can be obtained only by starting a third-party map application in the mobile phone, and the starting of the third-party map application inevitably brings pressure to the operation of the mobile phone and also has the possibility of jamming.
At present, there is no method in the market to solve the above problems, and particularly, there is no control method and control apparatus for quickly acquiring an accurate geographical location in an application program.
Disclosure of Invention
In view of the technical defects in the prior art, an object of the present invention is to provide a control method and a control device for rapidly obtaining an accurate geographic position in an application program, and according to an aspect of the present invention, a control method for rapidly obtaining an accurate geographic position in an application program is provided, which is based on a positioning policy hierarchy-type geographic position obtaining method, and includes the following steps:
a. determining a positioning strategy based on the current configuration state of the mobile terminal, and executing the step b when the first positioning strategy is determined; when determining the second positioning strategy, executing the step d;
b. obtaining a first geographic location within a first range based on one or more positioning procedures and a first positioning policy;
c. acquiring a second geographic location within a second range based on the one or more positioning programs, the first positioning policy and the first geographic location;
d. and taking the geographic position information matched with the current configuration state in the mobile terminal as a second geographic position based on a second positioning strategy.
Preferably, the step a comprises the steps of:
a 1: determining whether the GPS is in an on state based on the current configuration state, if so, determining that the current configuration state uses a first positioning strategy, and if not, executing the step a 2;
a 2: and determining whether the mobile terminal data network is in an open state or not based on the current configuration state, and if so, determining that the current configuration state uses a second positioning strategy.
Preferably, the step b comprises the steps of:
b 1: judging whether a first geographical position within a first range can be obtained or not based on a first positioning program, if so, executing the step c, and if not, executing the step b 2;
b 2: judging whether a first geographical position in a first range can be obtained or not based on a second positioning program, if so, executing the step c, and if not, executing the step b 3;
b 3: and c, judging whether the first geographic position in the first range can be obtained or not based on the third positioning program, and if so, executing the step c.
Preferably, the first geographical location matches the second range.
Preferably, the step c includes the steps of:
c 1: judging whether a second geographical position within a second range can be obtained or not based on the first positioning program, and if not, executing the step c 2;
c 2: judging whether a second geographical position within a second range can be obtained or not based on the second positioning program, and if not, executing the step c 3;
c 3: and judging whether a second geographic position within a second range can be acquired or not based on the third positioning program.
Preferably, the first range is on the order of a thousand meters.
Preferably, the second range is in the order of hundreds of meters.
Preferably, the step d comprises the steps of:
d 1: acquiring a geographical position matched with the IP information based on the IP information in the current configuration state of the mobile terminal;
d 2: and taking the geographic position matched with the IP information as a second geographic position.
Preferably, the application program comprises at least a weather APP.
Preferably, the method further comprises the step e:
and acquiring weather information matched with the second geographical position in a database based on the second geographical position.
According to another aspect of the present invention, there is provided a control device for rapidly acquiring a precise geographic position in an application program, which hierarchically acquires the geographic position based on a positioning policy, including:
the first determination device 1: determining a positioning strategy based on the current configuration state of the mobile terminal;
the first acquisition means 2: obtaining a first geographic location within a first range based on one or more positioning procedures and a first positioning policy;
the second acquisition means 3: acquiring a second geographic location within a second range based on the one or more positioning programs, the first positioning policy and the first geographic location;
the third acquiring means 4: and taking the geographic position information matched with the current configuration state in the mobile terminal as a second geographic position based on a second positioning strategy.
Preferably, the first determination means comprises:
the second determination means 11: determining whether a GPS is in an on state based on the current configuration state;
the third determination means 12: and determining whether the data network of the mobile terminal is in an opening state or not based on the current configuration state.
Preferably, the first acquiring means includes:
the first judgment means 21: judging whether a first geographical position within a first range can be acquired or not based on a first positioning program;
second determination means 22: judging whether a first geographic position within a first range can be acquired or not based on a second positioning program;
third determination device 23: and judging whether the first geographic position in the first range can be acquired or not based on the third positioning program.
Preferably, the second acquiring means includes:
the fourth judgment means 31: judging whether a second geographic position within a second range can be acquired or not based on the first positioning program;
fifth judging means 32: judging whether a second geographic position within a second range can be obtained or not based on a second positioning program;
sixth judging means 33: and judging whether a second geographic position within a second range can be acquired or not based on the third positioning program.
Preferably, the third acquiring means includes:
the fourth acquiring means 41: acquiring a geographical position matched with the IP information based on the IP information in the current configuration state of the mobile terminal;
the first processing device 42: and taking the geographic position matched with the IP information as a second geographic position.
Preferably, the method further comprises the following steps:
fifth acquiring means 5: and acquiring weather information matched with the second geographical position in a database based on the second geographical position.
The invention provides a control method and a control device for quickly acquiring an accurate geographic position in an application program, which finally realize the effect of quickly acquiring the accurate geographic position in the application program based on different positioning strategies by acquiring different states of a mobile terminal and appointing different positioning strategies based on different states.
Drawings
Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments with reference to the following drawings:
fig. 1 is a schematic flowchart illustrating a control method for rapidly acquiring a precise geographical location in an application according to an embodiment of the present invention;
fig. 2 is a schematic specific flowchart illustrating a first embodiment of the present invention, which determines different positioning strategies according to different configuration states of a mobile terminal;
fig. 3 is a schematic flow chart illustrating a specific process of acquiring a first geographical location within a first range based on one or more positioning procedures and a first positioning policy according to a second embodiment of the present invention;
fig. 4 is a schematic diagram illustrating a specific process of obtaining a second geographic location within a second range based on one or more positioning procedures, a first positioning policy and the first geographic location according to a third embodiment of the present invention;
fig. 5 is a schematic specific flowchart illustrating that the geographic location information matched with the current configuration state in the mobile terminal is used as the second geographic location based on the second positioning policy according to the fourth embodiment of the present invention;
fig. 6 is a schematic specific flowchart illustrating a fifth embodiment of the present invention, wherein the weather information matched with the second geographic location is obtained in a database based on the second geographic location; and
fig. 7 is a schematic block diagram of a control device for rapidly acquiring a precise geographical location in an application according to another embodiment of the present invention.
Detailed Description
In order to better and clearly show the technical scheme of the invention, the invention is further described with reference to the attached drawings.
Fig. 1 shows a detailed flowchart of a control method for rapidly acquiring an accurate geographical location in an application according to an embodiment of the present invention, which specifically includes the following steps:
firstly, entering a step S101, determining a positioning strategy based on the current configuration state of the mobile terminal, and executing a step S102 when determining a first positioning strategy; when the second positioning policy is determined, step S104 is executed, preferably, the first positioning policy may be used in a state where it is determined that the GPS function of the mobile terminal is turned on, and the second positioning policy may be used in a state where the GPS function of the mobile terminal is turned off but the data network of the mobile terminal is turned on.
Then, step S102 is entered, a first geographic location within a first range is obtained based on one or more positioning programs and a first positioning policy, in the foregoing steps, the first positioning policy is used in a state that a GPS function of the mobile terminal is turned on, and on the premise that the GPS function is turned on, the first geographic location within the first range can be obtained through one or more positioning programs in the mobile terminal, the one or more application programs can be a map program carried by the mobile terminal or a map application installed through downloading, the first range is preferably in units of kilometers, and the first geographic location is preferably in units of province, city, county or scenic area, and it is understood by those skilled in the art that when the GPS function in the mobile terminal is turned on, the first geographic location of the user within the first range can be directly obtained through one or more positioning programs in the mobile terminal, such as Changsha, Hunan province, and east lake scenic spots, Wuhan, Hubei province, etc., it is understood by those skilled in the art that when using GPS for positioning, the positioning error will be controlled within twenty meters.
Next, step S103 is performed, a second geographic location within a second range is obtained based on one or more positioning programs, a first positioning policy and the first geographic location, the GPS function in the mobile terminal obtains the first geographic location within the first range through the one or more positioning programs, performs re-positioning based on the obtained first geographic location within the first range, and obtains a more accurate second geographic location within the second range through the one or more positioning programs, where the second range is preferably on the hundred-meter level or on the twenty-meter level, and the second geographic location may be preferably on the unit of a street, a house number or a store, such as the u-bei province, han city, baofeng two 53, with the house number as the most accurate geographic location.
When a second positioning strategy is determined, step S104 is performed, based on the second positioning strategy, the geographic location information matched with the current configuration state in the mobile terminal is used as a second geographic location, the GPS function of the mobile terminal is not turned on, but the data network of the mobile terminal is turned on, then the second positioning strategy is used, the IP address of the data network of the mobile terminal is obtained, the geographic location matched with the IP address is obtained, the geographic location is used as the second geographic location, and the skilled person understands that the accuracy of the geographic location obtained by obtaining the IP address of the data network of the mobile terminal is in the order of hundred meters.
Fig. 2 shows a detailed flowchart of a first embodiment of the present invention, which is used for determining different positioning policies according to different configuration states of a mobile terminal, and it is understood by those skilled in the art that fig. 2 is a sub-step of step S101 in fig. 1, and specifically includes the following steps:
first, step S1011 is entered, and it is determined whether the GPS is in an on state based on the current configuration state, if so, it is determined that the current configuration state uses the first positioning policy, and if not, step S1012 is executed. Acquiring whether the GPS function of the mobile terminal is started or not by acquiring the position access authority of the mobile terminal, if the GPS function of the mobile terminal is in the starting state, determining that the current configuration state uses a first positioning strategy for positioning, and if the GPS function of the mobile terminal is in the closing state, executing step S1012.
In a preferred embodiment, the GPS function of the mobile terminal is found to be in the off state by acquiring the GPS on state of the mobile terminal, the user is preferably prompted to turn on the GPS function, if the user selects to turn on the GPS function of the mobile terminal, the first positioning policy is used, and if the user does not select to turn on the GPS function, step S1012 is executed.
Finally, step S1012 is proceeded to determine whether the data network of the mobile terminal is in an on state based on the current configuration state, and if so, it is determined that the current configuration state uses the second positioning policy.
In a very special variation, if neither the GPS function of the mobile terminal nor the data network function of the mobile terminal is enabled, a third positioning policy may be executed, where the third positioning policy may preferably obtain the call permission of the mobile terminal, obtain a signal base station matching the direction of the mobile terminal by obtaining the call permission, and determine the current location of the user through the signal base station.
Fig. 3 shows a specific flowchart of a second embodiment of the present invention, which obtains a first geographic location within a first range based on one or more positioning procedures and a first positioning policy, and specifically includes the following steps:
firstly, step S201 is performed, whether a first geographic location within a first range can be obtained is determined based on a first positioning program, if yes, step S204 is performed, and if not, step S202 is performed, and those skilled in the art understand that the first geographic location within the first range is obtained through the positioning program in the mobile terminal, one of the one or more positioning programs in the mobile terminal can be determined as the first positioning program according to user preferences, and the positioning program with the fastest starting speed in the one or more positioning programs can be used as the first positioning program, the first positioning program is started and the first geographic location within the first range is obtained, if yes, step S204 is performed, and if the first geographic location within the first range cannot be obtained, step S202 is performed.
Then, step S202 is performed, it is determined whether the first geographic position in the first range can be obtained based on the second positioning program, if yes, step S204 is performed, and if not, step S203 is performed, in such an embodiment, if the first geographic position in the first range cannot be obtained through the first positioning program, another positioning program is started as the second positioning program to obtain the first geographic position in the first range, correspondingly, if the first geographic position in the first range is obtained through the second positioning program, step S204 is performed, and if the first geographic position in the first range is not obtained, step S203 is performed.
Subsequently, step S203 is performed, it is determined whether the first geographic position in the first range can be obtained based on a third positioning program, if yes, step S204 is performed, if the first geographic position in the first range cannot be obtained through the second positioning program, another positioning program is started as the third positioning program to obtain the first geographic position in the first range, and correspondingly, if the first geographic position in the first range is obtained through the third positioning program, step S204 is performed.
Those skilled in the art will understand that, if the third positioning procedure does not acquire the first geographic position within the first range, the acquisition of the first geographic position within the first range may preferably be performed through a fourth, a fifth, a sixth, and so on, positioning procedure.
In a preferred variation, if all the positioning programs in the mobile terminal cannot acquire the first geographic location within the first range, the acquisition of the geographic location may be performed through the second positioning policy or the third positioning policy.
Those skilled in the art understand that the step S204 can refer to the step 104 in fig. 1, and is not described herein again.
Fig. 4 is a schematic diagram illustrating a specific process of obtaining a second geographic location within a second range based on one or more positioning procedures, a first positioning policy, and a first geographic location according to a third embodiment of the present invention, which specifically includes the following steps:
firstly, step S301 is entered, whether a second geographic location within a second range can be obtained is determined based on a first positioning program, if not, step S302 is executed, and those skilled in the art understand that a first geographic location within a first range is obtained through a positioning program in the mobile terminal, and a second geographic location within the second range is obtained based on the first geographic location within the first range, and one of the one or more positioning programs in the mobile terminal can be determined as the first positioning program according to user preferences, and step S302 is executed by taking a positioning layer sequence with the fastest starting speed among the one or more positioning programs as the first positioning program, and starting the first positioning program and obtaining the second geographic location within the second range, and failing to obtain the second geographic location.
Then, step S302 is performed, and it is determined whether a second geographic location within a second range can be obtained based on a second positioning program, if the second geographic location within the second range cannot be obtained, step S303 is performed, in such an embodiment, if the second geographic location within the second range cannot be obtained through the first positioning program, another positioning program is started as the second positioning program to obtain the second geographic location within the second range, and correspondingly, if the second geographic location within the second range is obtained through the second positioning program, step S303 is performed.
Finally, step S303 is proceeded to determine whether a second geographic location within a second range can be obtained based on a third positioning procedure, if the second geographical position within the second range cannot be obtained through the second positioning program, if the third positioning program does not acquire the second geographic position within the second range, the acquisition of the first geographic position within the first range may preferably be performed through a plurality of positioning programs, such as a fourth positioning program, a fifth positioning program, a sixth positioning program, and the like, and if all the positioning programs in the mobile terminal cannot acquire the second geographic position within the second range, preferably, the acquisition of the second geographic location within the second range may be performed by the second positioning policy or a third positioning policy.
Fig. 5 is a schematic specific flowchart illustrating a fourth embodiment of the present invention, in which the geographic location information in the mobile terminal matching the current configuration state is used as the second geographic location based on the second positioning policy, and those skilled in the art understand that fig. 5 is a sub-step of step S104 in fig. 1, and specifically includes the following steps:
firstly, step S1041 is entered, and a geographic location matched with the IP information is obtained based on the IP information in the current configuration state of the mobile terminal, in such an embodiment, the mobile terminal obtains an IP address for data transmission and data reception of the data network of the mobile terminal through the data network, and performs positioning through a data base station interacting with the data network, so as to obtain a geographic location matched with the IP of the data network of the mobile terminal.
Finally, step S1042 is executed, and the geographic location matched with the IP information is taken as a second geographic location, and those skilled in the art understand that the geographic location matched with the mobile terminal data network IP is a geographic location obtained from a coverage area of a nearest data interaction base station, and the coverage area of the data network interaction base station is between 50 square meters and 150 square meters, and by obtaining the coverage area of the data interaction base station, the accuracy requirement of the second geographic location is met, and the coverage area of the data interaction base station where the mobile terminal is located can be regarded as the second geographic location.
Fig. 6 is a schematic flowchart illustrating a specific process of acquiring weather information matching the second geographic location in the database based on the second geographic location according to a fifth embodiment of the present invention, which specifically includes the following steps:
those skilled in the art understand that step S401, step S402, step S403, and step S404 in fig. 6 may refer to step S101, step S102, step S103, and step S104 in fig. 1, which are not described herein again.
And finally, step S405 is performed, weather information matched with the second geographic position is obtained from a database based on the second geographic position, and those skilled in the art understand that the control method of the present invention can also be applied to weather APP, the second geographic position is obtained through the foregoing steps, and the weather information matched with the second geographic position is updated in real time through the database in the weather APP or through a data network.
Further, if the accurate positioning method of the present invention is used by other applications, the weather information matched with the second geographic location may be attached while the second geographic location is acquired.
Fig. 7 is a schematic block connection diagram of a control device for rapidly acquiring a precise geographic position in an application according to another embodiment of the present invention, and those skilled in the art will understand that the present invention provides a control device for rapidly acquiring a precise geographic position in an application, which hierarchically acquires a geographic position based on a positioning policy, and includes: the first determination device 1: determining a positioning policy based on a current configuration state of the mobile terminal, by acquiring different states of the mobile terminal, and specifying different positioning policies based on the different states, preferably, the first positioning policy may be used in a state where it is determined that a GPS function of the mobile terminal is turned on, and the second positioning policy may be used in a state where the GPS function of the mobile terminal is turned off but a data network of the mobile terminal is turned on, and the first determining device 1 is connected to the first acquiring device 2 and the third acquiring device 4 and connected to the second determining device 11 and the third determining device 12.
Further, the first acquisition device 2 is also included: acquiring a first geographical position within a first range based on one or more positioning programs and a first positioning policy, acquiring the first geographical position within the first range through the one or more positioning programs in the mobile terminal on the premise that the GPS function is turned on, wherein the one or more applications may be map programs installed in the mobile terminal or map applications installed by downloading, the first range is preferably in kilometers, and the first geographical position may preferably be in province, city, county or scenic spot, and those skilled in the art understand that when the GPS function in the mobile terminal is turned on, the first geographical position of the user within the first range may be directly acquired through the one or more positioning programs in the mobile terminal, and the first acquiring device 2 is connected to the first determining device 1 and the second acquiring device 3, and is connected to the first determining device 21, the second determining device 22, and the third determining device 23.
Further, a second acquisition device 3 is also included: a second geographic location in the second range is obtained based on one or more positioning programs, a first positioning policy and the first geographic location, the GPS function in the mobile terminal obtains the first geographic location in the first range through one or more positioning programs, and performs re-positioning based on the obtained first geographic location in the first range, obtains a more accurate second geographic location in the second range through one or more positioning programs, the second range is preferably a hundred-meter level or a more accurate twenty-meter level, the second geographic location may preferably be a street, a house number or a store as a unit, the second obtaining device 3 is connected to the first obtaining device 2 and the third obtaining device 4, and is connected to the fourth determining device 31, the fifth determining device 32 and the sixth determining device 33.
Further, a third acquiring device 4 is also included: based on a second positioning policy, using the geographic location information matched with the current configuration state in the mobile terminal as a second geographic location, where the GPS function of the mobile terminal is not turned on but the data network of the mobile terminal is turned on, using the second positioning policy, obtaining the IP address of the data network of the mobile terminal, obtaining a geographic location matched with the IP address, using the geographic location as the second geographic location, obtaining the geographic location obtained by obtaining the IP address of the data network of the mobile terminal, where the accuracy is hundreds of meters, and connecting the third obtaining device 4 with the first determining device 1 and the fifth obtaining device 5, and with the fourth obtaining device 41 and the first processing device 42.
Further, second determining means 11 are included: determining whether the GPS is in an on state based on the current configuration state, acquiring whether the GPS function of the mobile terminal is on by acquiring the position access right of the mobile terminal, if the GPS function of the mobile terminal is in the on state, determining that the current configuration state uses a first positioning strategy for positioning, and if the GPS function of the mobile terminal is in the off state, executing a third determining device 12, wherein the second determining device 11 is connected with the first determining device 1 and the third determining device 12.
Further, third determining means 12 are included: the third determining means 12 is connected to the first determining means 1 and the second determining means 11, and determines whether to use a second positioning policy by determining whether the data network of the mobile terminal is on based on the current configuration state, whether the data network of the mobile terminal is on, and whether the GPS function of the mobile terminal is not on.
Further, the first judgment device 21 is also included: determining whether a first geographical position within a first range can be obtained based on a first positioning procedure, obtaining the first geographical position within the first range by the positioning procedure in the mobile terminal, one or more positioning programs in the mobile terminal can be determined to be the first positioning program according to user preferences, and the positioning sequence with the highest starting speed in the one or more positioning programs can be used as the first positioning program, by starting the first location procedure and acquiring a first geographical location within a first range, the first geographical location, if available, the second acquiring means 3 is executed to, if the first geographical position within the first range is not acquired, then the process goes to a second determining device 22, and the first determining device 21 is connected to the first acquiring device 2 and the second acquiring device 3, and is connected to the second determining device 22 and the third determining device 23.
Further, a second determination device 22 is also included: whether a first geographical position in a first range can be acquired is judged based on a second positioning program, if the first geographical position in the first range cannot be acquired by the first positioning program, another positioning program is started to serve as a second positioning program, the acquisition of the first geographical position in the first range is carried out, correspondingly, if the first geographical position in the first range is acquired by the second positioning program, a second acquisition device 3 is executed, and if the first geographical position in the first range is not acquired, a third judgment device 23 is executed, wherein the second judgment device 22 is connected with the first acquisition device 2 and the second acquisition device 3, and is connected with the first judgment device 21 and the third judgment device 23.
Further, third judging means 23 is included: whether the first geographic position in the first range can be acquired is judged based on a third positioning program, if the first geographic position in the first range cannot be acquired through the second positioning program, another positioning program is started to serve as a third positioning program, the first geographic position in the first range is acquired, correspondingly, if the first geographic position in the first range is acquired through the third positioning program, a second acquiring device 3 is executed, and a third judging device 23 is connected with the first acquiring device 2 and the second acquiring device 3 and is connected with the second judging device 22.
Further, a fourth judging device 31 is also included: whether a second geographic position in a second range can be acquired is judged based on a first positioning program, a first geographic position in the first range is acquired through the positioning program in the mobile terminal, a second geographic position in the second range is acquired based on the first geographic position in the first range, one or more positioning programs in the mobile terminal can determine that one of the positioning programs is a first positioning program according to user preference, and a positioning program with the highest starting speed in the one or more positioning programs can be used as the first positioning program, the first positioning program is started to acquire the second geographic position in the second range, and if the acquisition fails, a fifth judging device 32 is executed, and the fourth judging device 31 is connected with the second acquiring device 3 and the fifth judging device 32.
Further, a fifth judging device 32 is also included: whether a second geographical position in a second range can be acquired is judged based on a second positioning program, if the second geographical position in the second range cannot be acquired through the first positioning program, another positioning program is started to serve as the second positioning program to acquire the second geographical position in the second range, correspondingly, if the second geographical position in the second range is acquired through the second positioning program, a sixth judging device 33 is executed, and the fifth judging device 32 is connected with the second acquiring device 3, the fourth judging device 31 and the sixth judging device 33.
Further, a sixth judging device 33 is also included: and judging whether a second geographic position in a second range can be acquired or not based on a third positioning program, if the second geographic position in the second range cannot be acquired through the second positioning program, acquiring the second geographic position in the second range by starting another positioning program as the third positioning program, and using the sixth judging device 33, the second acquiring device 3 and the fifth judging device 32 as the second positioning program.
Further, a fourth obtaining device 41 is also included: the geographic position matched with the IP information is acquired based on the IP information in the current configuration state of the mobile terminal, the mobile terminal acquires the IP addresses of data transmission and data reception of the data network of the mobile terminal through the data network, and performs positioning through the data base station interacting with the data network to acquire the geographic position matched with the IP of the data network of the mobile terminal, and the fourth acquiring device 41 is connected with the third acquiring device 4 and the first processing device 42.
Further, a first processing device 42 is also included: the geographic location matched with the IP information is used as a second geographic location, the geographic location matched with the data network IP of the mobile terminal is a geographic location obtained from the coverage of the nearest data interaction base station, the coverage of the data network interaction base station is between 50 square meters and 150 square meters, and by obtaining the coverage of the data interaction base station, the accuracy requirement of the second geographic location is met, and the coverage of the data interaction base station where the mobile terminal is located can be regarded as the second geographic location, and the first processing device 42 is connected with the third obtaining device 4 and the fourth obtaining device 41.
Further, a fifth acquiring device 5 is also included: based on second geographical position in the database acquire with second geographical position assorted weather information, through acquiring the second geographical position to through the database in the weather APP or through data network real-time update with second geographical position assorted weather information, fifth acquisition device 5 with third acquisition device 4 connects.
The foregoing description of specific embodiments of the present invention has been presented. It is to be understood that the present invention is not limited to the specific embodiments described above, and that various changes and modifications may be made by one skilled in the art within the scope of the appended claims without departing from the spirit of the invention.

Claims (15)

1. A control method for rapidly acquiring an accurate geographic position in an application program is used for hierarchically acquiring the geographic position based on a positioning strategy, and is characterized by comprising the following steps of:
a. determining a positioning strategy based on the current configuration state of the mobile terminal, and executing the step b when the first positioning strategy is determined; when determining the second positioning strategy, executing the step d;
b. obtaining a first geographic location within a first range based on one or more positioning procedures and a first positioning policy;
c. acquiring a second geographic location within a second range based on the one or more positioning programs, the first positioning policy and the first geographic location;
d. using the geographic position information matched with the current configuration state in the mobile terminal as a second geographic position based on a second positioning strategy,
wherein, the step b comprises the following steps:
b 1: judging whether a first geographical position within a first range can be obtained or not based on a first positioning program, if so, executing the step c, and if not, executing the step b 2;
b 2: judging whether a first geographical position in a first range can be obtained or not based on a second positioning program, if so, executing the step c, and if not, executing the step b 3;
b 3: determining whether the first geographical position within the first range can be obtained based on the third positioning procedure, if so, executing step c,
if the GPS function and the data network function of the mobile terminal are not started, executing a third positioning strategy, wherein the third positioning strategy acquires the communication authority of the mobile terminal, acquires a signal base station matched with the mobile terminal by acquiring the communication authority, and determines the current position of the user through the signal base station, wherein,
and under the condition that the GPS function of the mobile terminal is started, the determined first positioning strategy is GPS positioning, and under the condition that the GPS function of the mobile terminal is not started but the data network is started, the determined second positioning strategy is IP address positioning of the data network.
2. The control method according to claim 1, wherein the step a includes the steps of:
a 1: determining whether the GPS is in an on state based on the current configuration state, if so, determining that the current configuration state uses a first positioning strategy, and if not, executing the step a 2;
a 2: and determining whether the mobile terminal data network is in an open state or not based on the current configuration state, and if so, determining that the current configuration state uses a second positioning strategy.
3. Control method according to claim 1 or 2, characterized in that the first geographical location matches the second range.
4. The control method according to claim 3, wherein the step c includes the steps of:
c 1: judging whether a second geographical position within a second range can be obtained or not based on the first positioning program, and if not, executing the step c 2;
c 2: judging whether a second geographical position within a second range can be obtained or not based on the second positioning program, and if not, executing the step c 3;
c 3: and judging whether a second geographic position within a second range can be acquired or not based on the third positioning program.
5. The control method according to claim 1, 2 or 4, characterized in that the first range is in the order of a thousand meters.
6. The control method according to claim 5, characterized in that the second range is in the order of hundreds of meters.
7. The control method according to claim 1 or 2 or 4 or 6, wherein the step d comprises the steps of:
d 1: acquiring a geographical position matched with the IP information based on the IP information in the current configuration state of the mobile terminal;
d 2: and taking the geographic position matched with the IP information as a second geographic position.
8. The control method according to claim 7, characterized in that said application program comprises at least a weather APP.
9. The control method according to claim 8, characterized by further comprising step e:
and acquiring weather information matched with the second geographical position in a database based on the second geographical position.
10. A control device for rapidly acquiring a precise geographical position in an application program, which adopts the control method of any one of claims 1-9 and hierarchically acquires the geographical position based on a positioning strategy, comprising:
first determination means (1): determining a positioning strategy based on the current configuration state of the mobile terminal;
first acquisition means (2): obtaining a first geographic location within a first range based on one or more positioning procedures and a first positioning policy;
second acquisition means (3): acquiring a second geographic location within a second range based on the one or more positioning programs, the first positioning policy and the first geographic location;
third acquisition means (4): and taking the geographic position information matched with the current configuration state in the mobile terminal as a second geographic position based on a second positioning strategy.
11. The control apparatus according to claim 10, wherein the first determination means includes:
second determination means (11): determining whether a GPS is in an on state based on the current configuration state;
third determination means (12): and determining whether the data network of the mobile terminal is in an opening state or not based on the current configuration state.
12. The control device according to claim 10 or 11, wherein the first acquisition means includes:
first judgment means (21): judging whether a first geographical position within a first range can be acquired or not based on a first positioning program;
second determination means (22): judging whether a first geographic position within a first range can be acquired or not based on a second positioning program;
third determination means (23): and judging whether the first geographic position in the first range can be acquired or not based on the third positioning program.
13. The control device according to claim 12, wherein the second acquisition means includes:
fourth judgment means (31): judging whether a second geographic position within a second range can be acquired or not based on the first positioning program;
fifth judging means (32): judging whether a second geographic position within a second range can be obtained or not based on a second positioning program;
sixth judging means (33): and judging whether a second geographic position within a second range can be acquired or not based on the third positioning program.
14. The control device according to claim 10, 11 or 13, wherein the third acquisition means includes:
fourth acquisition means (41): acquiring a geographical position matched with the IP information based on the IP information in the current configuration state of the mobile terminal;
first processing means (42): and taking the geographic position matched with the IP information as a second geographic position.
15. The control device according to claim 14, characterized by further comprising:
fifth acquiring means (5): and acquiring weather information matched with the second geographical position in a database based on the second geographical position.
CN201811367248.6A 2018-11-16 2018-11-16 Control method and control device for rapidly acquiring accurate geographic position in application program Active CN110087305B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811367248.6A CN110087305B (en) 2018-11-16 2018-11-16 Control method and control device for rapidly acquiring accurate geographic position in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811367248.6A CN110087305B (en) 2018-11-16 2018-11-16 Control method and control device for rapidly acquiring accurate geographic position in application program

Publications (2)

Publication Number Publication Date
CN110087305A CN110087305A (en) 2019-08-02
CN110087305B true CN110087305B (en) 2021-06-04

Family

ID=67412908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811367248.6A Active CN110087305B (en) 2018-11-16 2018-11-16 Control method and control device for rapidly acquiring accurate geographic position in application program

Country Status (1)

Country Link
CN (1) CN110087305B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111586577B (en) * 2020-04-16 2022-09-02 北京小米移动软件有限公司 Positioning method and device, mobile terminal and storage medium
CN115412593B (en) * 2021-05-14 2024-04-16 海能达通信股份有限公司 Method, control method, device, equipment and storage medium for adjusting function authority

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6570530B2 (en) * 2001-03-05 2003-05-27 Qualcomm Incorporated Method and apparatus providing improved position estimate based on an initial coarse position estimate
JP2007256110A (en) * 2006-03-23 2007-10-04 Seiko Epson Corp Positioning device, positioning device control method and program, and computer-readable recording medium for recording positioning device control program
CN101969599A (en) * 2010-10-22 2011-02-09 厦门雅迅网络股份有限公司 Geographical position based system and implementation method thereof for acquiring weather forecast
CN102036165A (en) * 2010-12-16 2011-04-27 中兴通讯股份有限公司 Positioning method and user terminal supporting multiple positioning modes
JP5855278B2 (en) * 2012-01-20 2016-02-09 聯發科技股▲ふん▼有限公司Mediatek Inc. Position option control method for labor saving of drive test in LTE system
CN104215980B (en) * 2013-06-05 2017-02-08 深圳市赛格导航科技股份有限公司 GPS (global positioning system) positioning method and device
CN103763678A (en) * 2014-01-27 2014-04-30 歌联科技(上海)有限公司 Method for achieving classification positioning by mobile monitoring terminal
CN104853431A (en) * 2014-02-18 2015-08-19 中兴通讯股份有限公司 Geographical location information positioning method and device
CN104468771B (en) * 2014-12-03 2019-02-26 北京国双科技有限公司 The determination method and device in geographical location
CN104539750A (en) * 2014-12-30 2015-04-22 深圳市兰丁科技有限公司 IP locating method and device
CN106936887B (en) * 2015-12-31 2020-10-20 珠海金山办公软件有限公司 Geographic position positioning method and device
CN108153766A (en) * 2016-12-05 2018-06-12 天脉聚源(北京)科技有限公司 A kind of method and system for showing classification geography information
CN107682823A (en) * 2017-09-18 2018-02-09 维沃移动通信有限公司 A kind of Weather information adding method and mobile terminal

Also Published As

Publication number Publication date
CN110087305A (en) 2019-08-02

Similar Documents

Publication Publication Date Title
US20190331501A1 (en) Method and device for planning route, server and robot
KR101430300B1 (en) Space and time based device customization
EP3304119B1 (en) Location determination using a companion device
CN105960004B (en) Mobile terminal positioning function control method and mobile terminal
CN105487389A (en) Method and device for controlling intelligent equipment
RU2667795C2 (en) Server access method and apparatus
WO2017020554A1 (en) Method and device for providing wireless access point
CN105045610A (en) Method and apparatus for starting application of intelligent device
CN110087305B (en) Control method and control device for rapidly acquiring accurate geographic position in application program
EP3355596A1 (en) Positioning information processing method and apparatus
CN103517209A (en) Method and apparatus for providing semantic location in electronic device
CN105050038B (en) A kind of method, apparatus and system monitoring location information of mobile terminal
CN108168569A (en) Air navigation aid, device, storage medium, mobile terminal and onboard system
CN103913164A (en) Mobile-terminal-based positioning method and system
CN105403214A (en) Indoor positioning method and user terminal
CN106027191A (en) Time updating method, device and terminal equipment
CN106383458B (en) A kind of the wireless universal control method and system of electrical equipment
CN107241694B (en) Parameter adjusting method and mobile terminal
CN103648157A (en) A method for a mobile terminal to request wireless communication network registration, a mobile terminal, a wireless communication network server, and a system
CN103269394A (en) Setting method and system of application theme of mobile terminal
US20140155099A1 (en) Method and apparatus for displaying location information of call service area in mobile terminal
CN103957502A (en) Location-based service program selecting method, device and terminal
CN103957514A (en) Method and device for prompting user
CN103813449A (en) Wireless communication fast access method and associated equipment
CN105516241A (en) Device and method for obtaining user geographical position information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant