Service switching method and device, computer equipment and readable storage medium

By receiving navigation satellite signals and judging relationship expressions, it automatically switches vehicle services, solving the problem of traditional vehicle cross-regional positioning enhanced service switching, achieving seamless service switching and satisfying geographic information regulations.

CN118764929APending Publication Date: 2024-10-11NINGBO LOTUS ROBOTICS CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410935470.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

When traditional vehicles travel across regions, they do not support positioning enhancement services in the corresponding regions, resulting in the inability to perform real-time dynamic RTK positioning and seamless service switching, which violates the requirements of geographic information security regulations.

Method used

By receiving navigation satellite signals, the current position is determined and the current area is determined based on the judgment relationship of the external polygon, and the service is automatically switched to the current area adaptation, including obtaining the edge point set, connecting the lines to form the external polygon, judging the relationship, and switching services. Ensure service quality.

Benefits of technology

It achieves seamless service switching to meet cross-regional service needs, simplifies processes, improves processing efficiency, meets geographic information regulatory requirements, and avoids human operations and control center intervention.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764929A_ABST
    Figure CN118764929A_ABST
Patent Text Reader

Abstract

The invention relates to a service switching method and device, computer equipment, a computer readable storage medium and a computer program product. For the circumscribed polygon used for representing the area contour of the current area, whether the current position where the target object is located is located in the current area or not can be determined based on the judgment relational expression corresponding to the circumscribed polygon, and under the condition that the current position where the target object is located is located, the service used by the target object is switched into the service matched with the current area. The service adaptive to the current area can be automatically switched according to the position of the target object, so that the service requirement of the target object can be met, convenience is provided for service switching, the geographic information regulation requirement of the current area can be met, and cross-area seamless switching is realized. Besides, the whole process does not need to be controlled by manual operation or a control center, but is automatically judged and switched by the target object, so that the process can be simplified, and the processing efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field, and in particular to a service switching method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art

[0002] At present, traditional vehicles use GNSS (Global Navigation Satellite System) for positioning and navigation, and RTK (Real time kinematic) carrier phase differential technology for positioning enhancement. Since RTK positioning enhancement services inevitably collect GNSS positioning information, due to restrictions on geographic information security regulations, vehicles are generally designed for a single target area and only support a single positioning enhancement service. When a vehicle travels from one area to another, it may not be able to perform positioning enhancement because it does not support the positioning enhancement service provided by the corresponding area. Summary of the invention

[0003] Based on this, it is necessary to provide a service switching method, apparatus, computer device, computer-readable storage medium and computer program product that can seamlessly switch services in response to the above technical problems.

[0004] In a first aspect, the present application provides a service switching method, comprising:

[0005] Obtain the current position of the target object according to the received navigation satellite signal;

[0006] For a circumscribed polygon used to represent the area outline of the current area, determining a corresponding judgment relational expression of the circumscribed polygon, wherein the judgment relational expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0007] When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted to the current area.

[0008] In one embodiment, the process of determining the circumscribed polygon includes:

[0009] Determine the edge point set on the region contour of the current region;

[0010] According to the arrangement order of edge points in the edge point set on the region contour, connecting lines based on the arrangement order and the edge points in the edge point set to obtain a connection result;

[0011] Based on the line connection result, a circumscribed polygon for representing the area outline of the current area is determined.

[0012] In one embodiment, connecting the edge points in the edge point set based on the arrangement order includes:

[0013] According to the preset connection interval, multiple target edge points are selected from the edge point set;

[0014] Connect multiple target edge points according to the arrangement order.

[0015] In one embodiment, determining a circumscribed polygon for representing a region outline of the current region based on the line connection result includes:

[0016] When the connection result is a convex polygon, the connection result is used as a circumscribed polygon for representing the area outline of the current area;

[0017] When the line connection result is a concave polygon, a plurality of convex polygons obtained by dividing the line connection result are used as circumscribed polygons for representing the region outline of the current region.

[0018] In one embodiment, there are multiple services adapted to the current region; based on the services adapted to the current region, the services used by the target object are switched, including:

[0019] Get the corresponding service quality of each service adapted to the current area;

[0020] According to the corresponding service quality of each service, a target service is selected from a variety of services adapted to the current area, and the service used by the target object is switched to the target service.

