CN108696819B - Geographical location switching method - Google Patents
Geographical location switching method Download PDFInfo
- Publication number
- CN108696819B CN108696819B CN201810494732.9A CN201810494732A CN108696819B CN 108696819 B CN108696819 B CN 108696819B CN 201810494732 A CN201810494732 A CN 201810494732A CN 108696819 B CN108696819 B CN 108696819B
- Authority
- CN
- China
- Prior art keywords
- app
- mobile terminal
- area
- switching
- user
- 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.)
- Expired - Fee Related
Links
- 238000000034 method Methods 0.000 title claims abstract description 15
- 238000009434 installation Methods 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 3
- DWDGSKGGUZPXMQ-UHFFFAOYSA-N OPPO Chemical compound OPPO DWDGSKGGUZPXMQ-UHFFFAOYSA-N 0.000 description 1
- 244000062793 Sorghum vulgare Species 0.000 description 1
- 235000013305 food Nutrition 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 235000019713 millet Nutrition 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/021—Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/02—Services making use of location information
- H04W4/025—Services making use of location information using location based information parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Telephonic Communication Services (AREA)
- Navigation (AREA)
Abstract
The present invention provides a kind of method for switching geographical location on mobile terminal, mobile terminal includes position buffer queue and region caching;The each regular time T of mobile terminal stores the geographical coordinate where mobile terminal into position buffer queue, the region ID and APP of the APP of installation in the terminal is stored in the caching of region, the region APP is region when the last time APP is run where mobile terminal;When user starts APP, below mobile terminal execution the step of switching geographical location: step S100 reads the region APP that user starts from the caching of region, the first geographical coordinate P is read from the buffer queue of position1={ x1,y1};Step S200, if P1 not in the region APP, reads the second geographical coordinate P from the caching of position2={ x2,y2};Step S300, ifThe APP that user starts so is switched to the region where P1;Wherein v is preset constant.
Description
Technical Field
The present invention relates to an information processing method, and more particularly, to a method for switching geographical locations on a mobile terminal.
Background
With the popularization of intelligent mobile terminals, Location Based Services (LBS) have been rapidly developed, and many mainstream applications developed based on mobile terminals provide location based services. For example, when the user's location changes from the Hangzhou location of Beijing, the local news recommended and provided by the today's leading APP will be adjusted from the local news of Beijing to the local news of Hangzhou city; the food recommended and provided by the popular comment APP is adjusted from the catering place in Beijing city to the catering place in Hangzhou city.
However, there are still some problems with current location-based services. For example, when a user travels from Beijing to Hangzhou on a train, if the user's location on the road is Texas City, when the user turns on news-like APPs, these APPs will provide local news of Texas City, or pop up a prompt asking the user whether to switch the location from Beijing to Texas. Obviously, for the vast majority of users from Beijing to Hangzhou, there is no relation to news or other conditions in some cities on the road. Therefore, the LBS provided by the APP is not intelligent enough, thereby affecting the experience of the user during the trip.
Disclosure of Invention
In order to solve the above problem, a method for switching a geographical location on a mobile terminal is characterized in that the mobile terminal comprises a location buffer queue and a region buffer; storing the geographic coordinates of the mobile terminal in the position cache queue at each fixed time T of the mobile terminal, wherein the area cache stores the ID and the APP area of the APP installed in the mobile terminal, and the APP area is the area where the mobile terminal is located when the APP operates at the latest time; when the user starts the APP, the mobile terminal executes the following steps of switching the geographic position: step S100, reading an APP area started by a user from an area cache, and reading a first geographical seat from a position cache queueMark P1={x1,y1}. Step S200, if P1 is not in APP area, reading second geographic coordinates P from position cache2={x2,y2}. Step S300, ifThen the user-initiated APP is switched to the area where P1 is located; where v is a constant.
Drawings
FIG. 1 is a schematic diagram of a position buffer queue of the present invention;
FIGS. 2A and 2B are schematic diagrams of a zone cache of the present invention;
fig. 3 is a flow chart of a method of switching geographical locations of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The invention provides a method for switching geographical positions on a mobile terminal. The mobile terminal is generally defined as a smart phone or a tablet computer capable of running APP, and particularly includes but is not limited to apple, wary, millet, OPPO, VIVO, association, zhongxing, knonia and other brands of smart phones.
According to the invention, the mobile terminal comprises a position buffer queue and a region buffer. The position buffer queue can be physically realized in a storage area without losing data when power is down, such as a storage space of the mobile terminal; the position buffer queue may be logically implemented as a sequential queue or a circular queue. The present invention is not intended to limit the physical and logical implementation of the position buffer queue, and those skilled in the art will appreciate that any type of queue in the prior art can be used as the position buffer queue of the present invention, and will also fall into the protection scope of the present invention.
According to the invention, the mobile terminal stores the geographical coordinates of the mobile terminal in the location buffer queue every fixed time T (e.g. 10-20 minutes, preferably 15 minutes), thereby forming a schematic diagram of the location buffer queue as shown in fig. 1. Taking T as an example of 15 minutes, if the time when the mobile terminal stores P1 in the location buffer queue is 12:00 am, the storage time of P2 is 11:45, the storage time of P3 is 11:30, and so on. Further, the position buffer queue stores the storage time T1 of P1, in the foregoing example, T1 is 12: 00.
According to the present invention, the mobile terminal further includes a region cache, similar to the location cache queue, and the present invention is not intended to limit the physical implementation and the logical implementation of the region cache, and those skilled in the art know that any type of cache in the prior art can be used as the region cache of the present invention, and will also fall into the protection scope of the present invention. Preferably, the region cache is implemented as a profile table.
As shown in fig. 2A, the area cache stores an ID of an APP and an APP area installed in the mobile terminal, where the ID of the APP is an ID of a unique identifier APP, and the APP area is an area where the mobile terminal is located when the APP runs last time. Take the first record as an example, where APPID is ID-1 (exemplary ID-1 may represent that APP is "today's head of things" APP), and APP area is "beijing", which means that the user of the mobile terminal has used "today's head of things" APP last time and the area is "beijing".
According to the invention, when the user starts the APP, as shown in fig. 3, the mobile terminal performs the following steps of switching the geographical location:
step S100, reading an APP area started by a user from an area cache; specifically, when a user starts an APP (for example, the first APP of today), a unique ID (for example, ID-1) of the APP can be obtained, and then a corresponding APP region (for example, beijing) is searched in the region cache. Reading a first geographic coordinate P from a location cache queue1={x1,y1Specifically, the first geographic coordinate P1 is the last position coordinate in the position buffer queue.
In step S200, if P1 is in the APP area, for example, the coordinates of P1 are also in "beijing", the mobile terminal does not need to perform a handover of the geographic location. Conversely, if P1 is not within the APP region, such as P1 as being located within "Zheng", then the mobile reads the second geographic coordinate P from the location cache2={x2,y2And a second geographic coordinate P2 is the penultimate position coordinate in the position buffer queue.
Step S300, the mobile terminal judges ifThere is a great probability that the user does arrive at zheng from beijing, for example, and therefore switches the user-initiated APP to the area where P1 is located, for example, from "beijing" to "zheng. On the contrary, ifThere is a great probability that the user simply passes "zheng", for example, the user is from "beijing" to "wuhan", and thus the mobile terminal does not perform a handover of the geographical location.
According to one embodiment of the invention v is an empirically set velocity constant, preferably having a value of more than 50 km/h.
According to another embodiment of the invention, v is a dynamically acquired velocity constant. In particular, the method comprises the following steps of,wherein,n is the number of locations stored in the location buffer queue, k is v with a calculated value other than 0iNumber of (a), v0Threshold for speed discrimination (preferably 450km/h) { xi,yiAnd { x }i+1,yi+1Pi and Pi + 1. In the embodiment, the dynamic velocity constant v is calculated through the historical position, so that the value of v can be more accurate, and the value of v is calculated through v0The setting of (3) can effectively eliminate the historical noise caused by closing the position information function within a certain period of time.
Through the steps, when the area is changed, the mobile terminal can automatically judge whether the user really arrives at the destination or is in the process of traveling with high accuracy. And whether the geographic position needs to be switched or not is judged according to the judgment, so that the user experience is improved.
According to the present invention, further, the step S300 further includes updating the area cache by using the area where P1 is located after the switching of the geographic location is completed. In the foregoing example, "zheng" was used to update "beijing" as shown in fig. 2B.
According to the invention, further, Q fixed point (such as railway station) area information is stored in the mobile terminal, and each fixed point area information comprises fixed point coordinates (such as central coordinates of the railway station), a first radius R and a second radius R, wherein R > R.
Further, step S300 in the present invention is replaced with step S400, and step S400 includes:
step S410, ifThen the current position information P is acquired0={x0,y0}。
Step S420, in Q fixed point region information, inquiring and P0Closest fixed point coordinate Pm={xm,ym}。
Step S430, ifAnd isThen the user-initiated APP is not switched to the area where P1 is located; otherwise, the user-initiated APP is switched to the area where P1 is located.
Through the steps S410-S430, the situation that the train has a long stop time (for example, more than 5-10 minutes) in the railway station can be effectively avoided.
According to the present invention, further, the position buffer queue further includes a time T1 storing the first geographic coordinate P1. The step S100 further includes: obtaining the current time T0 of the mobile terminal, and reading the time T1 from the position buffer queue; if T0-T1 > Δ T, the user-initiated APP is switched to the area where the current location is, and the subsequent steps are not performed, while the location cache queue is emptied. Wherein, the delta T is a time threshold value, and the preferable value is more than 60 minutes. Through the mode, the situation that the user flies from one city to another city by taking the plane can be effectively identified. That is, the flight time of most airplanes is generally not less than 60 minutes, and the mobile terminal is required to be closed or placed in the flight mode on the airplane, and no matter which situation, the mobile terminal cannot normally obtain and store the location information within the time interval T, and most of the flight cities are destination cities, so that the APP started by the user is switched to the area where the current location is located under the condition that the above mode is met, and the user experience of most users can be effectively improved.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the present invention in any way, and any simple modifications and equivalent variations of the above embodiments according to the technical spirit of the present invention are within the scope of the present invention.
Claims (6)
1. A method for switching geographical position on a mobile terminal is characterized in that the mobile terminal comprises a position buffer queue and a region buffer; storing the geographic coordinates of the mobile terminal in the position cache queue at each fixed time T of the mobile terminal, wherein the area cache stores the ID and the APP area of the APP installed in the mobile terminal, and the APP area is the area where the mobile terminal is located when the APP operates at the latest time;
when the user starts the APP, the mobile terminal executes the following steps of switching the geographic position:
step S100, reading an APP area started by a user from an area cache, and reading a first geographic coordinate P from a position cache queue1={x1,y1The first geographic coordinate is the last position coordinate in the position cache queue;
step S200, if P1Not in the APP area, then the second geographic coordinate P is read from the location cache2={x2,y2The second geographic coordinate is a penultimate position coordinate in the position cache queue;
step S300, ifThen the user-initiated APP is switched to P1The area in which the device is located; wherein,n is the number of locations stored in the location buffer queue, k is v with a calculated value other than 0iNumber of (a), v0To distinguish thresholds for speed, { xi,yiAnd { x }i+1,yi+1Is PiAnd Pi+1The geographic coordinates of (a).
2. The method of switching geographical locations of claim 1, wherein Q fixed-point region information are further stored in the mobile terminal, each fixed-point region information comprising fixed-point coordinates, a first radius R, a second radius R, and R > R.
3. The method for switching geographical position according to claim 2, wherein the step S300 is replaced by a step S400, and the step S400 comprises:
step S410, ifThen the current position information P is acquired0={x0,y0};
Step S420, in Q fixed point region information, inquiring and P0Closest fixed point coordinate Pm={xm,ym};
Step S430, ifAnd isThen the user-initiated APP is not switched to P1The area in which the device is located; otherwise, switching APP started by the user to P1The area in which it is located.
4. A method of switching geographical locations according to claim 3, wherein the fixed point is a railway station.
5. The method of switching geographic locations of claim 4 wherein the location buffer queue further comprises storing a first geographic coordinate P1Time T1.
6. The method for switching geographical position according to claim 5, wherein the step S100 further comprises: obtaining the current time T0 of the mobile terminal, and reading the time T1 from the position buffer queue; if T0-T1 is larger than delta T, switching APP started by a user to the area where the current position is located, not performing subsequent steps, and emptying the position cache queue; where Δ T is a time threshold.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810494732.9A CN108696819B (en) | 2018-05-22 | 2018-05-22 | Geographical location switching method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810494732.9A CN108696819B (en) | 2018-05-22 | 2018-05-22 | Geographical location switching method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108696819A CN108696819A (en) | 2018-10-23 |
CN108696819B true CN108696819B (en) | 2019-05-28 |
Family
ID=63847866
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810494732.9A Expired - Fee Related CN108696819B (en) | 2018-05-22 | 2018-05-22 | Geographical location switching method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108696819B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020045195A (en) * | 2000-12-08 | 2002-06-19 | 조정남 | Method for updating a location register using a fuzzy logic in a mobile system |
CN101349567A (en) * | 2008-07-29 | 2009-01-21 | 方圆信通科技(北京)有限公司 | Method for providing local mobile geographical information service based on GPS and mobile terminal |
CN105260240A (en) * | 2015-10-15 | 2016-01-20 | 珠海格力电器股份有限公司 | Language switching method and device for application program |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104346471A (en) * | 2014-11-18 | 2015-02-11 | 北京奇虎科技有限公司 | Method, device and system for determining to-be-pushed application based on geological position information |
-
2018
- 2018-05-22 CN CN201810494732.9A patent/CN108696819B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20020045195A (en) * | 2000-12-08 | 2002-06-19 | 조정남 | Method for updating a location register using a fuzzy logic in a mobile system |
CN101349567A (en) * | 2008-07-29 | 2009-01-21 | 方圆信通科技(北京)有限公司 | Method for providing local mobile geographical information service based on GPS and mobile terminal |
CN105260240A (en) * | 2015-10-15 | 2016-01-20 | 珠海格力电器股份有限公司 | Language switching method and device for application program |
Also Published As
Publication number | Publication date |
---|---|
CN108696819A (en) | 2018-10-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10282477B2 (en) | Method, system and apparatus for searching for user in social network | |
JP6444263B2 (en) | Content distribution system and content distribution method | |
US9432944B1 (en) | Determining whether a mobile device user is substantially stationary within a geo-fence | |
WO2018166234A1 (en) | Network search method and apparatus | |
US20230409611A1 (en) | Improving Offline Map Data Availability | |
KR20150074075A (en) | Multiple device intelligent language model synchronization | |
KR20150128906A (en) | Method and apparatus for scanning for a wireless access point | |
CN105279211A (en) | Push method for application and mobile terminal thereof | |
US10845207B2 (en) | Navigation based on regional navigation restrictions | |
US11085789B2 (en) | Navigation method, apparatus, and terminal, and storage medium | |
CN103472998B (en) | A kind of method of selected text, device and terminal unit | |
US20190007894A1 (en) | Intelligent access point scanning based on a profile | |
WO2013001134A1 (en) | Context extraction | |
US20190042071A1 (en) | Contextual experience based on location | |
CN103108390B (en) | The method and apparatus in prediction mobile terminal geographical position | |
CN103501487A (en) | Method, device, terminal, server and system for updating classifier | |
WO2020202341A1 (en) | Relay device, program, communication system, and communication method | |
CN108696819B (en) | Geographical location switching method | |
US11280623B2 (en) | Predictive intersection search | |
US20160227369A1 (en) | Multi-layer assistance data caching | |
US10962653B2 (en) | Positioning method and apparatus | |
US20230099831A1 (en) | Systems and methods for near-storage processing in solid state drives | |
CN103034634B (en) | A kind of method of recording geographical position, device and mobile terminal | |
CN112783992B (en) | Map functional area determining method and device based on interest points | |
CN110907963A (en) | Satellite positioning engine control method and device and electronic equipment |
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 | ||
TR01 | Transfer of patent right |
Effective date of registration: 20200825 Address after: 266590 No. 579, Bay Road, Huangdao District, Shandong, Qingdao Patentee after: Shandong University of Science and Technology Address before: 271000 Shandong city of Tai'an Province Wang Yue Road International Financial Center Tower A 5 floor Patentee before: SHANDONG YUANJU INFORMATION TECHNOLOGY Co.,Ltd. |
|
TR01 | Transfer of patent right | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190528 Termination date: 20210522 |
|
CF01 | Termination of patent right due to non-payment of annual fee |