Mileage calculation method, device, equipment and storage medium
By obtaining the highway toll station fence in the car navigation system and using GPS to automatically calculate the mileage value, the problem of automatic payment of highway tolls cannot be realized in the existing technology is solved, the payment efficiency is improved and the risk of traffic jams is reduced.
Patent Information
- Application Number
- CN202210102144.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-01-27
AI Technical Summary
Existing navigation software cannot automatically calculate and pay highway tolls for cars on the highway, causing users to manually park and pay, which is inefficient and involves the risk of traffic jams.
By obtaining the starting and ending points, determine the corresponding highway toll station fence, use GPS to determine the vehicle location, automatically calculate the mileage value, and perform mileage calculation operations when entering and exiting the toll station, and provide the total mileage value to a third party The charging system performs automatic payment.
It realizes automatic payment of tolls without stopping, improves payment efficiency, reduces the risk of traffic jams, and improves the convenience of highway driving.
Smart Images

Figure CN114821842B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of intelligent transportation technology, and more specifically, to a mileage calculation method, a mileage calculation device, an electronic device, and a computer-readable storage medium. Background Art
[0002] With the rapid development of economy, cars have become a basic means of transportation. Driving on highways has also become the preferred mode of transportation for people to travel long distances.
[0003] At present, when driving on the highway, navigation software is usually used. The navigation software plans the route according to the starting point, the passing points and the end point, and obtains the highway section from the starting point to the end point. Furthermore, the highway fee corresponding to each highway section is obtained through the charging standard database. Finally, the highway fee corresponding to all highway sections is accumulated to obtain the reference highway fee. However, this only provides users with a reference for highway fees, and cannot realize automatic payment. Summary of the invention
[0004] One purpose of the present application is to provide a new technical solution for mileage calculation.
[0005] According to a first aspect of the present application, a mileage calculation method is provided, the method comprising:
[0006] Get the starting point, the end point and the current position of the vehicle;
[0007] Determine a first fence according to the starting point, where the first fence is a fence of a starting point toll station corresponding to the starting point;
[0008] Determine a second fence according to the terminal location, where the second fence is a fence of a terminal toll station corresponding to the terminal location;
[0009] When it is determined that the vehicle is located within the first fence according to the current position and the first fence, performing a mileage calculation operation;
[0010] When it is determined that the vehicle is located within the second fence based on the current position and the second fence, the mileage calculation operation is terminated and the total mileage value of the vehicle is determined.
[0011] Optionally, the method further includes:
[0012] Determine the starting toll station according to the starting point location;
[0013] Determining the terminal toll station according to the terminal location;
[0014] The starting point toll station, the terminal point toll station and the total mileage value are output.
[0015] Optionally, determining the first fence according to the starting point includes:
[0016] According to the starting point location, obtaining the shape and range of the starting point toll station;
[0017] The first fence is determined according to the shape and range of the starting toll station.
[0018] Optionally, determining the second fence according to the end point location includes:
[0019] According to the terminal location, obtaining the shape and range of the terminal toll station;
[0020] The second fence is determined according to the shape and range of the terminal toll station.
[0021] Optionally, the first fence corresponds to a first center point and a first threshold, the second fence corresponds to a second center point and a second threshold, and the method, before performing the mileage calculation operation when it is determined that the vehicle is located within the first fence based on the current position and the first fence, includes:
[0022] When the current position is within the first fence and the distance between the current position and the first center point is less than the first threshold, determining that the vehicle is within the first fence;
[0023] The method, before ending the mileage calculation operation and determining the total mileage value of the vehicle when it is determined that the vehicle is located within the second fence according to the current position and the second fence, includes:
[0024] When the current position is within the range of the second fence and the distance between the vehicle and the second center point is less than the second threshold, it is determined that the vehicle is within the second fence.
[0025] Optionally, the mileage calculation operation includes:
[0026] Determine the current mileage value of the vehicle according to the current position of the vehicle and the historical position acquired at the previous moment;
[0027] Each current mileage value is accumulated to obtain a total mileage value of the vehicle.
[0028] Optionally, the current position includes current latitude and longitude values and current altitude value.
[0029] According to a second aspect of the present application, a mileage calculation device is provided, the device comprising:
[0030] The acquisition module is used to obtain the starting point, the end point and the current position of the vehicle;
[0031] A first determining module is used to determine a first fence according to the starting point, where the first fence is a fence of a starting point toll station corresponding to the starting point;
[0032] A second determination module is used to determine a second fence according to the terminal location, where the second fence is a fence of a terminal toll station corresponding to the terminal location;
[0033] an execution module, configured to execute a mileage calculation operation when it is determined that the vehicle is located within the first fence according to the current position and the first fence;
[0034] An end module is used to end the mileage calculation operation and determine the total mileage value of the vehicle when it is determined that the vehicle is located within the second fence based on the current position and the second fence.
[0035] According to a third aspect of the present application, there is provided an electronic device, comprising the apparatus as described in the second aspect;
[0036] Alternatively, it comprises a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the method as described in any one of the first aspects.
[0037] According to a fourth aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method according to any one of the first aspects is implemented.
[0038] In this embodiment, a mileage calculation method is provided, which includes: obtaining a starting point, an end point, and a current position of a vehicle; determining a first fence according to the starting point, the first fence being the fence of the starting toll station corresponding to the starting point; determining a second fence according to the end point, the second fence being the fence of the end toll station corresponding to the end point; performing a mileage calculation operation when it is determined that the vehicle is located within the first fence according to the current position and the first fence; and terminating the mileage calculation operation and determining the total mileage value of the vehicle when it is determined that the vehicle is located within the second fence according to the current position and the second fence. This embodiment provides a basis for automatically paying tolls without stopping. On this basis, it provides a basis for improving payment efficiency and reducing the risk of traffic jams.
[0039] Other features and advantages of the present application will become apparent from the following detailed description of exemplary embodiments of the present application with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the application and, together with the description, serve to explain the principles of the application.
[0041] Figure 1 It is a flowchart of a mileage calculation method provided by the present application;
[0042] Figure 2 is a structural schematic diagram of a mileage calculation device provided in an embodiment of the present application;
[0043] Figure 3 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present application.
[0045] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present application, its application, or uses.
[0046] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.
[0047] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0048] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.
[0049] <Method Example>
[0050] The mileage calculation method provided in the embodiment of the present application is executed by a mileage calculation device. The device may be an electronic device. Alternatively, the device may also be a hardware module and / or software module in the aforementioned electronic device.
[0051] In one example, the electronic device may be a smart phone carried by a driving user, or may be the vehicle itself.
[0052] It should be noted that the following description will be made by taking an electronic device as an example of the execution subject of the mileage calculation method provided in the embodiment of the present application.
[0053] The present application embodiment provides a mileage calculation method, such as Figure 1 As shown, the method includes the following S1100-S1500:
[0054] S1100, obtaining the starting point, the end point and the current position of the vehicle.
[0055] In one embodiment, the driving user manually or by voice inputs the starting point and the ending point to the electronic device while driving the vehicle. The electronic device obtains the starting point and the ending point in response to the manual or voice input by the driving user.
[0056] In one embodiment, the electronic device obtains the current position of the vehicle by receiving satellite clock information broadcasted by the satellite system, wherein the satellite system may be a Global Positioning System (GPS).
[0057] In one embodiment, the current position includes the current latitude and longitude values and the current altitude value. In this way, the current position can be more accurately described by representing the current position through a three-dimensional position, thereby providing a data basis for subsequently accurately determining whether the vehicle is located within the first fence, whether it is located within the second fence, and the total mileage value.
[0058] S1200: Determine a first fence according to the starting point.
[0059] Among them, the first fence is the fence of the starting point toll station corresponding to the starting point location.
[0060] In this embodiment, according to the starting point location, the toll station matching the starting point location is determined as the starting point toll station. Further, the area covering the area where the starting point toll station is located and whose center point coincides with the center point of the area where the starting point toll station is located is determined as the first fence.
[0061] The toll station that matches the starting point may be the toll station that is closest to the starting point and corresponds to the navigation route determined according to the starting point and the end point, or may be the toll station that is closest to the starting point.
[0062] In one example, the shape of the first fence can be circular, polygonal, etc., which is not limited in this embodiment of the present application.
[0063] S1300: Determine a second fence according to the end point.
[0064] Among them, the second fence is the fence of the terminal toll station corresponding to the terminal location.
[0065] In this embodiment, according to the terminal location, the toll station matching the terminal location is determined as the terminal toll station. Further, the area covering the terminal toll station and whose center point coincides with the center point of the terminal toll station area is determined as the second fence.
[0066] The toll station that matches the destination location is: the toll station that is closest to the destination location and corresponds to the navigation route determined according to the starting location and the destination location. Alternatively, it can be: the toll station that is closest to the destination location.
[0067] In one example, the shape of the second fence can be circular, polygonal, etc., which is not limited in this embodiment of the present application.
[0068] S1400, when it is determined that the vehicle is located within the first fence according to the current position and the first fence, performing a mileage calculation operation;
[0069] In this embodiment, when the current position is within the area corresponding to the first fence, it means that the vehicle is within the first fence. Since the first fence is the fence of the starting toll station, when the vehicle is within the first fence, it can be determined that the vehicle has entered the starting toll station. At this time, the mileage calculation operation is performed.
[0070] In one embodiment, the mileage calculation operation may be: calculating the mileage value of the vehicle according to the speed of the vehicle and the time the speed is maintained, and sequentially superimposing the mileage value corresponding to each speed to obtain the total mileage value of the vehicle.
[0071] In another embodiment, the mileage calculation operation in the above S1400 specifically includes the following S1410 and S1411:
[0072] S1410: Determine the current mileage value of the vehicle based on the current position of the vehicle and the historical position acquired at the previous moment.
[0073] In this embodiment, the distance between the current position of the vehicle and the historical position acquired at the previous moment is determined as the current mileage value of the vehicle.
[0074] S1411. Accumulate each current mileage value to obtain the total mileage value of the vehicle.
[0075] In this embodiment, the accurate total mileage of the vehicle can be obtained through the above-mentioned methods of S1410 and S1111.
[0076] S1500. When it is determined that the vehicle is located within the second fence based on the current position and the second fence, end the mileage calculation operation and determine the total mileage value of the vehicle.
[0077] In this embodiment, when the current position is within the area corresponding to the second fence, it means that the vehicle is within the second fence. Since the second fence is the fence of the terminal toll station, when the vehicle is within the second fence, it can be determined that the vehicle has entered the terminal toll station. At this time, the mileage calculation operation ends.
[0078] Based on the above-mentioned method of performing the mileage calculation operation, after the mileage calculation operation is completed, the total mileage value of the vehicle can be obtained.
[0079] Based on the above content, it can be known that the total mileage of the vehicle entering the starting toll station, exiting the terminal toll station, and traveling can be automatically determined. And in the process of automatically determining the total mileage of the vehicle entering the starting toll station, exiting the terminal toll station, and traveling, there is no need to stop. On this basis, the total mileage of the vehicle can be provided to a third-party toll collection system, which calculates and collects the tolls required to be paid by the vehicle based on this. That is to say, this embodiment provides a basis for automatically paying tolls without stopping. On this basis, it provides a basis for improving payment efficiency and reducing the risk of traffic jams.
[0080] In this embodiment, a mileage calculation method is provided, which includes: obtaining a starting point, an end point, and a current position of a vehicle; determining a first fence according to the starting point, the first fence being the fence of the starting toll station corresponding to the starting point; determining a second fence according to the end point, the second fence being the fence of the end toll station corresponding to the end point; performing a mileage calculation operation when it is determined that the vehicle is located within the first fence according to the current position and the first fence; and terminating the mileage calculation operation and determining the total mileage value of the vehicle when it is determined that the vehicle is located within the second fence according to the current position and the second fence. This embodiment provides a basis for automatically paying tolls without stopping. On this basis, it provides a basis for improving payment efficiency and reducing the risk of traffic jams.
[0081] In one embodiment, the mileage calculation method provided in this embodiment further includes the following S1610-S1612:
[0082] S1610. Determine the starting toll station based on the starting point location.
[0083] In this embodiment, the specific implementation of S1610 may be: the toll station closest to the starting point is used as the starting point toll station. Alternatively, it may be: the toll station closest to the starting point corresponding to the navigation route determined according to the starting point and the end point.
[0084] S1611. Determine the terminal toll station according to the terminal toll station.
[0085] In this embodiment, the specific implementation of S1611 may be: the toll station closest to the destination is used as the destination toll station, or it may be: the toll station closest to the destination corresponding to the navigation route determined according to the starting point and the destination.
[0086] S1612: Output the starting toll station, the terminal toll station and the total mileage.
[0087] In this embodiment, the starting toll station, the terminal toll station and the total mileage are output to expose the starting toll station, the terminal toll station and the total mileage. In this way, the third-party toll collection system can directly obtain the starting toll station, the terminal toll station and the total mileage entered by the vehicle, and then collect tolls from the vehicle based on its own toll collection strategy.
[0088] In one embodiment, the above S1200 may be implemented by the following S1210 and S1211:
[0089] S1210. According to the starting point location, obtain the shape and range of the starting point toll station.
[0090] In this embodiment, the specific implementation of the above S1210 may be: determining the starting toll station according to the starting point location, and searching for the starting toll station in the map to determine the shape and range of the starting toll station.
[0091] It should be noted that a map is used to describe the area of a geographical location. Therefore, based on the map, the area of the starting toll station can be accurately known, thereby accurately knowing the shape and range of the starting toll station.
[0092] S1211. Determine the first fence according to the shape and range of the starting toll station.
[0093] In this embodiment, the shape of the starting toll station is determined as the shape of the first fence. Further, the range of the first fence is adjusted to the range of the starting toll station. In this way, the first fence can completely overlap with the starting toll station. On this basis, it can be accurately determined that the vehicle enters the starting toll station.
[0094] In one embodiment, corresponding to the above S1210 and S1211, the above S1300 may be implemented by the following S1310 and S1311:
[0095] S1310. According to the terminal location, obtain the shape and range of the terminal toll station.
[0096] In this embodiment, the specific implementation of the above S1310 may be: determining the terminal toll station according to the terminal location, and searching for the terminal toll station in the map to determine the shape and range of the terminal toll station.
[0097] It should be noted that a map is used to describe the area of a geographical location. Therefore, based on the map, the area of the terminal toll station can be accurately known, thereby accurately knowing the shape and range of the terminal toll station.
[0098] S1311. Determine a second fence according to the shape and range of the terminal toll station.
[0099] In this embodiment, the shape of the terminal toll station is determined as the shape of the second fence. Further, the range of the second fence is adjusted to the range of the terminal toll station. In this way, the second fence can completely overlap with the terminal toll station. On this basis, it can be accurately determined that the vehicle has left the terminal toll station.
[0100] In one embodiment, the first fence corresponds to a first center point and a first threshold. The first center point is specifically the center point of the area corresponding to the first fence. There is a correlation between the first threshold and the size of the area corresponding to the first fence. Specifically, the first threshold is less than the minimum distance from the first center point to the boundary of the first fence.
[0101] Based on the above content, the mileage calculation method provided in this embodiment further includes the following S1420 before the above S1400:
[0102] S1420: When the current position is within the range of the first fence and the distance between the current position and the first center point is less than a first threshold, determine that the vehicle is within the first fence.
[0103] In this embodiment, the vehicle is determined to be within the first fence only when the current position is within the first fence and the distance between the current position and the first center point is less than the first threshold value. In this way, it can be more accurately determined that the vehicle has entered the starting toll station.
[0104] Corresponding to the above content, the second fence corresponds to a second center point and a second threshold. The second center point is specifically the center point of the area corresponding to the second fence. And there is a correlation between the second threshold and the size of the area corresponding to the second fence. Specifically, the second threshold is less than the minimum distance from the second center point to the boundary of the second fence. On this basis, the mileage calculation method provided in this embodiment includes the following S1510 before the above S1500:
[0105] S1510: When the current position is within the range of the second fence and the distance between the current position and the second center point is less than a second threshold, determine that the vehicle is within the second fence.
[0106] In this embodiment, the vehicle is determined to be within the second fence only when the current position is within the second fence and the distance between the current position and the second center point is less than the second threshold value. In this way, it can be more accurately determined that the vehicle has exited the terminal toll station.
[0107] <Device Example>
[0108] like Figure 2 As shown, the embodiment of the present application provides a mileage calculation device 200, which is applied to the wristband and includes: an acquisition module 210, a first determination module 220, a second determination module 230, an execution module 240 and an end module 250, wherein:
[0109] The acquisition module 210 is used to acquire the starting point, the end point and the current position of the vehicle;
[0110] A first determination module 220 is used to determine a first fence according to the starting point, where the first fence is a fence of a starting point toll station corresponding to the starting point;
[0111] A second determination module 230 is used to determine a second fence according to the terminal location, where the second fence is a fence of a terminal toll station corresponding to the terminal location;
[0112] An execution module 240, configured to perform a mileage calculation operation when it is determined that the vehicle is located within the first fence according to the current position and the first fence;
[0113] The ending module 250 is used to end the mileage calculation operation and determine the total mileage value of the vehicle when it is determined that the vehicle is located within the second fence based on the current position and the second fence.
[0114] In one embodiment, the mileage calculation device 200 further includes a third determination module, a fourth determination module and an output module, wherein:
[0115] A third determination module, used to determine the starting point toll station according to the starting point location;
[0116] A fourth determination module, used to determine the terminal toll station according to the terminal location;
[0117] The output module is used to output the starting toll station, the terminal toll station and the total mileage value.
[0118] In one embodiment, the first determining module 220 is specifically configured to:
[0119] According to the starting point location, obtaining the shape and range of the starting point toll station;
[0120] The first fence is determined according to the shape and range of the starting toll station.
[0121] In one embodiment, the second determining module 230 is specifically configured to:
[0122] According to the terminal location, obtaining the shape and range of the terminal toll station;
[0123] The second fence is determined according to the shape and range of the terminal toll station.
[0124] In one embodiment, the first fence corresponds to a first center point and a first threshold, and the second fence corresponds to a second center point and a second threshold. On this basis, the mileage calculation device further includes a fifth determination module and a sixth determination module, wherein:
[0125] a fifth determining module, configured to determine that the vehicle is located within the first fence if the current position is within the first fence and the distance between the current position and the first center point is less than the first threshold;
[0126] The sixth determination module is used to determine that the vehicle is located within the second fence when the current position is within the range of the second fence and the distance between the vehicle and the second center point is less than the second threshold.
[0127] In one embodiment, the execution module 240 is specifically used to determine the current mileage value of the vehicle according to the current position of the vehicle and the historical position acquired at the previous moment;
[0128] Each current mileage value is accumulated to obtain a total mileage value of the vehicle.
[0129] In one embodiment, the current location includes current latitude and longitude values and current altitude value.
[0130] <Equipment Embodiment>
[0131] An embodiment of the present application provides an electronic device 300, which includes any mileage calculation device 200 provided in the above device embodiments.
[0132] Or, if Figure 3 As shown, it includes a memory 310 and a processor 320, the memory 310 is used to store computer instructions, and the processor 320 is used to call the computer instructions from the memory 310 to execute any method as described in any one of the above method embodiments.
[0133] <Storage Medium Embodiment>
[0134] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the mileage calculation method according to any one of the above method embodiments is implemented.
[0135] The present application may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present application.
[0136] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0137] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0138] The computer program instructions for performing the operation of the present application can be assembler instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on a user's computer, partially on a user's computer, executed as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of a computer-readable program instruction to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA) or a programmable logic array (PLA), the electronic circuit can execute a computer-readable program instruction, thereby realizing various aspects of the present application.
[0139] Various aspects of the present application are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present application. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0140] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0141] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0142] The flowchart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a part of a module, program segment or instruction, and the part of the module, program segment or instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0143] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present application is defined by the appended claims.
Claims
1. A mileage calculation method, characterized in that: The method comprises: Obtaining the starting point, the end point and the current position of the vehicle; wherein the current position of the vehicle is a three-dimensional position, and the current position of the vehicle includes the current latitude and longitude values and the altitude value of the vehicle; Determine a first fence according to the starting point, the first fence being the fence of the starting point toll station corresponding to the starting point; wherein, determining the first fence according to the starting point includes: acquiring the shape and range of the starting point toll station according to the starting point; determining the shape of the starting point toll station as the shape of the first fence, and determining the range of the starting point toll station as the range of the first fence; Determine a second fence according to the terminal location, where the second fence is a fence of a terminal toll station corresponding to the terminal location; wherein determining the second fence according to the terminal location includes: acquiring the shape and range of the terminal toll station according to the terminal location; determining the shape of the terminal toll station as the shape of the second fence, and determining the range of the terminal toll station as the range of the second fence; When it is determined that the vehicle is located within the first fence according to the current position and the first fence, performing a mileage calculation operation; When it is determined that the vehicle is located within the second fence based on the current position and the second fence, the mileage calculation operation is terminated and the total mileage value of the vehicle is determined.
2. The method according to claim 1, characterized in that The method further comprises: Determine the starting toll station according to the starting point location; Determining the terminal toll station according to the terminal location; The starting point toll station, the terminal point toll station and the total mileage value are output.
3. The method according to claim 1, characterized in that The first fence corresponds to a first center point and a first threshold, the second fence corresponds to a second center point and a second threshold, and the method, before performing the mileage calculation operation when it is determined that the vehicle is located within the first fence according to the current position and the first fence, includes: When the current position is within the first fence and the distance between the current position and the first center point is less than the first threshold, determining that the vehicle is within the first fence; The method, before ending the mileage calculation operation and determining the total mileage value of the vehicle when it is determined that the vehicle is located within the second fence according to the current position and the second fence, includes: When the current position is within the range of the second fence and the distance between the vehicle and the second center point is less than the second threshold, it is determined that the vehicle is within the second fence.
4. The method according to claim 1, characterized in that: The mileage calculation operation includes: Determine the current mileage value of the vehicle according to the current position of the vehicle and the historical position acquired at the previous moment; Each current mileage value is accumulated to obtain a total mileage value of the vehicle.
5. A mileage calculation device, characterized in that: The device comprises: An acquisition module, used to acquire a starting point, an end point and a current position of the vehicle; wherein the current position of the vehicle is a three-dimensional position, and the current position of the vehicle includes the current latitude and longitude values and the altitude value of the vehicle; A first determination module is used to determine a first fence according to the starting point, wherein the first fence is a fence of a starting point toll station corresponding to the starting point; wherein the determining of the first fence according to the starting point includes: obtaining a shape and range of the starting point toll station according to the starting point; determining the shape of the starting point toll station as the shape of the first fence, and determining the range of the starting point toll station as the range of the first fence; A second determination module is used to determine a second fence according to the terminal location, where the second fence is a fence of a terminal toll station corresponding to the terminal location; wherein the second fence is determined according to the terminal location, including: obtaining a shape and range of the terminal toll station according to the terminal location; determining the shape of the terminal toll station as the shape of the second fence, and determining the range of the terminal toll station as the range of the second fence; an execution module, configured to execute a mileage calculation operation when it is determined that the vehicle is located within the first fence according to the current position and the first fence; An end module is used to end the mileage calculation operation and determine the total mileage value of the vehicle when it is determined that the vehicle is located within the second fence based on the current position and the second fence.
6. An electronic device, characterized in that: comprising the device as claimed in claim 5; Alternatively, the system comprises a memory and a processor, wherein the memory is used to store computer instructions, and the processor is used to call the computer instructions from the memory to execute the method according to any one of claims 1 to 4.
7. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and when the computer program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Vehicle transit cost calculation system and its method
CN101241609A
Road and bridge payment method and system based on mobile network
CN104574066A