[0021] In one embodiment, the service is a real-time dynamic RTK positioning service; obtaining the corresponding service quality of each service adapted to the current area includes:

[0022] Acquire a first surrounding environment image at a current position transmitted by the target object;

[0023] For each RTK service adapted to the current area, obtain a reference positioning position under the RTK service and a second surrounding environment image within a preset range at the reference positioning position;

[0024] The corresponding service quality of RTK is determined according to the similarity between the first surrounding environment image and the second surrounding environment image.

[0025] In a second aspect, the present application also provides a service switching device, including:

[0026] A positioning module is used to obtain the current position of the target object based on the received navigation satellite signal;

[0027] A calculation module, for determining a judgment relational expression corresponding to a circumscribed polygon for representing the area outline of the current area, wherein the judgment relational expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0028] The switching module is used to switch the service used by the target object based on the service adapted to the current area when it is determined based on the judgment relationship that the current position is in the current area.

[0029] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:

[0030] Obtain the current position of the target object according to the received navigation satellite signal;

[0031] For a circumscribed polygon used to represent the area outline of the current area, determining a corresponding judgment relational expression of the circumscribed polygon, wherein the judgment relational expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0032] When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted to the current area.

[0033] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the following steps are implemented:

[0034] Obtain the current position of the target object according to the received navigation satellite signal;

[0035] For a circumscribed polygon used to represent the area outline of the current area, determining a corresponding judgment relational expression of the circumscribed polygon, wherein the judgment relational expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0036] When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted to the current area.

[0037] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:

[0038] Obtain the current position of the target object according to the received navigation satellite signal;

[0039] For a circumscribed polygon used to represent the area outline of the current area, determining a corresponding judgment relational expression of the circumscribed polygon, wherein the judgment relational expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0040] When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted to the current area.

[0041] The above-mentioned service switching method, device, computer equipment, computer-readable storage medium and computer program product can determine whether the current location of the target object is in the current area based on the judgment relationship corresponding to the circumscribed polygon used to characterize the area outline of the current area, and if it is, switch the service used by the target object to a service adapted to the current area. Since it can automatically switch to a service adapted to the current area according to the location of the target object, the service needs of the target object can be met, which provides convenience for service switching, and can meet the geographic information regulations of the current area, and realize seamless switching across regions. In addition, since the entire process does not require manual operation or control by a control center, but is judged and switched by the target object itself, the process can be simplified and processing efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0043] FIG1 is an application environment diagram of a service switching method in one embodiment;

[0044] FIG2 is a schematic diagram of a flow chart of a service switching method in an embodiment;

[0045] FIG3 is a schematic diagram of the shape of a circumscribed polygon of a region in one embodiment;

[0046] FIG4 is a schematic diagram of the shape of a circumscribed polygon of a region in another embodiment;

[0047] FIG5 is a schematic diagram of the shape of a circumscribed polygon of a region in yet another embodiment;

[0048] FIG6 is a schematic diagram of a flow chart of a service switching method in another embodiment;

[0049] FIG7 is a structural block diagram of a service switching device in one embodiment;

[0050] FIG. 8 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0051] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] The service switching method provided in the embodiment of the present application can be applied to the application environment shown in Figure 1. Among them, the terminal 102 communicates with the communication device 104 through the network. The data storage system can store the data that the communication device 104 needs to process. The data storage system can be integrated on the communication device 104, or it can be placed on the cloud or other network servers, and the terminal 102 can exchange data with the communication device 104. The terminal 102 obtains the current position of the target object based on the received navigation satellite signal; for the circumscribed polygon used to characterize the area outline of the current area, the judgment relationship corresponding to the circumscribed polygon is determined, and the judgment relationship is determined based on the straight line equation on the upper side of the circumscribed polygon; when it is determined that the current position is in the current area based on the judgment relationship, the service used by the target object is switched based on the service adapted to the current area.

[0053] Among them, the terminal 102 can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc.; portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc., which are not specifically limited in the embodiments of the present application. The communication device 104 can be a base station or a satellite, etc., which are not specifically limited in the embodiments of the present application.

