CN114821842A - Mileage calculation method, device, equipment and storage medium - Google Patents

Mileage calculation method, device, equipment and storage medium Download PDF

Info

Publication number
CN114821842A
CN114821842A CN202210102144.2A CN202210102144A CN114821842A CN 114821842 A CN114821842 A CN 114821842A CN 202210102144 A CN202210102144 A CN 202210102144A CN 114821842 A CN114821842 A CN 114821842A
Authority
CN
China
Prior art keywords
fence
vehicle
determining
toll station
starting point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210102144.2A
Other languages
Chinese (zh)
Inventor
韩冬冬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Luolan Spatiotemporal Data Technology Co ltd
Original Assignee
Beijing Luolan Spatiotemporal Data Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Luolan Spatiotemporal Data Technology Co ltd filed Critical Beijing Luolan Spatiotemporal Data Technology Co ltd
Priority to CN202210102144.2A priority Critical patent/CN114821842A/en
Publication of CN114821842A publication Critical patent/CN114821842A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07BTICKET-ISSUING APPARATUS; FARE-REGISTERING APPARATUS; FRANKING APPARATUS
    • G07B15/00Arrangements or apparatus for collecting fares, tolls or entrance fees at one or more control points
    • G07B15/06Arrangements for road pricing or congestion charging of vehicles or vehicle users, e.g. automatic toll systems
    • G07B15/063Arrangements for road pricing or congestion charging of vehicles or vehicle users, e.g. automatic toll systems using wireless information transmission between the vehicle and a fixed station
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/021Services related to particular areas, e.g. point of interest [POI] services, venue services or geofences
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/02Services making use of location information
    • H04W4/029Location-based management or tracking services

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Business, Economics & Management (AREA)
  • Finance (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Devices For Checking Fares Or Tickets At Control Points (AREA)

Abstract

The application discloses a mileage calculation method, a mileage calculation device, mileage calculation equipment and a mileage calculation storage medium, and relates to the technical field of intelligent traffic. The method comprises the following steps: acquiring a starting point location, an end point location and the current position of the vehicle; determining a first fence according to the starting point location, wherein the first fence is a fence of a starting point toll station corresponding to the starting point location; determining a second fence according to the destination location, wherein the second fence is a fence of a destination toll station corresponding to the destination location; executing mileage calculation operation under the condition that the vehicle is determined to be positioned in the first fence according to the current position and the first fence; and in the case that the vehicle is determined to be positioned in the second fence according to the current position and the second fence, finishing the mileage calculation operation and determining the total driving mileage value of the vehicle. The method provides a basis for automatically paying the road toll without stopping the vehicle.

Description

Mileage calculation method, device, equipment and storage medium
Technical Field
The present application relates to the field of intelligent transportation technologies, and in particular, to a mileage calculation method, a mileage calculation apparatus, an electronic device, and a computer-readable storage medium.
Background
With the rapid development of economy, automobiles have become a basic vehicle. Driving automobiles on highways also becomes the first choice of transportation for people to go far.
Currently, navigation software is commonly used when driving a car on a highway. And the navigation software carries out path planning according to the starting point, the passing point and the end point to obtain the high-speed road section from the starting point to the end point. Furthermore, highway fees corresponding to each highway section are obtained through a charging standard database. And finally, accumulating the highway fees corresponding to all highway sections to obtain the reference highway fees. And this only provides a kind of highway fee reference for the user, can't realize the automatic payment.
Disclosure of Invention
An object of the present application is to provide a new technical solution for mileage calculation.
According to a first aspect of the present application, there is provided a mileage calculation method, the method including:
acquiring a starting point location, an end point location and the current position of the vehicle;
determining a first fence according to the starting point location, wherein the first fence is a fence of a starting point toll station corresponding to the starting point location;
determining a second fence according to the destination point, wherein the second fence is a fence of a destination toll station corresponding to the destination point;
performing a range calculation operation if the vehicle is determined to be within the first fence based on the current location and the first fence;
in a case where it is determined from the current location and the second fence that the vehicle is located within the second fence, ending the range calculation operation and determining a total range value for the vehicle.
Optionally, the method further includes:
determining the starting toll station according to the starting point and the place;
determining the terminal toll station according to the terminal position;
and outputting the starting toll station, the terminal toll station and the total mileage value.
Optionally, the determining a first fence according to the starting point location includes:
acquiring the shape and the range of the starting toll station according to the starting point location;
and determining the first fence according to the shape and the range of the starting toll station.
Optionally, the determining a second fence according to the destination point includes:
acquiring the shape and the range of the terminal toll station according to the terminal position;
and determining the second fence according to the shape and the range of the terminal toll station.
Optionally, before the step of performing a mileage calculation operation in a case where the vehicle is determined to be located in the first fence according to the current location and the first fence, the method includes:
determining that the vehicle is located within the first fence if the current location is within the first fence range and the distance between the current location and the first center point is less than the first threshold;
the method, prior to said ending the range calculation operation and determining a total range value for the vehicle if the vehicle is determined to be within the second fence from the current location and the second fence, comprises:
determining that the vehicle is located within the second fence if the current location is within the second fence range and the distance between the vehicle and the second center point is less than the second threshold.
Optionally, the mileage calculating operation includes:
determining the current driving mileage value of the vehicle according to the current position of the vehicle and the historical position obtained at the previous moment;
and accumulating each current driving mileage value to obtain the total driving mileage value of the vehicle.
Optionally, the current position includes a current longitude and latitude value and a current height value.
According to a second aspect of the present application, there is provided a mileage calculating apparatus, the apparatus including:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a starting point position, an end point position and the current position of a vehicle;
a first determining module, configured to determine a first fence according to the starting point location, where the first fence is a fence of a starting point toll station corresponding to the starting point location;
the second determining module is used for determining a second fence according to the destination point, wherein the second fence is a fence of a destination toll station corresponding to the destination point;
an execution module to execute a mileage calculation operation if it is determined that the vehicle is located within the first fence according to the current location and the first fence;
an end module to end the range calculation operation and determine a total range value of the vehicle if the vehicle is determined to be within the second fence based on the current location and the second fence.
According to a third aspect of the present application, there is provided an electronic device comprising the apparatus of the second aspect;
or, a memory for storing computer instructions and a processor for invoking the computer instructions from the memory to perform the method of any of the first aspects.
According to a fourth aspect of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method according to any one of the first aspects.
In this embodiment, a method for calculating a mileage is provided, the method including: acquiring a starting point location, an end point location and the current position of the vehicle; determining a first fence according to the starting point location, wherein the first fence is a fence of a starting point toll station corresponding to the starting point location; determining a second fence according to the destination location, wherein the second fence is a fence of a destination toll station corresponding to the destination location; executing mileage calculation operation under the condition that the vehicle is determined to be positioned in the first fence according to the current position and the first fence; and in the case that the vehicle is determined to be positioned in the second fence according to the current position and the second fence, finishing the mileage calculation operation and determining the total driving mileage value of the vehicle. The embodiment provides a basis for automatically paying the road toll without stopping the vehicle. On this basis, for improving the efficiency of collecting fee to and reduce the traffic jam risk and provide the basis.
Further features of the present application and advantages thereof will become apparent from the following detailed description of exemplary embodiments thereof, which is to be read in connection with the accompanying drawings.
Drawings
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.
FIG. 1 is a schematic flow chart diagram illustrating a method for calculating mileage as provided in the practice of the present application;
FIG. 2 is a schematic structural diagram of a mileage calculating apparatus provided by an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Various exemplary embodiments of the present application will now be described in detail with reference to the accompanying drawings. It should be noted that: the relative arrangement of the components and steps, the numerical expressions, and numerical values set forth in these embodiments do not limit the scope of the present application unless specifically stated otherwise.
The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the application, its application, or uses.
Techniques, methods, and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail but are intended to be part of the specification where appropriate.
In all examples shown and discussed herein, any particular value should be construed as merely illustrative, and not limiting. Thus, other examples of the exemplary embodiments may have different values.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be discussed further in subsequent figures.
< method examples >
The execution subject of the mileage calculation method provided by the embodiment of the application is a mileage calculation device. The apparatus may be an electronic device. Alternatively, the apparatus may also be a hardware module and/or a software module in the aforementioned electronic device.
In one example, the electronic device may be a smartphone carried by a driving user, or may be the vehicle itself.
In the following description, an execution subject of the mileage calculation method provided by the electronic device as an embodiment of the present application is taken as an example.
The embodiment of the application provides a mileage calculation method, as shown in fig. 1, the method includes the following steps S1100-S1500:
s1100, a starting point position, an end point position and the current position of the vehicle are obtained.
In one embodiment, the driving user manually or by voice inputs the starting point and the ending point into the electronic device while driving the vehicle. The electronic equipment responds to manual or voice input of a driving user to acquire a starting point position and an end point position.
In one embodiment, the electronic device obtains the current position of the vehicle by receiving satellite clock information broadcast by the satellite system. The satellite System may be a Global Positioning System (GPS).
In one embodiment, the current location includes a current warp and weft value and a current height value. In this way, the current position can be described more accurately by representing the current position by the three-dimensional position, thereby providing a data basis for subsequently and accurately determining whether the vehicle is located in the first fence, whether the vehicle is located in the second fence, and the total driving range value.
S1200, determining a first fence according to the starting point and the position.
The first fence is a fence of a starting toll station corresponding to the starting point.
In the present embodiment, according to the starting point location, a toll booth matching the starting point location is determined as the starting point toll booth. Further, an area covering the area where the starting toll station is located and a central point of the area where the starting toll station is located is determined as the first fence.
Wherein, the toll station matched with the starting point location may be: and the toll station closest to the starting point and the destination corresponding to the navigation route determined according to the starting point and the destination. Or can also be: and the toll station closest to the starting point.
In one example, the shape of the first fence may be circular, polygonal, and the like, and the embodiments of the present application are not limited thereto.
And S1300, determining a second fence according to the destination point.
And the second fence is a fence of a terminal toll station corresponding to the terminal site.
In the present embodiment, according to the destination point, the toll booth matched with the destination point is determined as the destination toll booth. Further, an area covering the area of the terminal toll station and having a center point coinciding with a center point of the area of the terminal toll station is determined as the second fence.
Wherein, the toll station matched with the terminal point is as follows: and the toll station closest to the end point is corresponding to the navigation route determined according to the starting point and the end point. Or can also be: a toll booth closest to the destination location.
In one example, the shape of the second fence may be circular, polygonal, etc., and this is not a limitation on the embodiments of the present application.
S1400, executing mileage calculation operation under the condition that the vehicle is determined to be located in the first fence according to the current position and the first fence;
in this embodiment, when the current position is located in the area corresponding to the first fence, it is described that the vehicle is located in the first fence. Since the first fence is a fence of the starting point tollgate, it can be determined that the vehicle has entered the starting point tollgate in a case where the vehicle is located within the first fence. At this time, the mileage calculating operation is performed.
In one embodiment, the mileage calculating operation may be: and calculating the driving mileage value of the vehicle according to the speed of the vehicle and the maintaining time of the speed. And sequentially superposing the driving mileage value corresponding to each speed to obtain the total driving mileage value of the vehicle.
In another embodiment, the mileage calculating operation in S1400 specifically includes the following steps S1410 and S1411:
and S1410, determining the current driving mileage value of the vehicle according to the current position of the vehicle and the historical position obtained at the previous moment.
In this embodiment, the distance between the current position of the vehicle and the historical position acquired at the previous time is determined as the current mileage value of the vehicle.
And S1411, accumulating each current driving mileage value to obtain the total driving mileage value of the vehicle.
In this embodiment, the accurate total driving range of the vehicle can be obtained by the above-described manners of S1410 and S1111.
And S1500, under the condition that the vehicle is determined to be positioned in the second fence according to the current position and the second fence, finishing the mileage calculation operation and determining the total driving mileage value of the vehicle.
In the present embodiment, in the case where the current position is located within the second fence corresponding area, it is described that the vehicle is located within the second fence. Since the second fence is a fence of the terminal, it can be determined that the vehicle has entered the terminal in a case where the vehicle is located within the second fence. At this time, the mileage calculating operation is ended.
Based on the manner in which the mileage calculation operation is performed, the total driving range value of the vehicle can be obtained after the mileage calculation operation is finished.
Based on the above, the total driving range value of the vehicle entering the starting toll station, exiting the terminal toll station and driving can be automatically determined. And in the process of automatically determining the total driving distance value of the vehicle entering the starting toll station, exiting the terminal toll station and driving, stopping the vehicle. On the basis, the total driving mileage value of the vehicle can be provided to a third-party charging system, and the third-party charging system calculates and charges the road toll required to be paid by the vehicle based on the total driving mileage value. That is to say, the embodiment provides a basis for automatically paying the toll without stopping the vehicle. On this basis, for improving the efficiency of collecting fee to and reduce the traffic jam risk and provide the basis.
In this embodiment, a method for calculating a mileage is provided, the method including: acquiring a starting point location, an end point location and the current position of the vehicle; determining a first fence according to the starting point location, wherein the first fence is a fence of a starting point toll station corresponding to the starting point location; determining a second fence according to the destination location, wherein the second fence is a fence of a destination toll station corresponding to the destination location; executing mileage calculation operation under the condition that the vehicle is determined to be positioned in the first fence according to the current position and the first fence; and in the case that the vehicle is determined to be positioned in the second fence according to the current position and the second fence, finishing the mileage calculation operation and determining the total driving mileage value of the vehicle. The embodiment provides a basis for automatically paying the road toll without stopping the vehicle. On this basis, for improving payment efficiency to and reduce the traffic congestion risk and provide the basis.
In one embodiment, the method for calculating the mileage provided by the present embodiment further includes the following steps S1610 to S1612:
and S1610, determining the starting toll station according to the starting point and the position.
In this embodiment, the specific implementation of S1610 may be: and taking the toll station closest to the starting point as the starting toll station. Or can also be: and the toll station closest to the starting point and the destination point is corresponding to the navigation route determined according to the starting point and the destination point.
And S1611, determining the terminal toll station according to the terminal toll station.
In this embodiment, the specific implementation of S1611 may be: and taking the toll station closest to the terminal position as the terminal toll station. Or can also be: and the toll station closest to the end point is corresponding to the navigation route determined according to the starting point and the end point.
And S1612, outputting the starting toll station, the terminal toll station and the total driving range value.
In the present embodiment, the start-point toll booth, the end-point toll booth, and the total mileage value are exposed by outputting the start-point toll booth, the end-point toll booth, and the total mileage value. Therefore, the third-party charging system can directly acquire the starting point charging station, the terminal charging station and the total driving mileage value of the vehicle, and further can charge the road toll of the vehicle based on the charging strategy of the third-party charging system.
In one embodiment, the above S1200 may be implemented by the following S1210 and S1211:
s1210, acquiring the shape and the range of the starting toll station according to the starting point and the position.
In this embodiment, the specific implementation of S1210 may be: and determining the starting toll station according to the starting point position. The start toll booth is looked up in the map to determine the shape and extent of the start toll booth.
It should be noted that the map is used to describe the area of the geographic location. Therefore, based on the map, the area of the starting toll station can be accurately known, and the shape and the range of the starting toll station can be accurately known.
S1211, determining a first fence according to the shape and the range of the starting toll station.
In the present embodiment, the shape of the start 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 coincide with the origin toll booth. On the basis, the vehicle driving-in starting point toll station can be accurately determined.
In one embodiment, corresponding to the above S1210 and S1211, the above S1300 may be implemented by the following S1310 and S1311:
s1310, acquiring the shape and the range of the terminal toll station according to the terminal position.
In this embodiment, the specific implementation of S1310 may be: an end stop is determined based on the end location. The terminal toll booth is looked up in the map to determine the shape and extent of the terminal toll booth.
It should be noted that the map is used to describe the area of the geographic location. Therefore, based on the map, the area of the terminal toll station can be accurately known, and the shape and the range of the terminal toll station can be accurately known.
S1311, determining a second fence according to the shape and the range of the terminal toll station.
In the present 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 enclosure can completely coincide with the terminal toll booth. On the basis, the vehicle can be accurately determined to be driven out of the terminal toll station.
In one embodiment, the first fence corresponds to a first center point and a first threshold. The first center point is specifically a center point of an area corresponding to the first fence. And the first threshold value is associated with the size of the area corresponding to the first fence, and specifically, the first threshold value is smaller than the minimum distance from the first center point to the boundary of the first fence.
On the basis of the above, before the above step S1400, the mileage calculation method provided in this embodiment further includes the following step S1420:
and S1420, determining that the vehicle is located in the first fence under the condition that the current position is located in the first fence range and the distance between the current position and the first central point is smaller than a first threshold value.
In this embodiment, the vehicle is determined to be located in the first fence only when the current position is within the first fence range and the distance between the current position and the first center point is smaller than the first threshold. Thus, the vehicle entering the starting toll station can be more accurately determined.
Corresponding to the above, the second fence corresponds to a second center point and a second threshold. The second center point is specifically a center point of an area corresponding to the second fence. And the second threshold value has an association relationship with the size of the area corresponding to the second fence, and specifically, the second threshold value is smaller 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 further includes, before the above S1500, the following S1510:
s1510, determining that the vehicle is located in the second fence when the current position is located in the second fence range and the distance between the current position and the second center point is smaller than the second threshold.
In this embodiment, the vehicle is determined to be located in the second fence only when the current position is within the second fence range and the distance between the current position and the second center point is smaller than the second threshold. Thus, the vehicle can be more accurately determined to exit the terminal toll station.
< apparatus embodiment >
As shown in fig. 2, an embodiment of the present application provides a mileage calculating apparatus 200, where the apparatus 200 is applied to the wristband, and includes: an obtaining module 210, a first determining module 220, a second determining module 230, an executing module 240, and an ending module 250, wherein:
an obtaining module 210, configured to obtain a starting point location, an ending point location, and a current location of the vehicle;
a first determining module 220, configured to determine, according to the starting point location, a first fence, where the first fence is a fence of a starting point toll station corresponding to the starting point location;
a second determining module 230, configured to determine, according to the destination point, a second fence, where the second fence is a fence of a destination toll station corresponding to the destination point;
an execution module 240, configured to execute a mileage calculation operation if it is determined that the vehicle is located within the first fence according to the current location and the first fence;
an end module 250 configured to end the range calculation operation and determine a total driving range value of the vehicle if it is determined that the vehicle is located within the second fence according to the current location and the second fence.
In one embodiment, the mileage calculating device 200 further comprises a third determining module, a fourth determining module, and an output module, wherein:
a third determining module, configured to determine the starting toll station according to the starting point location;
a fourth determining module, configured to determine the destination toll station according to the destination location;
and the output module is used for outputting the starting point toll station, the terminal toll station and the total mileage value.
In one embodiment, the first determining module 220 is specifically configured to:
acquiring the shape and the range of the starting toll station according to the starting point location;
and determining the first fence according to the shape and the range of the starting toll station.
In one embodiment, the second determining module 230 is specifically configured to:
acquiring the shape and the range of the terminal toll station according to the terminal position;
and determining the second fence according to the shape and the range of the terminal toll station.
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 calculating device further includes a fifth determining module and a sixth determining module, wherein:
a fifth determining module, configured to determine that the vehicle is located in the first fence if the current location is within the first fence range and a distance between the current location and the first center point is smaller than the first threshold;
a sixth determining module, configured to determine that the vehicle is located within the second fence if the current location is within the second fence range and a distance between the vehicle and the second center point is smaller than the second threshold.
In an embodiment, the execution module 240 is specifically configured to determine a current driving range value of the vehicle according to the current position of the vehicle and a historical position obtained at a previous time;
and accumulating each current driving mileage value to obtain the total driving mileage value of the vehicle.
In one embodiment, the current position includes a current warp and weft value and a current height value.
< apparatus embodiment >
The embodiment of the application provides an electronic device 300, and the electronic device 300 comprises any one of the mileage calculating apparatuses 200 provided by the above apparatus embodiments.
Alternatively, as shown in fig. 3, the apparatus comprises a memory 310 and a processor 320, wherein the memory 310 is used for storing computer instructions, and the processor 320 is used for calling the computer instructions from the memory 310 to execute the method according to any one of the above method embodiments.
< storage Medium embodiment >
An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, implements the mileage calculation method according to any one of the above method embodiments.
The present application may be a system, method and/or computer program product. The computer program product may include a computer-readable storage medium having computer-readable program instructions embodied thereon for causing a processor to implement various aspects of the present application.
The computer readable storage medium may be a tangible device that can hold and store the instructions for use by the instruction execution device. The computer readable storage medium may be, for example, but not limited to, an electronic memory device, a magnetic memory device, an optical memory device, an electromagnetic memory device, a semiconductor memory device, or any suitable combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: a portable computer diskette, 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 disc read-only memory (CD-ROM), a Digital Versatile Disc (DVD), a memory stick, a floppy disk, a mechanical coding device, such as punch cards or in-groove projection structures having instructions stored thereon, and any suitable combination of the foregoing. Computer-readable storage media as used herein is not to be construed as transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission medium (e.g., optical pulses through a fiber optic cable), or electrical signals transmitted through electrical wires.
The computer-readable program instructions described herein may be downloaded from a computer-readable storage medium to a respective computing/processing device, or 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 may include copper transmission cables, fiber optic transmission, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. The network adapter card or network interface in each computing/processing device receives computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in a computer-readable storage medium in the respective computing/processing device.
The computer program instructions for carrying out operations of the present application may be assembler instructions, Instruction Set Architecture (ISA) 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 an object oriented programming language such as Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The computer-readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may 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 the connection may be made to an external computer (for example, through the Internet using an Internet service provider). In some embodiments, the electronic circuitry can execute computer-readable program instructions to implement aspects of the present application by utilizing state information of the computer-readable program instructions to personalize the electronic circuitry, such as a programmable logic circuit, a Field Programmable Gate Array (FPGA), or a Programmable Logic Array (PLA).
Various aspects of the present application are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the application. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
These computer-readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable medium storing the instructions comprises an article of manufacture including instructions which implement the function/act specified in the flowchart and/or block diagram block or blocks.
The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other devices to cause a series of operational steps to be performed on the computer, other programmable apparatus or other devices to produce a computer implemented process such that the instructions which execute on the computer, other programmable apparatus or other devices implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. It is well known to those skilled in the art that implementation by hardware, by software, and by a combination of software and hardware are equivalent.
Having described embodiments of the present application, the foregoing description is intended to be exemplary, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terms used herein were chosen in order to best explain the principles of the embodiments, the practical application, or technical improvements to the techniques in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the application is defined by the appended claims.

Claims (10)

1. A method of mileage calculation, the method comprising:
acquiring a starting point, an end point and the current position of the vehicle;
determining a first fence according to the starting point location, wherein the first fence is a fence of a starting point toll station corresponding to the starting point location;
determining a second fence according to the destination point, wherein the second fence is a fence of a destination toll station corresponding to the destination point;
performing a mileage calculating operation if it is determined that the vehicle is located within the first fence according to the current location and the first fence;
in a case where it is determined from the current location and the second fence that the vehicle is located within the second fence, ending the range calculation operation and determining a total range value for the vehicle.
2. The method of claim 1, further comprising:
determining the starting toll station according to the starting point and the place;
determining the terminal toll station according to the terminal position;
and outputting the starting toll station, the terminal toll station and the total mileage value.
3. The method of claim 1, wherein determining a first fence from the starting point location comprises:
acquiring the shape and the range of the starting toll station according to the starting point location;
and determining the first fence according to the shape and the range of the starting toll station.
4. The method of claim 1, wherein determining a second fence from the endpoint location comprises:
acquiring the shape and the range of the terminal toll station according to the terminal position;
and determining the second fence according to the shape and the range of the terminal toll station.
5. The method of claim 1, wherein 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, the method comprising, prior to performing a range calculation operation if the vehicle is determined to be within the first fence based on the current location and the first fence:
determining that the vehicle is located within the first fence if the current location is within the first fence range and the distance between the current location and the first center point is less than the first threshold;
the method comprises, prior to said determining that the vehicle is located within the second fence as a function of the current location and the second fence, ending the range calculation operation and determining a total range value for the vehicle:
determining that the vehicle is located within the second fence if the current location is within the second fence range and the distance between the vehicle and the second center point is less than the second threshold.
6. The method of claim 1, wherein the mileage calculating operation comprises:
determining the current driving mileage value of the vehicle according to the current position of the vehicle and the historical position obtained at the previous moment;
and accumulating each current driving mileage value to obtain the total driving mileage value of the vehicle.
7. The method of claim 1, wherein the current location comprises a current warp and weft value and a current height value.
8. A mileage calculating apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a starting point position, an end point position and the current position of a vehicle;
a first determining module, configured to determine a first fence according to the starting point location, where the first fence is a fence of a starting point toll station corresponding to the starting point location;
a second determining module, configured to determine a second fence according to the destination point, where the second fence is a fence of a destination toll station corresponding to the destination point;
an execution module to execute a mileage calculation operation if it is determined that the vehicle is located within the first fence according to the current location and the first fence;
an end module to end the range calculation operation and determine a total range value of the vehicle if the vehicle is determined to be within the second fence based on the current location and the second fence.
9. An electronic device comprising the apparatus of claim 8;
or, comprising a memory for storing computer instructions and a processor for invoking the computer instructions from the memory to perform the method of any of claims 1-7.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the method according to any one of claims 1-7.
CN202210102144.2A 2022-01-27 2022-01-27 Mileage calculation method, device, equipment and storage medium Pending CN114821842A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210102144.2A CN114821842A (en) 2022-01-27 2022-01-27 Mileage calculation method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210102144.2A CN114821842A (en) 2022-01-27 2022-01-27 Mileage calculation method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN114821842A true CN114821842A (en) 2022-07-29

Family

ID=82527870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210102144.2A Pending CN114821842A (en) 2022-01-27 2022-01-27 Mileage calculation method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114821842A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241609A (en) * 2007-02-08 2008-08-13 佛山市顺德区顺达电脑厂有限公司 Vehicle transit cost calculation system and its method
CN101447095A (en) * 2008-12-23 2009-06-03 天津大学 Taxi charge method based on GPS and taxi charge system
CN103456045A (en) * 2012-12-28 2013-12-18 北京握奇数据系统有限公司 Method and system for carrying out charging according to GPS location
CN104574066A (en) * 2015-01-26 2015-04-29 深圳前海万融智能信息有限公司 Road and bridge payment method and system based on mobile network
CN110033525A (en) * 2019-04-12 2019-07-19 腾讯科技(深圳)有限公司 A kind of electric paying method and relevant apparatus based on navigation trip
CN113313845A (en) * 2021-03-31 2021-08-27 北京万集科技股份有限公司 Data processing method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101241609A (en) * 2007-02-08 2008-08-13 佛山市顺德区顺达电脑厂有限公司 Vehicle transit cost calculation system and its method
CN101447095A (en) * 2008-12-23 2009-06-03 天津大学 Taxi charge method based on GPS and taxi charge system
CN103456045A (en) * 2012-12-28 2013-12-18 北京握奇数据系统有限公司 Method and system for carrying out charging according to GPS location
CN104574066A (en) * 2015-01-26 2015-04-29 深圳前海万融智能信息有限公司 Road and bridge payment method and system based on mobile network
CN110033525A (en) * 2019-04-12 2019-07-19 腾讯科技(深圳)有限公司 A kind of electric paying method and relevant apparatus based on navigation trip
CN113313845A (en) * 2021-03-31 2021-08-27 北京万集科技股份有限公司 Data processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
CN111386559B (en) Method and system for judging whether target road facilities exist at intersection or not
CN109141441B (en) Obstacle analysis method and device for vehicle
CN112907958B (en) Road condition information determining method and device, electronic equipment and readable medium
US9175971B1 (en) Identifying cost effective routes using vehicle fuel economy values that are specific to the roadway type
CN110110029B (en) Method and device for lane matching
US20210055121A1 (en) Systems and methods for determining recommended locations
CN111401255B (en) Method and device for identifying bifurcation junctions
CN111337045A (en) Vehicle navigation method and device
US12036992B2 (en) Lane change planning method and vehicle-mounted device
CN108320184B (en) Method, device, equipment, system and storage medium for vehicle charging
CN112508310A (en) Driving track simulation method and device and storage medium
CN114821842A (en) Mileage calculation method, device, equipment and storage medium
CN111723173A (en) Vehicle-mounted map making method and device, electronic equipment and storage medium
CN109556614B (en) Positioning method and device for unmanned vehicle
CN110599792A (en) Intelligent parking method, parking system and parking terminal
CN112991798B (en) Road segment running time determining method and device based on traffic speed data
CN115355926A (en) Method, device, equipment and storage medium for vehicle navigation
CN110765344A (en) Personalized driving service method and system and vehicle-mounted terminal
TWI762887B (en) Traffic safety control method, vehicle-mounted device and readable storage medium
CN114694401A (en) Method and device for providing reference vehicle speed in high-precision map and electronic equipment
CN114529348A (en) Vehicle driving path charging method, system, device and storage medium
CN111326006B (en) Reminding method, reminding system, storage medium and vehicle-mounted terminal for lane navigation
CN114136327A (en) Automatic inspection method and system for recall ratio of dotted line segment
CN113450794A (en) Detection method and device for navigation broadcast, electronic equipment and medium
CN111060123A (en) Method and system for realizing lane-level navigation based on common map

Legal Events

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