Positioning mode determination method and device, electronic equipment, storage medium and computer program product
By analyzing the relationship between the terminal's battery level and location and the preset area, the system intelligently selects the most suitable positioning method, solving the problem of increased power consumption for terminal positioning, extending standby time, and improving user experience.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-30
- Publication Date
- 2026-03-10
AI Technical Summary
The existing terminal positioning method, under the default process, leads to unnecessary increases in power consumption, shortens standby time, and reduces user experience.
By analyzing the terminal's battery information, location, and its relationship with multiple preset areas, the system intelligently determines and selects the most suitable positioning method, reducing unnecessary positioning operations.
It effectively reduces terminal positioning power consumption, extends standby time, and improves user experience.
Smart Images

Figure CN121645265A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal positioning technology, and in particular to a positioning method, device, electronic device, storage medium and computer program product. Background Technology
[0002] In related technologies, terminal positioning includes two positioning schemes: timed location reporting and real-time location acquisition. Both schemes will cause a series of unnecessary positioning operations when running according to the default positioning process, which will significantly increase the terminal's power consumption, shorten the terminal's standby time, and thus reduce the user experience. Summary of the Invention
[0003] The positioning method determination method, apparatus, electronic device, storage medium, and computer program product provided in this application embodiment can effectively reduce power consumption during terminal positioning and extend the standby time of the terminal.
[0004] The technical solution of this application is implemented as follows:
[0005] This application provides a method for determining a positioning method, including:
[0006] Based on at least one of the acquired terminal's battery information and current time, and their associated relationships, a positioning method that best matches the terminal's current environment is determined, allowing the terminal to use the positioning method for positioning; wherein, the associated relationship is the relationship between the acquired positioning location of the terminal and multiple preset areas.
[0007] In the above scheme, the multiple preset areas include: N preset type areas; the proportion of positioning methods corresponding to historical terminals is different in different preset type areas; N is an integer greater than 0; before determining the positioning method that best matches the current environment of the terminal based on at least one of the acquired terminal's battery information, current time, and its relationship with its association, the method further includes:
[0008] The historical location information corresponding to each historical terminal is periodically acquired; wherein, the historical location information includes: the location information and location method information of the corresponding historical terminal;
[0009] Based on the historical location information corresponding to each historical terminal, the regions are divided to determine N preset type regions.
[0010] In the above scheme, the step of dividing the region based on the historical location information corresponding to each of the historical terminals to determine N preset type regions includes:
[0011] Based on the location information corresponding to each of the historical terminals, the regions are divided to determine N regions;
[0012] Based on the proportion of the location information of the historical terminals contained in each region, the region type corresponding to each region is determined, and then N preset type regions are determined.
[0013] The method in the above scheme further includes:
[0014] The historical location information of the corresponding historical terminal is randomly reacquired for any of the preset type regions, and the type of the preset type region is re-determined based on the reacquired historical location information.
[0015] In the above scheme, the positioning method of the historical terminal included in each of the preset type areas includes at least one of the following: satellite positioning method, wireless network positioning method, base station positioning method, Bluetooth positioning method, and wireless radio frequency technology positioning method.
[0016] In the above scheme, determining the positioning method that best matches the current environment of the terminal based on at least one of the acquired terminal's battery information, current time, and related relationships includes:
[0017] If the battery level information of the terminal is less than a preset battery level threshold, the positioning method that best matches the current environment of the terminal is determined based on the relationship between the positioning location and N preset type areas.
[0018] In the above scheme, when the battery information corresponding to the terminal is less than a preset battery threshold, determining the positioning method that best matches the current environment of the terminal based on the relationship between the positioning location and N preset type areas includes one of the following:
[0019] If the location belongs to a first preset type area, then the first positioning method that best matches the current environment of the terminal is determined; wherein, the positioning methods of the historical terminal in the first preset type area include: satellite positioning method and wireless network positioning method; the first positioning method includes the wireless network positioning method and the satellite positioning method in descending order of priority;
[0020] If the location belongs to a second preset type area, then the second positioning method that best matches the current environment of the terminal is determined; wherein, among the positioning methods of the historical terminals in the second preset type area, the base station-based positioning method accounts for the largest proportion; the second positioning method includes: base station-based positioning method;
[0021] If the location belongs to a third preset type area, then the default process positioning method that best matches the current environment of the terminal is determined; wherein, the positioning information corresponding to each of the historical terminals does not belong to the third preset type area.
[0022] In the above scheme, determining the positioning method that best matches the current environment of the terminal based on at least one of the acquired terminal's battery information, current time, and related relationships includes:
[0023] If the battery information corresponding to the terminal is greater than a preset battery threshold, the positioning method that best matches the current environment of the terminal is determined based on at least one of the relationships between the positioning location and multiple preset areas and the relationships between the current time and preset time periods; wherein, the life status set for the user of the terminal is different in different preset time periods.
[0024] In the above scheme, the multiple preset areas further include: M preset living status areas; different preset living status areas correspond to different functional attributes; M is an integer greater than 0; the step of determining the positioning method that best matches the current environment of the terminal based on at least one of the relationships between the positioning location and the multiple preset areas, and the relationships between the current time and the preset time period, includes one of the following:
[0025] If the location belongs to a region with a high priority positioning method among multiple preset regions, then based on at least one of the relationships between the current time and the preset time period, the relationships between the location and N preset type regions and M preset living status regions, the positioning method that best matches the current environment of the terminal is determined.
[0026] If the location does not belong to a region with a high priority positioning method among multiple preset regions, then the positioning method that best matches the current environment of the terminal is determined based on the relationship between the location and the N preset type regions.
[0027] In the above scheme, determining the positioning method that best matches the current environment of the terminal based on at least one of the relationships between the current time and the preset time period, and between the positioning location and N preset type areas and M preset living status areas, includes one of the following:
[0028] If the current time belongs to a first preset time period or a second preset time period, then based on the relationship between the location and N preset type areas and M preset living state areas, the positioning method that best matches the current environment of the terminal is determined; wherein, during the first preset time period, the user of the terminal is set to a learning state; during the second preset time period, the user of the terminal is set to a rest state.
[0029] If the current time belongs to a third preset time period, then based on the relationship between the location and N preset type areas, the positioning method that best matches the current environment of the terminal is determined; wherein, other states are set for the user of the terminal during the third preset time period.
[0030] In the above scheme, determining the positioning method that best matches the current environment of the terminal based on the relationship between the positioning location and N preset type areas and M preset living state areas includes one of the following:
[0031] If the location belongs to any of the M preset living status areas, then the first positioning method that best matches the current environment of the terminal is determined; wherein, the first positioning method includes the following in descending order of priority: the wireless network-based positioning method and the satellite-based positioning method;
[0032] If the location does not belong to any of the M preset living status areas, then based on the relationship between the location and the N preset type areas, the positioning method that best matches the current environment of the terminal is determined.
[0033] This application embodiment also provides a positioning method determination device, including:
[0034] The determining unit is used to determine the positioning method that best matches the current environment of the terminal based on at least one of the acquired terminal power information, current time, and related relationships, so that the terminal can use the positioning method for positioning; wherein, the related relationship is the relationship between the acquired positioning location of the terminal and multiple preset areas.
[0035] This application also provides an electronic device, including a memory and a processor. The memory stores a computer program that can run on the processor, and the processor executes the computer program to implement the steps in the above-described method.
[0036] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the above-described method.
[0037] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the steps in the above-described method.
[0038] In this embodiment, based on at least one of the acquired terminal's battery information and current time, along with their associated relationships, the most suitable positioning method for the terminal's current environment is determined, allowing the terminal to perform positioning. The associated relationship refers to the relationship between the acquired terminal's location and multiple preset areas. In this way, the terminal's current environment can be determined using at least one of the battery information and current time, along with the associated relationship between the location and multiple preset areas. This allows for the determination of the most suitable positioning method, reducing unnecessary positioning operations caused by mismatches between the terminal's positioning method and the current environment, reducing the terminal's power consumption during positioning, and thus extending the terminal's standby time. Attached Figure Description
[0039] Figure 1 An optional flowchart illustrating the related technologies provided in the embodiments of this application;
[0040] Figure 2 An optional flowchart illustrating the related technologies provided in the embodiments of this application;
[0041] Figure 3 A schematic flowchart of an optional positioning method provided in an embodiment of this application;
[0042] Figure 4 A schematic diagram illustrating an optional effect of the positioning method determination method provided in the embodiments of this application;
[0043] Figure 5 A schematic flowchart of an optional positioning method provided in an embodiment of this application;
[0044] Figure 6 A schematic diagram illustrating an optional effect of the positioning method determination method provided in the embodiments of this application;
[0045] Figure 7 A schematic diagram illustrating an optional effect of the positioning method determination method provided in the embodiments of this application;
[0046] Figure 8 A schematic diagram illustrating an optional effect of the positioning method determination method provided in the embodiments of this application;
[0047] Figure 9 A schematic diagram illustrating an optional effect of the positioning method determination method provided in the embodiments of this application;
[0048] Figure 10A schematic flowchart of an optional positioning method provided in an embodiment of this application;
[0049] Figure 11 A schematic flowchart of an optional positioning method provided in an embodiment of this application;
[0050] Figure 12 A schematic flowchart of an optional positioning method provided in an embodiment of this application;
[0051] Figure 13 A schematic flowchart of an optional positioning method provided in an embodiment of this application;
[0052] Figure 14 A schematic flowchart of an optional positioning method provided in an embodiment of this application;
[0053] Figure 15 This is a schematic diagram of the positioning method determination device provided in the embodiments of this application;
[0054] Figure 16 This is a schematic diagram of a hardware entity of an electronic device provided in an embodiment of this application. Detailed Implementation
[0055] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application are further described in detail below with reference to the accompanying drawings and embodiments. The described embodiments should not be regarded as limitations on this application. All other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0056] In the following description, references are made to “some embodiments,” which describe a subset of all possible embodiments. However, it is understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0057] If the application documents contain similar descriptions such as "first / second", the following explanation shall be added: In the following description, the terms "first / second / third" are used only to distinguish similar objects and do not represent a specific order of objects. It is understood that "first / second / third" may be interchanged in a specific order or sequence where permitted, so that the embodiments of this application described herein can be implemented in an order other than that illustrated or described herein.
[0058] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used herein is for the purpose of describing embodiments of this application only and is not intended to limit this application.
[0059] In related technologies, the positioning methods of electronic student cards (terminals) can include two methods: real-time location acquisition and timed location reporting.
[0060] Among them, real-time location acquisition:
[0061] After the platform sends a real-time location acquisition request to the electronic student card, the electronic student card needs to report its location information within one minute. To meet this requirement, the electronic student card processing flow is as follows: Figure 1 As shown:
[0062] The flowchart is explained as follows:
[0063] 1. The electronic student card detects the WiFi signal and reports it immediately (without needing to search the Global Positioning System).
[0064] Navigation Satellite System (GNSS) signal);
[0065] a. If the electronic student card detects fewer than 30 WiFi signals, report all WiFi signals;
[0066] b. If the electronic student card detects more than 30 WiFi signals, it should report the 30 strongest signals.
[0067] c. To ensure a high success rate in location tracking, the uploaded WiFi signal data must be filtered to include hotspot data and at least 3 sets must be reported.
[0068] 2. If the electronic student card does not detect a WiFi signal, the GNSS positioning function should be turned on immediately and satellite search and positioning should be performed (it is recommended that the electronic student card keep the GNSS positioning module in a hot start state to reduce the time spent on cold start satellite search and locking).
[0069] 3. If the electronic student card fails to detect a WiFi signal within 50 seconds and cannot be located via GNSS, report the base station location data.
[0070] Location is reported periodically:
[0071] The electronic student card reports location information according to a set frequency, with the priority being: GNSS > WiFi > cell tower location. The location information reported by the electronic student card must include cell tower location information; GNSS and WiFi location information are reported as needed. The specific process is as follows: Figure 2 As shown:
[0072] The flowchart is explained as follows:
[0073] 1. The terminal starts the GNSS positioning module to search for satellite positioning signals before the scheduled reporting time, according to the set positioning reporting frequency;
[0074] 2. At the scheduled reporting time, if the electronic student card can detect GNSS signals, report GNSS positioning data and base station positioning data;
[0075] 3. At the scheduled reporting time, if the electronic student card fails to detect a GNSS signal, it should report the WiFi signal and base station location data.
[0076] a. If the electronic student card detects fewer than 30 WiFi signals, report all WiFi signals;
[0077] b. If the electronic student card detects more than 30 WiFi signals, it should report the 30 strongest signals.
[0078] c. To ensure a high success rate in location tracking, the uploaded WiFi signal data must be filtered to include hotspot data and at least 3 sets must be reported.
[0079] 4. At the scheduled reporting time, if the electronic student card fails to detect GNSS and WiFi signals, report the base station location data.
[0080] The current technical solution comprehensively considers the completeness of its positioning function, ensuring accurate positioning even in various complex environments. However, this solution still has certain limitations, as follows:
[0081] The cold start satellite search for GNSS positioning functions is time-consuming (up to one minute when GNSS satellite signals are poor), leading to the following problems:
[0082] High frequency of timed location reporting: In emergency positioning scenarios (timed location reporting interval is less than 3 minutes), the GNSS positioning module of the electronic student card needs to be in a hot start state to ensure the positioning function.
[0083] Low frequency of timed location reporting: If the electronic student ID card is based on the default positioning frequency (reporting interval of 10 minutes), the electronic student card needs to cold start the GNSS positioning module before the specified reporting time point to ensure that the positioning information can be reported normally at the reporting time point.
[0084] In areas where the GNSS satellite configuration is known to be poor (e.g., obscured by buildings or dense forests), the electronic student card will still attempt GNSS positioning and search for WiFi signals after failing.
[0085] The electronic student card is mainly aimed at students, whose daily activities are mainly concentrated in areas with severe signal obstruction, such as school buildings, homes, or playgrounds.
[0086] When the electronic student card's battery is low, it cannot automatically switch to low-battery positioning mode, which may affect the normal operation of its basic functions.
[0087] As listed above, the limitations of the electronic student card's location function demonstrate that it cannot automatically select the optimal location method based on environmental awareness. This results in a series of unnecessary location operations when running according to the default location process, significantly increasing the electronic student card's power consumption, shortening its standby time, and ultimately reducing the user experience.
[0088] Given the limitations of current electronic student card positioning functions, this application proposes an optimal positioning method selection process based on the electronic student card platform. This method analyzes historical positioning information reported by the electronic student card, combined with key information such as preset area and current time, to intelligently determine the positioning method most suitable for the electronic student card's current environment. This optimal solution is then sent to the electronic student card for execution. This strategy improves the positioning success rate of the electronic student card, effectively reduces power consumption, and thus provides users with a smoother and longer-lasting user experience.
[0089] This application provides a method for determining a positioning method. Please refer to [link / reference]. Figure 3 This is an optional flowchart illustrating the positioning method determination method provided in the embodiments of this application, which will be combined with... Figure 3 The steps shown are explained below:
[0090] S101. Based on at least one of the acquired terminal power information, current time, and related relationships, determine the positioning method that best matches the current environment of the terminal, and provide the terminal with the positioning method for positioning; wherein, the related relationship is the relationship between the acquired positioning location of the terminal and multiple preset areas.
[0091] In this embodiment, the platform obtains location information uploaded by the terminal (electronic student card), which may include the terminal's battery level, location, and current time. Based on at least one of the battery level and current time, and the relationship between the location and multiple preset areas, the platform analyzes the terminal's current environment and determines the most suitable positioning method. This positioning method can be sent to the terminal. After obtaining the positioning method, the terminal determines its location information and sends it to the platform at predetermined intervals.
[0092] In this embodiment, the platform can determine a suitable positioning method based on the battery level, which indicates the amount of battery power. For example, when the battery level is greater than a preset battery threshold, a positioning method with high efficiency but high power consumption can be determined. When the battery level is less than the preset battery threshold, a positioning method with low power consumption can be determined.
[0093] In this embodiment, the platform can determine the positioning method that best matches the current environment of the terminal based on the relationship between the current time and a preset time period. The user's lifestyle is set differently within different preset time periods. For example, if the current time belongs to a preset time period corresponding to the user's resting state, then the WIFI positioning method can be determined.
[0094] The preset areas may have different proportions of location methods corresponding to historical terminals, or different functional attributes. The preset areas include: M preset living status areas (each with different functional attributes) and N preset type areas (each with different proportions of location methods corresponding to historical terminals). M and N are both integers greater than 0. Preset living status areas need to be set and confirmed by the user on the platform, while preset type areas need to be determined by the platform based on historical location information from historical terminals.
[0095] The terminal must support three positioning methods: GNSS, WiFi, and base station positioning. GNSS positioning has the highest priority, followed by WiFi positioning, and then base station positioning. Each time the terminal reports positioning information, it must include base station positioning information and may choose whether to report GNSS and WiFi positioning information based on the actual situation.
[0096] Combination Figure 4 The platform may include a power analysis module 101, a region analysis module 102, a time period analysis module 103, and a message response generation module 104. The power analysis module 101 analyzes power information, the region analysis module 102 analyzes the relationship between the location and multiple preset regions, and the time period analysis module 103 analyzes the relationship between the current time and preset time periods (different user lifestyle settings exist for the terminal within different preset time periods). Finally, the analysis results from the power analysis module 101, region analysis module 102, and time period analysis module 103 determine the positioning mode that best matches the terminal's current environment. The message response generation module 104 encapsulates the positioning method into a message and sends it to the terminal.
[0097] Please see Figure 5 The following is an optional flowchart illustrating the positioning method determination method provided in the embodiments of this application, which will be described in conjunction with the steps:
[0098] S11. Set preset time periods, preset living status areas, etc.
[0099] In this embodiment of the application, the platform collects the location information reported by the electronic student card and performs statistics by combining it with information such as the geofence (preset living status area, different preset living status areas correspond to different functional attributes) and class mode (preset time period) set by the user.
[0100] S12. Report historical location information.
[0101] In this embodiment of the application, the platform collects historical location information reported by various historical terminals within a historical time period.
[0102] S13. Statistical analysis of historical location information to divide the area.
[0103] In this embodiment, the platform statistically analyzes the historical location information reported by each historical terminal to identify multiple preset types of regions.
[0104] S14. Report location information.
[0105] In this embodiment of the application, the electronic student card reports location information, including battery level information and location.
[0106] S15. Execution of positioning method selection analysis.
[0107] S16, Return to positioning mode.
[0108] In this embodiment, the platform performs location analysis, selects a location method that matches the current environment of the terminal based on the battery information, location, and current time, and sends the result back to the electronic student card.
[0109] S17. Report location information according to the positioning method.
[0110] In this embodiment, the electronic student card is located based on the positioning method fed back from the platform side, and the positioning information is uploaded to the electronic student card platform.
[0111] In this embodiment, the platform needs to pre-set the location information of the electronic student card. The electronic student card platform supports setting the following information for a specified electronic student card: location reporting frequency, preset living status area, and preset time period. This information will subsequently assist the electronic student card platform in selecting the most suitable location method for the specified electronic student card.
[0112] Combination Figure 6 Users can Figure 6 The corresponding reporting frequency setting box in the middle interface sets the location reporting frequency.
[0113] At present, the platform's location reporting frequency must not be less than 1 minute.
[0114] Short positioning reporting intervals have the following disadvantages: the cold start positioning limit of the terminal GNSS positioning module is about 1 minute; the positioning frequency setting is too high, which will significantly reduce the standby time of the terminal; when the user is in a low-speed movement state, high-frequency positioning has no obvious practical benefits; when the user is in a high-speed movement state, if the positioning interval is too short, it is easy to cause positioning failure.
[0115] In this embodiment, a customizable setting function for the positioning frequency of the terminal in low-power mode is available. Users can preset the positioning reporting frequency (lower than the normal positioning frequency) when the terminal is in a low-power state (battery level below 10%), thereby effectively reducing power consumption of the positioning function in low-power conditions. This improvement ensures that the terminal can still work stably for extended periods when battery power is low, and also guarantees the smooth operation of important functions such as calls and SOS (Save Our Souls) emergency reporting, providing users with a safer and more reliable experience.
[0116] Combination Figure 7 and Figure 8 Users can access the system through... Figure 7 and Figure 8 The interface allows you to define preset lifestyle status areas. The platform supports setting functional attributes corresponding to these preset lifestyle status areas. Among these, you can target... Figure 7 The school attributes can be set within the predefined living areas in the center, allowing for targeted adjustments. Figure 8 Set family attributes for the preset living status area within the center.
[0117] In some other embodiments, methods similar to water boundaries or dangerous area boundaries (such as cliffs) can be used to replace the preset living area auxiliary positioning method selection in the embodiments of this application.
[0118] Combination Figure 9 Users can access the system through... Figure 9 The interface allows setting preset time periods. Users can configure study periods, i.e., the user's class time, during which incoming and outgoing calls will be restricted. Users can also configure rest periods, and other time periods can be set.
[0119] In this embodiment, based on the acquired battery information of the terminal and at least one of the current times and their associated relationships, the positioning method most suitable for the terminal's current environment is determined, allowing the terminal to use this positioning method for positioning. The associated relationship refers to the relationship between the acquired location of the terminal and multiple preset areas. In this way, the terminal's current environment can be determined through the battery information, the association between at least one of the current times and multiple preset areas, and then the positioning method most suitable for the current environment can be determined. This reduces unnecessary positioning operations caused by mismatches between the terminal's positioning method and the current environment, reduces the terminal's power consumption for positioning, and thus extends the terminal's standby time.
[0120] Please see Figure 10 This is a schematic diagram of an optional flowchart of the positioning method determination method provided in the embodiments of this application. Figure 3 The step S101 shown may also include S201 to S202, which will be explained in conjunction with the steps:
[0121] S201. Periodically acquire historical location information corresponding to each historical terminal; wherein, the historical location information includes: the location information and location method information of the corresponding historical terminal.
[0122] In this embodiment, the platform periodically acquires historical location information corresponding to each historical terminal. The historical location information includes the location information and location method information of the corresponding historical terminal.
[0123] The location information can be latitude and longitude. The positioning method information includes any one of GNSS positioning, WiFi positioning, or base station positioning.
[0124] S202. Based on the historical location information corresponding to each of the historical terminals, the regions are divided to determine N preset type regions.
[0125] In this embodiment, the platform divides the jurisdictional area into N preset type areas based on the location information and positioning method information corresponding to each historical terminal. The proportion of positioning methods corresponding to historical terminals differs within each of the different preset type areas.
[0126] In this embodiment, the platform has the function of periodically resetting historical location information within the area, which is intended to cope with the risk of information distortion caused by changes in the geographical environment (such as house demolition, removal of WiFi signal sources, etc.), ensure that statistical information always maintains its reference value, accurately determine the area corresponding to each area type, and determine the positioning method that matches the current environment through relatively accurate regional analysis of the terminal.
[0127] Please see Figure 11 This is a schematic diagram of an optional flowchart of the positioning method determination method provided in the embodiments of this application. Figure 10 The shown S202 can also be implemented by S301 to S302, which will be explained in conjunction with the steps:
[0128] S301. Based on the location information corresponding to each of the historical terminals, divide the region and determine N regions.
[0129] In this embodiment of the application, after the platform receives the historical location information sent by each historical terminal, since the historical location information includes the location information corresponding to each historical terminal, the platform can divide the jurisdiction area into N regions based on the location information.
[0130] Geohash values can be calculated using latitude and longitude information (location information). Geohash is an implementation of GeoCode, which can be used to divide geographic areas into N regions as needed. Based on this value, the location information within each region (according to the dimension of location method) is statistically analyzed to determine the available location methods within that region.
[0131] In some other embodiments, a different geographic region segmentation technique than GeoHash can be used to segment regions in order to statistically analyze the location methods within the region.
[0132] S302. Based on the proportion of the location method information of the historical terminals contained in each region, determine the region type corresponding to each region, and then determine N preset type regions.
[0133] In this embodiment, after determining multiple regions, the platform can determine the region type of each region based on the different proportions of historical terminal positioning information within each region. This allows for the determination of the regions corresponding to N region types.
[0134] In this embodiment, the positioning method of the historical terminals included in each preset type area includes at least one of the following: satellite positioning, wireless network positioning, base station positioning, Bluetooth positioning, and radio frequency technology positioning. For example, six types of areas can be divided according to the proportion of historical terminal positioning method information in each area: Area A, Area B, Area C, Area D, and Area E.
[0135] Area A: Over 80% of the positioning methods are GNSS positioning, which suggests that the GNSS satellite signal coverage in this area is good and suitable for GNSS positioning.
[0136] Area B: Over 80% of the positioning methods are WiFi positioning, which suggests that the GNSS satellite signal in this area is weak and not suitable for GNSS positioning.
[0137] Area C: The positioning method consists of GNSS and WiFi positioning information. It can be inferred that the GNSS satellite signal in this area is generally weak and cannot be reliably completed through GNSS.
[0138] Area D: The positioning method only includes base station positioning, so it can be inferred that positioning based on GNSS or WiFi technology is not possible in this area;
[0139] Region E: No location information is uploaded in this region, or the location information is insufficient to support statistical analysis.
[0140] In some other embodiments, the platform can randomly reacquire the historical location information of the corresponding historical terminal for any of the areas, and redetermine the area type corresponding to the area based on the reacquired historical location information. That is, the platform uses a random selection method to reset the historical location information of areas sequentially, and specifically designs strategies to prevent adjacent areas from being continuously cleared within a short period. This approach can reduce the potential negative impact of the reset process on the performance and stability of the platform's location service, ensuring continuous optimization and improvement of service quality.
[0141] In this embodiment, after successfully collecting historical location information and completing the preset type area division, the platform further utilizes pre-set preset living status areas and preset time periods to perform in-depth analysis of the acquired terminal's location and current time. Through these analysis results, the platform selects the most suitable positioning method for the terminal's current environment. Subsequently, the platform feeds back the selected positioning method to the terminal, ensuring that it can use a more appropriate positioning method the next time it uploads location information at a set time. The terminal and platform communicate in a one-to-one response mode, using a flag quantity (RPM: Recommended positioning methods) in the positioning response. This flag quantity guides the electronic student card on how to select the appropriate positioning method. RPM has the following specific values and meanings: 0: The terminal card uses the default positioning process; 1: The terminal recommends using WiFi positioning; if WiFi positioning fails, it attempts to use GNSS positioning; 2: The terminal only uses base station positioning.
[0142] Please see Figure 12 This is a schematic diagram of an optional flowchart of the positioning method determination method provided in the embodiments of this application. Figure 3 The shown S101 can also be implemented via S401, which will be explained in conjunction with the steps:
[0143] S401. If the battery information corresponding to the terminal is less than a preset battery threshold, determine the positioning method that best matches the current environment of the terminal based on the relationship between the positioning location and N preset type areas.
[0144] In this embodiment of the application, when the battery information is less than a preset battery threshold, if the location belongs to a first preset type area, then a first positioning method that best matches the current environment of the terminal is determined; wherein, the positioning methods of the historical terminal in the first preset type area include: satellite positioning method and wireless network positioning method; the first positioning method includes the wireless network positioning method and the satellite positioning method in descending order of priority; wherein, the first preset type area may include: area A, area B and area C.
[0145] In this embodiment of the application, if the battery information is less than a preset battery threshold, and the location belongs to a second preset type area, then the second positioning method that best matches the current environment of the terminal is determined; wherein, the base station-based positioning method accounts for the largest proportion of the positioning methods of the historical terminal in the second preset type area; the second positioning method includes: base station-based positioning method; wherein, the second preset type area may include: area D.
[0146] In this embodiment, when the battery level is less than a preset battery threshold, if the location belongs to a third preset type area, then the default process positioning method that best matches the current environment of the terminal is determined; wherein, the location information corresponding to each historical terminal does not belong to the third preset type area. The third preset type area may include: area E. The default process positioning method may include: a default real-time location acquisition method and a timed location reporting method.
[0147] For example, in combination Figure 14 S401 can also be achieved through the steps in S18, which will be explained in conjunction with the steps:
[0148] S18. Report location information when battery level is less than 10%.
[0149] In this embodiment of the application, when the terminal battery level is less than 10%, location information is reported. The location information includes the terminal's battery level and location.
[0150] Battery level less than 10% (device enters low power mode):
[0151] If the location is in area A, B, or C: WiFi positioning will be used first in the next round. If positioning fails, GNSS positioning will be used, with RPM=1 (first positioning method).
[0152] Location is in region D:
[0153] The adjacent areas are all in area D: the next round of positioning will only use base station positioning, RPM=2 (second positioning method);
[0154] Other scenarios: The next round of positioning will use WiFi positioning. If positioning fails, GNSS positioning will be tried, with RPM=1 (first positioning method).
[0155] Factors to consider: The end user's activity status is uncertain, and it cannot be guaranteed whether the end user will have moved to the surrounding location area in the next positioning round. Therefore, based on the principle of prioritizing accuracy, a positioning strategy with RPM=1 is used to guide the terminal in the next positioning round.
[0156] Location is in region E: Execute the default location process, RPM=0 (default process location method);
[0157] In this embodiment, when the battery level information corresponding to the terminal is less than a preset battery threshold, the positioning method that best matches the current environment of the terminal is determined based on the relationship between the positioning location and N preset type regions. This allows for accurate determination of the terminal's current environment based on the region type of the positioning location, thereby identifying the most suitable positioning method. This reduces unnecessary operations caused by mismatches between the positioning method and the current environment, reduces power consumption during terminal positioning, and extends the terminal's standby time.
[0158] Please see Figure 13 This is a schematic diagram of an optional flowchart of the positioning method determination method provided in the embodiments of this application. Figure 3 The shown S101 can also be implemented via S501, which will be explained in conjunction with the steps:
[0159] S501. If the battery information corresponding to the terminal is greater than a preset battery threshold, determine the positioning method that best matches the current environment of the terminal based on at least one of the relationships between the positioning location and multiple preset areas and the relationships between the current time and preset time periods; wherein, the user's life status is set differently for different preset time periods.
[0160] In this embodiment, when the battery level exceeds a preset battery threshold, if the location belongs to a region among multiple preset regions that includes a high-priority positioning method, then based on at least one of the relationships between the current time and the preset time period, and between the location and N preset type regions and M preset living status regions, the positioning method most closely matching the current environment of the terminal is determined. The high-priority positioning method may include satellite-based positioning and wireless network-based positioning. The regions among the multiple preset regions that include the high-priority positioning method may include Region A, Region B, and Region C.
[0161] In this embodiment, if the location does not belong to a region with a high-priority positioning method among multiple preset regions, the positioning method that best matches the current environment of the terminal is determined based on the relationship between the location and N preset type regions. That is, if the location belongs to region D and region E, the positioning method that best matches the current environment of the terminal is determined based on the relationship between the location and N preset type regions.
[0162] The determination of the positioning method that best matches the current environment of the terminal, based on the relationship between the positioning location and the N preset type areas, can be achieved through steps S100 to S200:
[0163] S100. If the location belongs to a second preset type area, then determine the second positioning method that best matches the current environment of the terminal; wherein, among the positioning methods of the historical terminals in the second preset type area, the base station-based positioning method accounts for the largest proportion; the second positioning method includes: the base station-based positioning method. The second preset type area may include: area D.
[0164] S200. If the location belongs to a third preset type area, then determine the default process positioning method that best matches the current environment of the terminal; wherein, the positioning information corresponding to each of the historical terminals does not belong to the third preset type area. The third preset type area may include: area E.
[0165] The determination of the positioning method that best matches the current environment of the terminal, based on at least one of the relationships between the current time and the preset time period, and between the positioning location and N preset type areas and M preset living status areas, can be implemented through steps S300 to S400:
[0166] S300. If the current time belongs to a first preset time period or a second preset time period, then based on the relationship between the location and N preset type areas and M preset living state areas, determine the positioning method that best matches the current environment of the terminal; wherein, during the first preset time period, the user of the terminal is set to a learning state; during the second preset time period, the user of the terminal is set to a rest state.
[0167] S400. If the current time belongs to a third preset time period, then based on the relationship between the location and N preset type areas, determine the positioning method that best matches the current environment of the terminal; wherein, other states are set for the user of the terminal during the third preset time period.
[0168] The determination of the positioning method that best matches the current environment of the terminal, based on the relationship between the positioning location and N preset type areas and M preset living status areas, can be achieved through steps S500 to S600:
[0169] S500. If the location belongs to any of the M preset living status areas, then determine the first positioning method that best matches the current environment of the terminal; wherein, the first positioning method includes the following in descending order of priority: the wireless network-based positioning method and the satellite-based positioning method.
[0170] S600. If the location does not belong to any of the M preset living status areas, then based on the relationship between the location and the N preset type areas, determine the positioning method that best matches the current environment of the terminal.
[0171] For example, in combination Figure 14 S501 can also be achieved through the steps in S19, which will be explained in conjunction with the steps:
[0172] S19. Report location information when the battery level is greater than 10%.
[0173] In this embodiment of the application, when the terminal battery level is greater than 10%, the location information is reported, including the terminal's battery level and location.
[0174] Determine the current location type of the electronic student card:
[0175] Area D:
[0176] The adjacent areas are all in area D: the next round of positioning will only use base station positioning, RPM=2 (second positioning method);
[0177] Other scenarios: The next round of positioning will use WiFi positioning. If positioning fails, GNSS positioning will be tried, with RPM=1 (first positioning method).
[0178] Area E: The next round of positioning will execute the default positioning process, RPM=0 (default positioning method);
[0179] Other areas: Continue with the subsequent analysis process.
[0180] Determine the current location time period:
[0181] 1. During the classroom mode period (first pre-set period):
[0182] If you are inside the campus fence: the next round of positioning will use WiFi positioning. If positioning fails, GNSS positioning will be tried. RPM=1 (first positioning method).
[0183] Not located within the school fence:
[0184] Located in region A: The next round of positioning will execute the default positioning process, RPM=0 (default positioning method);
[0185] Located in areas B and C: The next round of positioning will use WiFi positioning. If positioning fails, GNSS positioning will be tried. RPM=1 (first positioning method).
[0186] 2. During the late-night period (second preset time period):
[0187] Within the home fence: Located in areas A, B, or C: The next positioning will use WiFi positioning. If positioning fails, GNSS positioning will be tried. RPM = 1 (first positioning method).
[0188] Not within a family fence:
[0189] Located in region A: The next round of positioning will execute the default positioning process, RPM=0 (default positioning method);
[0190] Located in areas B and C: The next round of positioning will use WiFi positioning. If positioning fails, GNSS positioning will be tried. RPM=1 (first positioning method).
[0191] 3. During other time periods (third preset time period):
[0192] Located in region A: The next round of positioning will execute the default positioning process, RPM=0 (default positioning method);
[0193] Located in areas B and C: The next round of positioning will use WiFi positioning. If positioning fails, GNSS positioning will be tried. RPM=1 (first positioning method).
[0194] In this embodiment, during the positioning method analysis, for the preset living status areas corresponding to school and home attributes, the reason for recommending the use of WiFi positioning is as follows: When students are in a safe area, especially in environments such as school buildings and residential buildings, if the platform analyzes that they are likely in a stationary state, the platform will prioritize recommending WiFi positioning for students in the next round of positioning. This strategy aims to avoid using the limited GNSS positioning method inside buildings and has the following advantages: it can utilize the abundant WiFi signal resources in school buildings and residential buildings to provide more accurate and stable positioning services; it avoids invalid GNSS positioning attempts by the terminal, improves the timeliness of positioning, and saves terminal power resources.
[0195] In this embodiment, when the battery level of the terminal is greater than a preset battery threshold, the most suitable positioning method for the current environment of the terminal is determined based on at least one of the relationships between the location and multiple preset regions, and between the current time and a preset time period. The user's lifestyle settings differ within different preset time periods. This allows for accurate determination of the terminal's current environment based on the region type of the location and the time period type of the current time, thereby identifying the most suitable positioning method. This reduces unnecessary operations caused by mismatches between the positioning method and the current environment, reduces power consumption for terminal positioning, and extends the terminal's standby time.
[0196] This application's embodiments design a positioning optimization strategy, which comprehensively analyzes the positioning information uploaded by the terminal through a statistical platform. By adopting a regional division approach and combining multi-dimensional information such as preset living status areas, preset time periods, and current time, the optimal positioning method within each region is accurately determined and sent to the terminal for execution in real time.
[0197] The solution in this application embodiment has the following advantages:
[0198] It can effectively avoid the terminal from selecting a positioning method that is incompatible with the current environment, significantly improve the positioning success rate, and at the same time greatly reduce power consumption and extend the device's battery life.
[0199] By combining information such as preset living status area, current time, and preset time period, it can intelligently select low-battery positioning mode within a safe area, ensuring the continuity of positioning while effectively reducing power consumption and improving user experience;
[0200] Special consideration has been given to optimizing the positioning function in low power mode to ensure that the electronic student card can still maintain normal operation of basic functions when the power is low, and to avoid the loss of important information or failure of functions due to power depletion.
[0201] The changes to the protocol are minor, requiring only the activation of the flags reserved in the protocol instructions;
[0202] The platform completes the selection of the optimal positioning method, and the terminal only needs to consider which positioning method to use, without having to bear the complex decision-making logic.
[0203] The interaction commands between the terminal and the platform do not need to be modified, which reduces the development cost of communication adaptation between the platform and the terminal;
[0204] The terminal only needs to select the positioning method according to the platform instructions, without having to bear complex decision-making logic. Firmware modification is simple, and existing products on the market can be easily upgraded via Over-the-Air (OTA) technology.
[0205] The platform is easy to develop and can be further developed based on Geohash, which is built into mature middleware such as Redis and MongoDB, thus reducing development costs.
[0206] The electronic student card platform has a simple location analysis process, is easy to develop and test, and reduces development costs.
[0207] The electronic student card prompts the following based on the platform's location method:
[0208] Avoid unnecessary location attempts, save battery power, and optimize user experience;
[0209] Extend battery life and reduce maintenance costs for electronic student cards in the future.
[0210] Please see Figure 15 This is a schematic diagram of the positioning method determination device provided in the embodiments of this application.
[0211] This application provides a positioning method determination device 800, including: a determination unit 801.
[0212] The determining unit 801 is used to determine the positioning method that best matches the current environment of the terminal based on at least one of the acquired terminal power information, current time, and belonging information, so that the terminal can use the positioning method for positioning; wherein, the belonging relationship is the belonging relationship between the acquired positioning location of the terminal and multiple preset areas.
[0213] In this embodiment of the application, the plurality of preset areas include: N preset type areas; the proportion of positioning methods corresponding to historical terminals in different preset type areas is different; N is an integer greater than 0; the positioning method determination device 800 is also used to periodically acquire historical positioning information corresponding to each historical terminal; wherein, the historical positioning information includes: the location information and positioning method information of the corresponding historical terminal;
[0214] Based on the historical location information corresponding to each historical terminal, the regions are divided to determine N preset type regions.
[0215] In this embodiment of the application, the positioning method determination device 800 is used to divide the region based on the location information corresponding to each of the historical terminals, and determine N regions;
[0216] Based on the proportion of the location information of the historical terminals contained in each region, the region type corresponding to each region is determined, and then N preset type regions are determined.
[0217] In this embodiment of the application, the positioning method determination device 800 is used to randomly reacquire the historical positioning information of the corresponding historical terminal for any of the preset type areas, and re-determine the type of the preset type area based on the reacquired historical positioning information.
[0218] In this embodiment of the application, the positioning method of the historical terminal included in each of the preset type areas includes at least one of the following: satellite positioning method, wireless network positioning method, base station positioning method, Bluetooth positioning method, and wireless radio frequency technology positioning method.
[0219] In this embodiment of the application, the determining unit 801 in the positioning method determining device 800 is used to determine the positioning method that best matches the current environment of the terminal when the battery information corresponding to the terminal is less than a preset battery threshold, based on the relationship between the positioning location and N preset type areas.
[0220] In this embodiment of the application, the determining unit 801 in the positioning method determining device 800 is used to determine the first positioning method that best matches the current environment of the terminal if the positioning location belongs to a first preset type area; wherein, the positioning methods of the historical terminal in the first preset type area include: satellite positioning method and wireless network positioning method; the first positioning method includes the wireless network positioning method and the satellite positioning method in descending order of priority;
[0221] If the location belongs to a second preset type area, then the second positioning method that best matches the current environment of the terminal is determined; wherein, among the positioning methods of the historical terminals in the second preset type area, the base station-based positioning method accounts for the largest proportion; the second positioning method includes: base station-based positioning method;
[0222] If the location belongs to a third preset type area, then the default process positioning method that best matches the current environment of the terminal is determined; wherein, the positioning information corresponding to each of the historical terminals does not belong to the third preset type area.
[0223] In this embodiment of the application, the determining unit 801 in the positioning method determining device 800 is used to determine the positioning method that best matches the current environment of the terminal when the acquired battery information corresponding to the terminal is greater than a preset battery threshold, based on at least one of the relationship between the positioning location and multiple preset areas and the relationship between the current time and a preset time period; wherein, the life status set for the user of the terminal is different in different preset time periods.
[0224] In this embodiment of the application, the plurality of preset areas further include: M preset living status areas; different preset living status areas correspond to different functional attributes; M is an integer greater than 0; the determining unit 801 in the positioning method determining device 800 is used to determine the positioning method that best matches the current environment of the terminal if the positioning location belongs to an area with a high priority positioning method among the plurality of preset areas; based on at least one of the relationship between the current time and the preset time period, the relationship between the positioning location and N preset type areas and M preset living status areas respectively;
[0225] If the location does not belong to a region with a high priority positioning method among multiple preset regions, then the positioning method that best matches the current environment of the terminal is determined based on the relationship between the location and the N preset type regions.
[0226] In this embodiment of the application, the determining unit 801 in the positioning method determining device 800 is used to determine the positioning method that best matches the current environment of the terminal based on the relationship between the positioning location and N preset type areas and M preset living state areas if the current time belongs to a first preset time period or a second preset time period; wherein, a learning state is set for the user of the terminal during the first preset time period; and a rest state is set for the user of the terminal during the second preset time period.
[0227] If the current time belongs to a third preset time period, then based on the relationship between the location and N preset type areas, the positioning method that best matches the current environment of the terminal is determined; wherein, other states are set for the user of the terminal during the third preset time period.
[0228] In this embodiment of the application, the determining unit 801 in the positioning method determining device 800 is used to determine the first positioning method that best matches the current environment of the terminal if the positioning location belongs to any one of the M preset living state areas; wherein, the first positioning method includes the following in descending order of priority: the wireless network-based positioning method and the satellite-based positioning method;
[0229] If the location does not belong to any of the M preset living status areas, then based on the relationship between the location and the N preset type areas, the positioning method that best matches the current environment of the terminal is determined.
[0230] It should be noted that, in the embodiments of this application, if the above-described item information processing method is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, or the part that contributes to the related technology, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause an item information processing device (which may be a personal computer, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), magnetic disks, or optical disks. Thus, the embodiments of this application are not limited to any specific hardware and software combination.
[0231] Correspondingly, embodiments of this application provide a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the steps in the method of the positioning mode determination device 800.
[0232] It should be noted that the descriptions of the storage medium and device embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage medium and device embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.
[0233] It should be noted that, Figure 16 A schematic diagram of a hardware entity of an electronic device provided in an embodiment of this application, such as... Figure 16 As shown, this application embodiment provides an electronic device 900, including a memory 902 and a processor 901. The memory 902 stores a computer program that can run on the processor 901. When the processor 901 executes the program, it implements the steps in the above-described method, wherein;
[0234] Processor 901 typically controls the overall operation of electronic device 900.
[0235] The memory 902 is configured to store instructions and applications executable by the processor 901, and can also cache data to be processed or already processed (e.g., image data, audio data, voice communication data and video communication data) in the processor 901 and various modules in the electronic device 900. It can be implemented by flash memory or random access memory (RAM).
[0236] Correspondingly, this application embodiment also provides a computer program product, including a computer program that can be executed by the processor 901 of the electronic device 900 to complete the steps in the method of determining the positioning method on one side of the device.
[0237] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of this application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. It should be understood that in the various embodiments of this application, the sequence numbers of the above-described processes do not imply a sequential order of execution; the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application. The sequence numbers of the above-described embodiments are merely descriptive and do not represent the superiority or inferiority of the embodiments.
[0238] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0239] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical functional division, and in actual implementation, there may be other division methods, such as: multiple units or components can be combined, or integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the various components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of the apparatus or units can be electrical, mechanical, or other forms.
[0240] The units described above as separate components may or may not be physically separate. The components shown as units may or may not be physical units. They may be located in one place or distributed across multiple network units. Some or all of the units may be selected to achieve the purpose of this embodiment according to actual needs.
[0241] In addition, each functional unit in the various embodiments of this application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be implemented in hardware or in the form of hardware plus software functional units.
[0242] Those skilled in the art will understand that all or part of the steps of the above method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it performs the steps of the above method embodiments. The aforementioned storage medium includes various media that can store program code, such as mobile storage devices, read-only memory (ROM), magnetic disks, or optical disks.
[0243] Alternatively, if the integrated units described above are implemented as software functional modules and sold or used as independent products, they can also be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of this application, or the parts that contribute to related technologies, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0244] The above description is merely an embodiment of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method of determining a positioning mode, characterized by, The method comprises the following steps: determining the positioning mode that best matches the current environment of the terminal based on at least one of the acquired power information corresponding to the terminal, the current time, and the membership relationship, for the terminal to use the positioning mode for positioning; wherein the membership relationship is the membership relationship between the acquired positioning position corresponding to the terminal and a plurality of preset regions.
2. The method of claim 1, wherein, The plurality of preset regions include N preset type regions; the proportion of the positioning mode of the historical terminal in different preset type regions is different; N is an integer greater than 0; before determining the positioning mode that best matches the current environment of the terminal based on at least one of the acquired power information corresponding to the terminal, the current time, and the membership relationship, the method further comprises: periodically acquiring historical positioning information corresponding to each historical terminal; wherein the historical positioning information includes position information and positioning mode information of the corresponding historical terminal; based on the historical positioning information corresponding to each historical terminal, region division is performed to determine N preset type regions.
3. The method of claim 2, wherein, The region division based on the historical positioning information corresponding to each historical terminal to determine N preset type regions comprises: based on the position information corresponding to each historical terminal, region division is performed to determine N regions; based on the proportion of the positioning mode information of the historical terminal contained in each region, the region type corresponding to each region is determined, and then N preset type regions are determined.
4. The method of claim 3, wherein, The method further comprises: randomly reacquiring the historical positioning information of the historical terminal corresponding to any preset type region, and redetermining the type of the preset type region based on the reacquired historical positioning information.
5. The method of claim 2, wherein, The positioning mode of the historical terminal contained in each preset type region includes at least one of the following: satellite-based positioning mode, wireless network-based positioning mode, base station-based positioning mode, Bluetooth-based positioning mode, and wireless radio frequency technology-based positioning mode.
6. The method of claim 1 to 5, wherein, The determination of the positioning mode that best matches the current environment of the terminal based on at least one of the acquired power information corresponding to the terminal, the current time, and the membership relationship comprises: in the case where the acquired power information corresponding to the terminal is less than a preset power threshold, determining the positioning mode that best matches the current environment of the terminal based on the membership relationship between the positioning position and N preset type regions.
7. The method of claim 6, wherein, The determination of the positioning mode that best matches the current environment of the terminal based on at least one of the acquired power information corresponding to the terminal, the current time, and the membership relationship comprises one of the following: if the positioning position belongs to a first preset type region, a first positioning mode that best matches the current environment of the terminal is determined; wherein the positioning mode of the historical terminal in the first preset type region includes satellite-based positioning mode and wireless network-based positioning mode; the first positioning mode includes the following in order of decreasing priority: wireless network-based positioning mode and satellite-based positioning mode; If the positioning position belongs to a second preset type region, a second positioning mode that is most matched with the current environment of the terminal is determined; wherein, a proportion of a base station positioning mode in the positioning modes of the historical terminals in the second preset type region is the largest; the second positioning mode comprises a base station positioning mode; If the positioning position belongs to a third preset type region, a default flow positioning mode that is most matched with the current environment of the terminal is determined; wherein, the positioning information corresponding to each historical terminal does not belong to the third preset type region.
8. The method of claim 1 to 5, wherein, The method further comprises: In a case where the acquired power information corresponding to the terminal is greater than a preset power threshold, a positioning mode that is most matched with the current environment of the terminal is determined based on at least one of a belonging relationship between the positioning position and a plurality of preset regions and a belonging relationship between the current time and a preset time period; wherein, different life states of a user of the terminal are set in different preset time periods.
9. The method of claim 8, wherein, The plurality of preset regions further comprise M preset life state regions; different preset life state regions correspond to different function attributes; M is an integer greater than 0; the method further comprises one of the following: If the positioning position belongs to a region comprising a high-priority positioning mode in the plurality of preset regions, a positioning mode that is most matched with the current environment of the terminal is determined based on at least one of a belonging relationship between the current time and the preset time period, a belonging relationship between the positioning position and N preset type regions, and a belonging relationship between the positioning position and M preset life state regions; If the positioning position does not belong to a region comprising a high-priority positioning mode in the plurality of preset regions, a positioning mode that is most matched with the current environment of the terminal is determined based on a belonging relationship between the positioning position and N preset type regions.
10. The method of claim 8, wherein, The method further comprises one of the following: If the current time belongs to a first preset time period or a second preset time period, a positioning mode that is most matched with the current environment of the terminal is determined based on a belonging relationship between the positioning position and N preset type regions and a belonging relationship between the positioning position and M preset life state regions; wherein, a learning state of a user of the terminal is set in the first preset time period; a rest state of the user of the terminal is set in the second preset time period; If the current time belongs to a third preset time period, a positioning mode that is most matched with the current environment of the terminal is determined based on a belonging relationship between the positioning position and N preset type regions; wherein, other states are set for a user of the terminal in the third preset time period.
11. The method of claim 10, wherein, The determining of the positioning mode that is most matched with the current environment of the terminal based on the belonging relationship between the positioning position and the N preset type regions and the M preset life state regions respectively comprises one of the following: If the positioning position belongs to any one of the M preset life state regions, a first positioning mode that is most matched with the current environment of the terminal is determined; wherein, the first positioning mode comprises the positioning mode based on wireless network and the positioning mode based on satellite in a descending order of priority; If the positioning position does not belong to any one of the M preset life state regions, a positioning mode that is most matched with the current environment of the terminal is determined based on a belonging relationship between the positioning position and N preset type regions.
12. A positioning mode determination apparatus characterized by comprising: Comprise: A determining unit is configured to determine a positioning mode that is most matched with the current environment of the terminal based on at least one of acquired power information corresponding to the terminal and a current time and a belonging relationship, so that the terminal utilizes the positioning mode for positioning; wherein, the belonging relationship is a belonging relationship between a positioning position corresponding to the terminal and a plurality of preset regions.
13. An electronic device, comprising: The computer program is executed by the processor to implement the steps in the method of any one of claims 1 to 11.
14. A computer readable storage medium having stored thereon a computer program, characterized in that, The computer program is executed by the processor to implement the steps in the method of any one of claims 1 to 11.
15. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the steps in the method of any one of claims 1 to 11.