[0054] In an exemplary embodiment, as shown in FIG2 , a service switching method is provided. The service switching in the embodiment of the present application is mainly accompanied by the movement of the target object, and the service switching is performed according to the current position to which the target object moves. Among them, due to cross-regional (such as cross-border) operations, even for the same type of service functions, different regions may adopt different types of service forms, so service switching is required. The "service" mentioned in the embodiment of the present application may refer to 4G traffic service, radio service, or weather forecast service, etc.; "service" may not only refer to one item, but may also refer to multiple items, and the embodiment of the present application does not specifically limit this.

[0055] The method is applied to the terminal 102 in FIG. 1 as an example for explanation. The terminal 102 may be a vehicle-mounted terminal or a mobile terminal. The embodiment of the present application does not specifically limit the form of the terminal 102. The service switching method includes the following steps 202 to 206. Among them:

[0056] Step 202: Acquire the current position of the target object according to the received navigation satellite signal.

[0057] Among them, the navigation satellite signal may refer to a GNSS (Global Navigation Satellite System) signal, and the GNSS may specifically be GPS or BeiDou, etc., which is not limited in the embodiments of the present application. Positioning based on the GNSS signal may obtain the current position of the target object. The target object may refer to a vehicle, or may refer to a train, a ship, or a locomotive, etc., which is not specifically limited in the embodiments of the present application.

[0058] Step 204, for a circumscribed polygon used to represent the area outline of the current area, determine a judgment relationship corresponding to the circumscribed polygon, where the judgment relationship is determined based on a straight line equation on the upper side of the circumscribed polygon.

[0059] In Figure 3, the area enclosed by solid lines is the current area, the solid lines are the area outline, and the dotted lines enclose a polygon, which is the circumscribed polygon. It can be seen that the circumscribed polygon is composed of multiple dashed straight line segments (that is, multiple dashed edges), and each segment can correspond to a straight line equation. A two-dimensional coordinate system is constructed based on the current area in Figure 3, and there is a straight line equation Ax+By+C=0 in this two-dimensional coordinate system. If the coordinates of a point are (x1, y1), and the point is substituted into the straight line equation, and the calculated Ax1+By1+C is greater than 0, it means that in the two-dimensional coordinate system, the point is located above the straight line corresponding to the straight line equation. If the calculated Ax1+By1+C is less than 0, it means that in the two-dimensional coordinate system, the point is located below the straight line corresponding to the straight line equation. Based on this principle, since each dashed edge in Figure 3 can correspond to a straight line equation, a judgment relationship can be determined. For example, the above-mentioned Ax1+By1+C>0 is a judgment relationship used to determine whether the point (x1, y1) is above the straight line.

[0060] Step 206: When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted to the current area.

[0061] The current position can also be represented by the coordinates (x, y). Based on the previous content, the coordinates can be substituted into the corresponding judgment relationship of the line equation to determine whether the point corresponding to the current position is above or below the line. Referring to Figure 4, it can be seen that the circumscribed polygon formed by the solid line has a total of 6 sides. Each side can correspond to a straight line, namely L1 to L6.

[0062] It can be seen that if a point is located in the circumscribed polygon formed by L1 to L6 as shown in Figure 4, the point needs to be below L1, below L2, above L3, above L4, above L5 and below L6. Therefore, based on the linear equation of each straight line, the judgment relationship of the corresponding edge can be determined. For example, the judgment relationship can be specifically:

[0063] 10x-14y > 170 and 8x+5y > 784 and

[0064] 8x+17y > 1168 and 4x-3y < 400 and

[0065] 3x+7y < 744 and 4x-35y > -1402;

[0066] That is, substitute the X coordinate and Y coordinate of the current position into the above judgment relationship respectively. If each judgment relationship is established, it can be determined that the current position is in the current area. It should be noted that there is still a difference between the circumscribed polygon in Figures 3 and 4 and the area outline of the current area, and the circumscribed polygon can approximately simulate the area outline of the current area. In actual implementation, the circumscribed polygon can be divided according to the actual accuracy requirements, and the embodiment of the present application does not make specific limitations on this. Figures 3 and 4 only show an area as an example. In actual implementation, there can be multiple areas, and each area can have adapted services. When it is determined that the current position is in the current area, the service used by the target object can be switched to a service adapted to the current area.

[0067] In the above service switching method, for the circumscribed polygon used to characterize the area outline of the current area, it is possible to determine whether the current location of the target object is in the current area based on the judgment relationship corresponding to the circumscribed polygon, and if it is, the service used by the target object is switched to a service adapted to the current area. Since it is possible to automatically switch to a service adapted to the current area according to the location of the target object, the service needs of the target object can be met, which provides convenience for service switching, and can meet the geographic information regulations of the current area, and achieve seamless switching across regions. In addition, since the entire process does not require manual operation or control by a control center, but is judged and switched by the target object itself, the process can be simplified and processing efficiency can be improved.

[0068] In an exemplary embodiment, the process of determining the circumscribed polygon includes:

[0069] Determine the edge point set on the region contour of the current region;

[0070] According to the arrangement order of edge points in the edge point set on the region contour, connecting lines based on the arrangement order and the edge points in the edge point set to obtain a connection result;

[0071] Based on the line connection result, a circumscribed polygon for representing the area outline of the current area is determined.

[0072] Specifically, referring to FIG4, it can be seen that there can be many edge points on the area contour of the current area (as shown in the upper right corner). As shown in FIG4, 6 reference points can be formed based on the edge points. These 6 reference points can form a certain arrangement order in a clockwise direction, and the lines can form L1 to L6. It should be noted that the reason why the 6 reference points need to be re-determined based on the edge points in FIG4 is mainly because if all edge points are directly connected according to the arrangement order, a circumscribed polygon formed by many straight line segments will be formed. The more straight lines there are, the more corresponding judgment formulas there will be. This will result in a relatively large amount of processing when determining whether the current position is in the current area based on the judgment formula.

[0073] Therefore, six reference points are re-determined according to the edge points in Figure 4, and the six reference points are connected to form a circumscribed polygon. Of course, in actual implementation, the edge points can also be directly connected to form a circumscribed polygon, and this embodiment of the application does not specifically limit this.

[0074] In this embodiment, since lines can be connected based on edge points on the region outline of the current region, a circumscribed polygon can be accurately drawn to serve as a basis for determining the judgment relationship.

[0075] In an exemplary embodiment, connecting the edge points in the edge point set based on the arrangement order includes:

[0076] According to the preset connection interval, multiple target edge points are selected from the edge point set;

[0077] Connect multiple target edge points according to the arrangement order.

[0078] As can be seen from the previous content, if all edge points are directly connected according to the arrangement order, many judgment equations will be formed, which will result in a large amount of calculation when determining whether the current position is in the current area based on the judgment equation. Therefore, in the embodiment of the present application, some target edge points can be selected and only the target edge points can be connected.

[0079] In this embodiment, since target edge points can be selected for connection, the processing amount can be reduced.

[0080] In an exemplary embodiment, determining a circumscribed polygon for representing a region outline of the current region based on the line connection result includes:

[0081] When the connection result is a convex polygon, the connection result is used as a circumscribed polygon for representing the area outline of the current area;

[0082] When the line connection result is a concave polygon, a plurality of convex polygons obtained by dividing the line connection result are used as circumscribed polygons for representing the region outline of the current region.

[0083] Taking Figure 5 as an example, based on the extension line of L2 in Figure 5, it can be seen that the point above the extension line of L2 is located in the current area, and the point below the extension line of L2 is also located in the current area. At this time, the above-mentioned method of judging whether the point is located above or below the straight line according to the judgment relationship, and thus further judging whether the point is in the current area, will become invalid. Therefore, in the case where the connection result is a concave polygon, the connection result can be first divided into multiple convex polygons, such as the left and right convex polygons divided by the dotted line in Figure 5, both of which are used as circumscribed polygons. Later, when judging whether the current position is in the current area, each circumscribed polygon can be judged according to the above judgment method. It should be noted that Figure 5 is only one of the division methods. In actual implementation, other methods can also be used to divide the concave polygon into multiple convex polygons, and the embodiments of the present application do not make specific limitations on this.

[0084] In this embodiment, when the connection result obtained by connecting the edge points is a concave polygon, the concave polygon is divided into convex polygons to avoid the failure of the previous judgment method of whether the current position belongs to the current area, thereby making the processing method more comprehensive.

[0085] In an exemplary embodiment, there are multiple services adapted to the current region; based on the services adapted to the current region, the services used by the target object are switched, including:

[0086] Get the corresponding service quality of each service adapted to the current area;

[0087] According to the corresponding service quality of each service, a target service is selected from a variety of services adapted to the current area, and the service used by the target object is switched to the target service.

[0088] Among them, the service quality may be related to the service type. If the "service" is specifically an RTK service, the service quality may be positioning accuracy; if the "service" is a weather forecast service, the service quality may be forecast accuracy. The embodiment of the present application does not specifically limit the content of the service quality. It is understandable that the current area can adapt to a variety of services for the target object to choose, so that the service with the best service quality can be selected as the target service according to the corresponding service quality of each service.

[0089] In this embodiment, since the target service can be selected according to the service quality, the subsequent service quality can be improved.

[0090] In an exemplary embodiment, the service is a real-time dynamic RTK positioning service; obtaining the corresponding service quality of each service adapted to the current area includes:

[0091] Acquire a first surrounding environment image at a current position transmitted by the target object;

[0092] For each RTK service adapted to the current area, obtain a reference positioning position under the RTK service and a second surrounding environment image within a preset range at the reference positioning position;

[0093] The corresponding service quality of RTK is determined according to the similarity between the first surrounding environment image and the second surrounding environment image.

[0094] In this embodiment, the positioning accuracy of the RTK service can be determined according to the degree of similarity between the surrounding environment image of the reference positioning position provided by the RTK service and the surrounding environment image of the target object's position as the service quality, which is more accurate as a basis for judgment.

[0095] For ease of understanding, the complete method flow provided by the embodiment of the present application is now described. Take the target object as a vehicle and the service as an RTK service as an example. Referring to FIG6 , the specific implementation can be shown in the following process steps:

[0096] Step 602, obtaining the current position coordinates of the vehicle.

[0097] Step 604: if the circumscribed polygon of the current area is a concave polygon, the circumscribed polygon is divided into a plurality of convex polygons, and the result of the division is used as the circumscribed polygon again.

[0098] Step 606, for each circumscribed polygon, determine the straight line equation of each line to which each side of the circumscribed polygon belongs, and determine the corresponding judgment relationship based on the straight line equation.

[0099] Step 608, judging whether the current position coordinates are within the circumscribed polygon according to the judgment relationship expression corresponding to each edge of the circumscribed polygon; if so, determining that the current position coordinates are within the current area.

[0100] Step 610: Switch the RTK service used by the vehicle to an RTK service adapted to the current area.

[0101] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0102] Based on the same inventive concept, the embodiment of the present application also provides a service switching device for implementing the service switching method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more service switching device embodiments provided below can refer to the limitations on the service switching method above, and will not be repeated here.

[0103] In an exemplary embodiment, as shown in FIG. 7 , a service switching device is provided, including: a positioning module 702, a calculation module 704 and a switching module 706, wherein:

[0104] The positioning module 702 is used to obtain the current position of the target object according to the received navigation satellite signal;

[0105] A calculation module 704 is used to determine a judgment relationship expression corresponding to a circumscribed polygon for representing the area outline of the current area, wherein the judgment relationship expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0106] The switching module 706 is used to switch the service used by the target object based on the service adapted to the current area when it is determined based on the judgment relationship that the current position is in the current area.

[0107] In an exemplary embodiment, the calculation module 704 is also used to determine the edge point set on the area contour of the current area; based on the arrangement order of the edge points in the edge point set on the area contour, connect the edge points in the edge point set based on the arrangement order to obtain a connection result; based on the connection result, determine the circumscribed polygon used to characterize the area contour of the current area.

[0108] In an exemplary embodiment, the calculation module 704 is further configured to select a plurality of target edge points from the edge point set according to a preset connection interval; and connect the plurality of target edge points according to an arrangement order.

[0109] In an exemplary embodiment, the calculation module 704 is also used to use the line connection result as a circumscribed polygon for representing the area contour of the current area when the line connection result is a convex polygon; and to use multiple convex polygons obtained by dividing the line connection result as circumscribed polygons for representing the area contour of the current area when the line connection result is a concave polygon.

[0110] In an exemplary embodiment, there are multiple services adapted for the current area; the switching module 706 is used to obtain the corresponding service quality of each service adapted for the current area; according to the corresponding service quality of each service, a target service is selected from the multiple services adapted for the current area, and the service used by the target object is switched to the target service.

[0111] In an exemplary embodiment, the service is a real-time dynamic RTK positioning service; the switching module 706 is used to obtain a first surrounding environment image at the current position transmitted by the target object; for each RTK service adapted to the current area, a reference positioning position under the RTK service and a second surrounding environment image within a preset range at the reference positioning position are obtained; and the corresponding RTK service quality is determined based on the similarity between the first surrounding environment image and the second surrounding environment image.

[0112] Each module in the above service switching device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0113] In an exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be shown in FIG8. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit, and an input device. The processor, the memory, and the input / output interface are connected via a system bus, and the communication interface, the display unit, and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner may be implemented through WIFI, a mobile cellular network, near field communication (NFC) or other technologies. When the computer program is executed by the processor, a service switching method is implemented. The display unit of the computer device is used to form a visually visible picture, which may be a display screen, a projection device, or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0114] Those skilled in the art will understand that the structure shown in FIG. 8 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.

[0115] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0116] Obtain the current position of the target object according to the received navigation satellite signal;

[0117] For a circumscribed polygon used to represent the area outline of the current area, determining a corresponding judgment relational expression of the circumscribed polygon, wherein the judgment relational expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0118] When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted to the current area.

[0119] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0120] Determine the edge point set on the region contour of the current region;

[0121] According to the arrangement order of edge points in the edge point set on the region contour, connecting lines based on the arrangement order and the edge points in the edge point set to obtain a connection result;

[0122] Based on the line connection result, a circumscribed polygon for representing the area outline of the current area is determined.

[0123] In one embodiment, when the processor executes the computer program, the processor also implements the following steps when executing the computer program:

[0124] According to the preset connection interval, multiple target edge points are selected from the edge point set;

[0125] Connect multiple target edge points according to the arrangement order.

[0126] In one embodiment, when the processor executes the computer program, the processor also implements the following steps when executing the computer program:

[0127] When the connection result is a convex polygon, the connection result is used as a circumscribed polygon for representing the area outline of the current area;

[0128] When the line connection result is a concave polygon, a plurality of convex polygons obtained by dividing the line connection result are used as circumscribed polygons for representing the region outline of the current region.

[0129] In one embodiment, when the processor executes the computer program, the processor also implements the following steps when executing the computer program:

[0130] Get the corresponding service quality of each service adapted to the current area;

[0131] According to the corresponding service quality of each service, a target service is selected from a variety of services adapted to the current area, and the service used by the target object is switched to the target service.

[0132] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0133] Acquire a first surrounding environment image at a current position transmitted by the target object;

[0134] For each RTK service adapted to the current area, obtain a reference positioning position under the RTK service and a second surrounding environment image within a preset range at the reference positioning position;

[0135] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0136] Obtain the current position of the target object according to the received navigation satellite signal;

[0137] For a circumscribed polygon used to represent the area outline of the current area, determining a corresponding judgment relational expression of the circumscribed polygon, wherein the judgment relational expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0138] When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted to the current area.

[0139] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0140] Determine the edge point set on the region contour of the current region;

[0141] According to the arrangement order of edge points in the edge point set on the region contour, connecting lines based on the arrangement order and the edge points in the edge point set to obtain a connection result;

[0142] Based on the line connection result, a circumscribed polygon for representing the area outline of the current area is determined.

[0143] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0144] According to the preset connection interval, multiple target edge points are selected from the edge point set;

[0145] Connect multiple target edge points according to the arrangement order.

[0146] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0147] When the connection result is a convex polygon, the connection result is used as a circumscribed polygon for representing the area outline of the current area;

[0148] When the line connection result is a concave polygon, a plurality of convex polygons obtained by dividing the line connection result are used as circumscribed polygons for representing the region outline of the current region.

[0149] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0150] Get the corresponding service quality of each service adapted to the current area;

[0151] According to the corresponding service quality of each service, a target service is selected from a variety of services adapted to the current area, and the service used by the target object is switched to the target service.

[0152] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0153] Acquire a first surrounding environment image at a current position transmitted by the target object;

[0154] For each RTK service adapted to the current area, obtain a reference positioning position under the RTK service and a second surrounding environment image within a preset range at the reference positioning position;

[0155] The corresponding service quality of RTK is determined according to the similarity between the first surrounding environment image and the second surrounding environment image.

[0156] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0157] Obtain the current position of the target object according to the received navigation satellite signal;

[0158] For a circumscribed polygon used to represent the area outline of the current area, determining a corresponding judgment relational expression of the circumscribed polygon, wherein the judgment relational expression is determined based on a straight line equation on an upper side of the circumscribed polygon;

[0159] When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted to the current area.

[0160] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0161] Determine the edge point set on the region contour of the current region;

[0162] According to the arrangement order of edge points in the edge point set on the region contour, connecting lines based on the arrangement order and the edge points in the edge point set to obtain a connection result;

[0163] Based on the line connection result, a circumscribed polygon for representing the area outline of the current area is determined.

[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0165] According to the preset connection interval, multiple target edge points are selected from the edge point set;

[0166] Connect multiple target edge points according to the arrangement order.

[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0168] When the connection result is a convex polygon, the connection result is used as a circumscribed polygon for representing the area outline of the current area;

[0169] When the line connection result is a concave polygon, a plurality of convex polygons obtained by dividing the line connection result are used as circumscribed polygons for representing the region outline of the current region.

[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0171] Get the corresponding service quality of each service adapted to the current area;

[0172] According to the corresponding service quality of each service, a target service is selected from a variety of services adapted to the current area, and the service used by the target object is switched to the target service.

[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0174] Acquire a first surrounding environment image at a current position transmitted by the target object;

[0175] For each RTK service adapted to the current area, obtain a reference positioning position under the RTK service and a second surrounding environment image within a preset range at the reference positioning position;

[0176] The corresponding service quality of RTK is determined according to the similarity between the first surrounding environment image and the second surrounding environment image.

[0177] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0178] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.

[0179] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A service switching method, characterized in that: The method comprises: Obtain the current position of the target object according to the received navigation satellite signal; For a circumscribed polygon used to represent the area outline of the current area, determining a judgment relationship expression corresponding to the circumscribed polygon, wherein the judgment relationship expression is determined based on a straight line equation on an upper side of the circumscribed polygon; When it is determined based on the judgment relationship that the current position is in the current area, the service used by the target object is switched based on the service adapted for the current area.

2. The method according to claim 1, characterized in that The process of determining the circumscribed polygon includes: Determine the edge point set on the region contour of the current region; For the arrangement order of the edge points in the edge point set on the region contour, connecting lines based on the arrangement order and the edge points in the edge point set to obtain a connection result; Based on the connection result, a circumscribed polygon for representing the area outline of the current area is determined.

3. The method according to claim 2, characterized in that The connecting the edge points based on the arrangement order and the edge point set includes: According to a preset line interval, selecting a plurality of target edge points from the edge point set; The plurality of target edge points are connected according to the arrangement order.

4. The method according to claim 2, characterized in that: The step of determining a circumscribed polygon for representing the area outline of the current area based on the line connection result includes: When the connection result is a convex polygon, the connection result is used as a circumscribed polygon for representing the area outline of the current area; In the case that the connection result is a concave polygon, a plurality of convex polygons obtained by dividing the connection result are used as circumscribed polygons for representing the area outline of the current area.

5. The method according to claim 1, characterized in that There are multiple services adapted to the current region; the switching of the service used by the target object based on the service adapted to the current region includes: Get the corresponding service quality of each service adapted to the current area; According to the corresponding service quality of each service, a target service is selected from a plurality of services adapted to the current area, and the service used by the target object is switched to the target service.

6. The method according to claim 5, characterized in that The service is a real-time dynamic RTK positioning service; the obtaining of the corresponding service quality of each service adapted to the current area includes: Acquire a first surrounding environment image at the current position transmitted by the target object; For each RTK service adapted to the current area, obtain a reference positioning position under the RTK service and a second surrounding environment image within a preset range at the reference positioning position; The corresponding service quality of the RTK is determined according to the similarity between the first surrounding environment image and the second surrounding environment image.

7. A service switching device, characterized in that: The device comprises: A positioning module is used to obtain the current position of the target object based on the received navigation satellite signal; A calculation module, for determining, for a circumscribed polygon used to represent the area outline of the current area, a judgment relationship expression corresponding to the circumscribed polygon, wherein the judgment relationship expression is determined based on a straight line equation on an upper side of the circumscribed polygon; The switching module is used to switch the service used by the target object based on the service adapted to the current area when it is determined based on the judgment relationship that the current position is in the current area.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.