CN110969888B - Method, device, equipment and storage medium for accurately reporting station - Google Patents

Method, device, equipment and storage medium for accurately reporting station Download PDF

Info

Publication number
CN110969888B
CN110969888B CN201911285228.9A CN201911285228A CN110969888B CN 110969888 B CN110969888 B CN 110969888B CN 201911285228 A CN201911285228 A CN 201911285228A CN 110969888 B CN110969888 B CN 110969888B
Authority
CN
China
Prior art keywords
station
uplink
downlink
line
information
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.)
Active
Application number
CN201911285228.9A
Other languages
Chinese (zh)
Other versions
CN110969888A (en
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.)
Guangzhou Tongda Auto Electric Co Ltd
Original Assignee
Guangzhou Tongda Auto Electric 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 Guangzhou Tongda Auto Electric Co Ltd filed Critical Guangzhou Tongda Auto Electric Co Ltd
Priority to CN201911285228.9A priority Critical patent/CN110969888B/en
Publication of CN110969888A publication Critical patent/CN110969888A/en
Application granted granted Critical
Publication of CN110969888B publication Critical patent/CN110969888B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/123Traffic control systems for road vehicles indicating the position of vehicles, e.g. scheduled vehicles; Managing passenger vehicles circulating according to a fixed timetable, e.g. buses, trains, trams

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The embodiment of the application discloses a method, a device, equipment and a storage medium for accurately reporting stations. The technical scheme provided by the embodiment of the application can directly determine the running direction of the vehicle by accurately judging the running direction of the vehicle according to the type of the running line when the running line of the vehicle is a single-line, accurately judge the running direction of the vehicle by combining the positioning information and the bus line file when the running line of the vehicle is a double-line, accurately report the bus stop by combining the running direction of the vehicle and the positioning information, and reduce the occurrence of the wrong bus stop report.

Description

Method, device, equipment and storage medium for accurately reporting station
Technical Field
The embodiment of the application relates to the field of public transportation, in particular to a method, a device, equipment and a storage medium for accurately reporting stops.
Background
With the development of urban traffic, urban public transport plays an important role in daily trips of people, and the requirements of people on public transport trips are higher and higher. The bus is operated according to the set bus route, the bus stops for passengers are appointed according to the bus route, and the bus stops are generally reported in a text display or voice broadcast mode in order to remind the passengers to get off at the destination bus stops in time.
At present, bus stop reporting is generally performed based on GPS information, and the distance between a vehicle and a stop is determined according to the GPS information to determine the content of the stop reporting, but the situation of error in stop reporting is easily caused when the vehicle position is determined only by the GPS information.
Disclosure of Invention
The embodiment of the application provides a method, a device, equipment and a storage medium for accurately reporting stations.
In a first aspect, an embodiment of the present application provides an accurate station reporting method, including:
acquiring a bus line file and positioning information, and judging the type of an operating line according to the bus line file, wherein the bus line file records the type of the operating line and station information of each station of the operating line, and the type of the operating line comprises a single line and a double line;
if the type of the operation line is a single line, determining that the vehicle running direction is the direction corresponding to the single line;
if the type of the operation line is a double-line, determining the running direction of the vehicle according to the positioning information and the bus line file;
and reporting the bus stop based on the vehicle running direction and the positioning information and in combination with the bus route file.
Further, the vehicle running direction includes an uplink direction and a downlink direction, the station information includes uplink station information and downlink station information of each station in the uplink direction and the downlink direction, and the uplink station information and the downlink station information are recorded with a station name and a station position;
the determining the vehicle running direction according to the positioning information and the bus route file comprises the following steps:
judging whether a starting station entering condition is met or not according to the positioning information and the station position of the starting station in the bus line file, wherein the starting station entering condition comprises an uplink starting station entering condition and a downlink starting station entering condition;
if the starting station entering condition is met, determining the running direction of the vehicle according to the type of the met starting station entering condition;
and if the starting station arrival condition is not met, determining the running direction of the vehicle according to the positioning information and the station position of each station in the bus route file.
Further, the uplink site information and the downlink site information also record site serial numbers, and the site serial numbers are determined according to the sequence of the corresponding sites on the operation line;
the determining the vehicle running direction according to the positioning information and the station position of each station in the bus route file comprises the following steps:
updating an uplink cache linked list and a downlink cache linked list according to the positioning information and the station positions of all stations in the bus line file, wherein the uplink cache linked list and the downlink cache linked list are respectively recorded with station serial numbers meeting the uplink direction and the downlink direction;
and determining the running direction of the vehicle according to the sequencing of the station serial numbers in the uplink cache chain table and the downlink cache chain table.
Further, the updating the uplink buffer linked list and the downlink buffer linked list according to the positioning information and the station positions of the stations in the bus line file includes:
determining the station arrival range of the vehicle according to the positioning information and the station position of each station in the bus route file;
determining corresponding station serial numbers of the uplink station information and the downlink station information according to the station arrival range of the vehicle;
and respectively updating the uplink cache linked list and the downlink cache linked list according to the station serial numbers of the uplink station information and the downlink station information.
Further, the updating the uplink buffer linked list and the downlink buffer linked list according to the station serial numbers of the uplink station information and the downlink station information respectively includes:
if the station serial number is consistent with the station serial number inserted into the uplink cache linked list last time, ignoring the station serial number, otherwise, inserting the station serial number into the uplink cache linked list;
if the site serial number is consistent with the site serial number inserted into the downlink cache linked list last time, ignoring the site serial number, otherwise, inserting the site serial number into the downlink cache linked list.
Further, the determining the vehicle running direction according to the sequence of the station serial numbers in the uplink cache chain table and the downlink cache chain table includes:
judging whether the station serial numbers in the uplink cache linked list or the downlink cache linked list meet station serial number increasing conditions or not;
if the uplink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is an uplink direction;
and if the downlink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is the downlink direction.
Further, the reporting station based on the vehicle running direction and the positioning information and combined with the bus route file includes:
determining a station entering range corresponding to the current station for the vehicle to enter according to the positioning information and the bus route file, and broadcasting the station entering range;
determining a station entering range corresponding to the current station when the vehicle leaves the current station according to the positioning information and the bus route file, and performing outbound broadcast;
and determining the next station where the vehicle will enter according to the vehicle running direction and the bus route file, and broadcasting the next station.
In a second aspect, an embodiment of the present application provides an accurate station reporting device, which includes a determining module, a single-wire direction determining module, a two-wire direction determining module, and a station reporting module, where:
the judging module is used for acquiring a bus line file and positioning information and judging the type of an operating line according to the bus line file, wherein the bus line file records the type of the operating line and station information of each station of the operating line, and the type of the operating line comprises a single line and a double line;
the single-wire direction determining module is used for determining that the vehicle running direction is the direction corresponding to the single-wire line when the operation line type is the single-wire line;
the double-line direction determining module is used for determining the running direction of the vehicle according to the positioning information and the bus line file when the type of the operation line is a double-line;
and the station reporting module is used for reporting the station based on the vehicle running direction and the positioning information and in combination with the bus route file.
In a third aspect, an embodiment of the present application provides a computer device, including: a memory and one or more processors;
the memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors are caused to implement the precision station reporting method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions for performing the accurate station reporting method according to the first aspect when executed by a computer processor.
According to the method and the device, the vehicle running direction is accurately judged according to the type of the running line, when the running line of the vehicle is a single-line, the vehicle running direction can be directly determined, when the running line of the vehicle is a double-line, the vehicle running direction is accurately judged by combining the positioning information and the bus line file, the accurate station reporting is carried out by combining the vehicle running direction and the positioning information, and the situation of station reporting errors is reduced.
Drawings
Fig. 1 is a flowchart of an accurate station reporting method provided in an embodiment of the present application;
FIG. 2 is a schematic diagram of an operating line of a single-wire line of the type provided by an embodiment of the present application;
FIG. 3 is a schematic diagram of a type of service line provided by an embodiment of the present application as a two-wire line;
fig. 4 is a flowchart of another accurate station reporting method provided by an embodiment of the present application;
FIG. 5 is a schematic diagram of another type of service line provided by an embodiment of the present application as a two-wire line;
fig. 6 is a schematic structural diagram of an accurate station reporting device provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Fig. 1 shows a flowchart of an accurate stop reporting method provided in an embodiment of the present application, where the embodiment is applicable to stop reporting of a bus, the accurate stop reporting method may be executed by an accurate stop reporting device, and the accurate stop reporting device may be implemented by hardware and/or software and integrated in a computer device (e.g., an all-in-one machine mounted on a bus).
The following description will be given taking an example in which the accurate station reporting apparatus performs the accurate station reporting method. Referring to fig. 1, the accurate station reporting method includes:
s101: and acquiring a bus route file and positioning information, and judging the type of an operation route according to the bus route file.
The bus line file records the type of an operation line and station information of each station of the operation line, wherein the type of the operation line comprises a single line and a double line. The positioning information is specifically GPS information, and can be acquired through a GPS module carried on a vehicle (bus), and the positioning information reflects longitude and latitude information of the position where the GPS module is located, and simultaneously reflects the longitude and latitude information of the position where the vehicle is located.
Furthermore, the bus route file records the type of the operation route and station information of each station of the operation route, the station information comprises a station name and a station position, the station position is recorded through latitude and longitude information, the bus route file can be stored in a local or cloud server, and the corresponding storage address is accessed through a corresponding communication protocol and the bus route file is obtained.
The type of the operation line comprises a single line and a double line, wherein the single line is understood as that the vehicle only runs towards a preset direction when in operation, for example, the vehicle does not run back after running from a starting point to an end point of a path (or directly returns to the starting point and then runs in a single direction), or runs along a loop line; a two-wire route is understood to mean that the vehicle is in two directions during operation, for example, a first direction from the start point to the end point of the operation route, and a reverse direction of the first direction is taken as a second direction.
In this embodiment, the operation line may include a plurality of stations, each station is provided with a different station name, and the station names between different stations are different from each other, so as to distinguish different stations in terms of naming, and meanwhile, the station positions between different stations are also different from each other.
S102: and if the type of the operation line is a single line, determining that the vehicle running direction is the direction corresponding to the single line.
Specifically, when station reporting is performed, the station reporting needs to be performed according to the positioning information and the vehicle running direction, wherein the vehicle running direction needs to be judged according to the type of the operation line. The determination of the operation line type can be judged through the operation line type recorded in the bus line file.
When the type of the service line is judged to be the single line, the vehicle can be determined to only travel towards a preset direction during service, namely the vehicle running direction is the direction corresponding to the single line. Fig. 2 is a schematic diagram of an operating line of a single-wire line of a type provided in this embodiment of the present application, and for simplicity of explanation, the diagram is described by taking 6 stations (with station names a1-a6) as an example. As shown in fig. 2, the single-wire line is a circular line and travels circularly in the direction of the arrow in the figure, and at this time, the clockwise direction corresponding to the arrow is the direction corresponding to the single-wire line, and the vehicle traveling direction can be determined to be the direction corresponding to the single-wire line.
S103: and if the type of the operation line is a double-line, determining the running direction of the vehicle according to the positioning information and the bus line file.
Illustratively, when the type of the service line is a two-line, there are two types of vehicle traveling directions, namely, an uplink direction and a downlink direction (corresponding to the first direction and the second direction, and the uplink direction and the downlink direction are defined for easy understanding or easy operation decision, that is, the correspondence between the two directions is interchangeable), where the station information includes uplink station information and downlink station information of each station in the uplink direction and the downlink direction, the uplink station information and the downlink station information both record a station name and a station position, and the stations in the uplink direction and the downlink direction are sequentially arranged according to the corresponding vehicle traveling directions.
Specifically, when the type of the operation line is judged to be a double-line, the positioning information of the vehicle is compared with the station information of each station in the bus line file, that is, the positioning information is respectively compared with the station positions in the uplink station information and the downlink station information, the station entering range where the vehicle is currently located is judged, the corresponding condition of the sequencing of the vehicle between two (or more) stations in sequence and the stations in the uplink direction and the downlink direction is judged, and when the sequence of the two (or more) stations in sequence is consistent with the sequencing of the two (or more) stations in the uplink direction or the downlink direction, the running direction of the vehicle can be judged to be the uplink direction or the downlink direction.
Fig. 3 is a schematic diagram of an operating line of a type of a two-wire line provided in this embodiment, and for simplicity of description, the operating line is described by taking an example where each of the uplink direction a and the downlink direction B includes 5 stations (the station names are respectively a11-a15 and B11-B15, where a11-a15 and B15-B11 may have the same station name, and are shown differently for convenience of illustration). As shown in fig. 3, it is assumed that the current vehicle travels in the direction of arrow C1 in the figure, at this time, it is known that the current vehicle is located within the inbound ranges of station a13 and station B13 according to the positioning information, and the stations corresponding to the inbound range of the previous station where the vehicle is located are station a12 and station B14, respectively, it is known that the sequence from a12 to a13 only satisfies the ranking in the uplink direction a, and at this time, it is determined that the vehicle travel direction is the uplink direction.
S104: and reporting the bus stop based on the vehicle running direction and the positioning information and in combination with the bus route file.
Specifically, the current positioning information is compared with the station position summarized by the station information, when the vehicle is determined to enter the station entering range, the corresponding station name is determined according to the station information corresponding to the station entering range, and the current station entering and the next station entering are reported by combining with the next station corresponding to the vehicle running direction in the bus line file, so that passengers are reminded.
The vehicle running direction can be directly determined when the running line of the vehicle is a single-line, and the vehicle running direction can be accurately determined by combining the positioning information and the bus line file when the running line of the vehicle is a double-line, and the accurate station reporting is performed by combining the vehicle running direction and the positioning information, so that the condition of station reporting errors is reduced.
Fig. 4 is a flowchart of another accurate station reporting method according to an embodiment of the present application. The accurate station reporting method is a concrete embodiment of the accurate station reporting method. Referring to fig. 4, the accurate station reporting method includes:
s201: and acquiring the bus route file and the positioning information.
The positioning information is specifically GPS information, which can be acquired through a GPS module carried on a vehicle (bus), and the GPS information is acquired according to a preset time period (such as 1s), wherein the positioning information reflects longitude and latitude information of the position where the GPS module is located, and simultaneously reflects the longitude and latitude information of the position where the vehicle is located. Optionally, when the positioning information is obtained, it is verified whether the positioning information is valid, if so, the next operation is continued, otherwise (for example, when the GPS signal is not good), the positioning information is discarded, and the positioning information is obtained again.
Further, the bus line file records the type of an operating line and station information of each station of the operating line, the type of the operating line comprises a single line and a double line, the station information comprises uplink station information and downlink station information of each station in an uplink direction and a downlink direction, the uplink station information and the downlink station information record station names and station positions, and the station positions are recorded through longitude and latitude information.
Meanwhile, the uplink site information and the downlink site information also record site serial numbers, and the site serial numbers are determined according to the sequence of the corresponding sites on the operating line, that is, the site names in the uplink site information and the downlink site information are respectively bound with the site serial numbers according to the sequence of the uplink direction and the downlink direction, and the site serial numbers corresponding to the direction along the operating line are sequentially increased.
Illustratively, the bus route file may be stored in a local or cloud server, and the corresponding storage address is accessed through a corresponding communication protocol and the bus route file is obtained.
S202: and judging whether the type of the operating line is a single-wire line. If so, go to step S203, otherwise, go to step S204.
S203: and determining the running direction of the vehicle as the direction corresponding to the single-wire line.
For example, when the service line type is determined to be a single line, it may be determined that the vehicle is only traveling in a predetermined direction during service, that is, the vehicle traveling direction is the direction corresponding to the single line. After the vehicle running direction is determined, it jumps to step S207.
S204: and judging whether the station entering condition of the starting station is met. And if so, jumping to the step S205, otherwise, jumping to the step S206.
Illustratively, when the type of the operation line is judged to be a double-line, the vehicle running direction needs to be determined according to the positioning information and the bus line file, wherein the vehicle running direction comprises an uplink direction and a downlink direction.
Further, the starting station entering condition includes an uplink starting station entering condition and a downlink starting station entering condition, which are respectively expressed as an entering range of the vehicle reaching the uplink starting station and an entering range of the downlink starting station.
In this embodiment, whether the start station entering condition is met is judged according to the positioning information and the station position of the start station in the bus route file. Specifically, according to the positioning information, the station position of the uplink starting station and the station position of the downlink starting station, a first distance and a second distance between the vehicle and the uplink starting station and the downlink starting station are calculated, and whether the first distance or the second distance is within the station entering range of the uplink starting station or the station entering range of the downlink starting station is judged to determine whether the vehicle enters the station entering range of the uplink starting station or the station entering range of the downlink starting station, so as to judge whether the uplink starting station entering condition or the downlink starting station entering condition is met.
If the first distance or the second distance is located in the station entering range of the uplink starting station or the station entering range of the downlink starting station, the vehicle is judged to enter the station entering range of the uplink starting station or the station entering range of the downlink starting station, the vehicle can be determined to meet the station entering condition of the uplink starting station or the station entering condition of the downlink starting station, and if the first distance or the second distance is located outside the station entering range of the uplink starting station or the station entering range of the downlink starting station, the vehicle is determined not to meet the station entering condition of the starting station.
It can be understood that only the uplink or downlink starting station entering condition can be satisfied at the same time, and if both conditions are satisfied, the data is considered to be abnormal, the vehicle running direction is maintained as the vehicle running direction determined last time, the current direction determination is stopped, and the process returns to step S201.
The inbound range is determined by a general preset radius (e.g., preset to 100m) and an adaptive preset radius (set according to the traffic condition of the station, e.g., preset to 50m-150m), and in this embodiment, the smaller value of the general preset radius and the adaptive preset radius is used as the inbound range.
S205: and determining the vehicle running direction according to the type of the start station entering condition which is met.
Specifically, if the type of the start station entering condition that is met is the uplink start station entering condition, the vehicle running direction of the vehicle is determined to be the uplink direction, and correspondingly, if the type of the start station entering condition that is met is the downlink start station entering condition, the vehicle running direction of the vehicle is determined to be the downlink direction. After the vehicle running direction is determined, it jumps to step S207.
S206: and determining the running direction of the vehicle according to the positioning information and the station position of each station in the bus route file.
When the starting station arrival condition is judged not to be met, determining the vehicle running direction according to the positioning information and the station positions of all stations in the bus route file, and specifically comprising the steps of S2061-S2062:
s2061: and updating the uplink cache linked list and the downlink cache linked list according to the positioning information and the station positions of all stations in the bus line file.
And when the station entering condition of the initial station is judged not to be satisfied, creating an uplink buffer chain table and a downlink buffer chain table which are respectively used for recording station serial numbers satisfying the uplink direction and the downlink direction.
Further, determining the station arrival range of the vehicle according to the positioning information and the station position of each station in the bus route file; determining the station serial numbers of corresponding uplink station information and downlink station information according to the station arrival range of the vehicle; and respectively updating the uplink buffer linked list and the downlink buffer linked list according to the station serial numbers of the uplink station information and the downlink station information.
Further, when the uplink buffer chain table and the downlink buffer chain table are updated according to the station serial numbers of the uplink station information and the downlink station information, the station serial numbers are compared with the station serial numbers inserted into the uplink buffer chain table last time, and the situation that the station serial numbers of the same station are inserted into the buffer chain tables twice before and after is avoided.
Specifically, if the station serial number is consistent with the station serial number inserted into the uplink cache linked list last time, ignoring the station serial number, otherwise, inserting the station serial number into the uplink cache linked list; if the station serial number is consistent with the station serial number inserted into the downlink cache linked list last time, ignoring the station serial number, otherwise, inserting the station serial number into the downlink cache linked list, and completing the updating of the uplink cache linked list and the downlink cache linked list in the current positioning information acquisition cycle.
In a possible embodiment, optionally, when the station sequence number is inserted into the uplink buffer linked list or the downlink buffer linked list, it is determined that the currently inserted station sequence number is compared with the previously inserted station sequence number, and if the currently inserted station sequence number is not in an increasing relationship with the previously inserted station sequence number, the corresponding buffer linked list is cleared (or the previously inserted station sequence number is cleared).
S2062: and determining the running direction of the vehicle according to the sequencing of the station serial numbers in the uplink cache chain table and the downlink cache chain table.
Specifically, after the updating of the uplink cache linked list and the downlink cache linked list is completed, whether the station serial number in the uplink cache linked list or the downlink cache linked list meets the station serial number increasing condition is judged, and if the uplink cache linked list meets the station serial number increasing condition, the vehicle running direction is determined to be the uplink direction; and if the downlink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is the downlink direction.
It can be understood that, at the same time, only the station serial numbers in the uplink buffer linked list or the downlink buffer linked list satisfy the station serial number increasing condition, and if the station serial number increasing condition is satisfied at the same time, the data is considered to be abnormal, the vehicle running direction is kept as the vehicle running direction determined last time, the direction determination of this time is stopped, and the step S201 is returned to.
S207: and reporting the bus stop based on the vehicle running direction and the positioning information and in combination with the bus route file.
The stop reporting can be carried out in a text and/or voice mode. Specifically, the step of reporting the bus stop based on the vehicle running direction and the positioning information and in combination with the bus route file comprises steps S2071 to S2073:
s2071: and determining that the vehicle enters a station arrival range corresponding to the current station according to the positioning information and the bus route file, and performing station arrival broadcasting.
Specifically, when the vehicle running direction is determined and the positioning information is effective GPS information, the station information of each station corresponding to the running direction in the bus route file is obtained, the positioning information and the distance between each station are compared, when the distance between the vehicle and a certain station is within the station entering range of the station, and the last broadcast content is the outbound broadcast of the last station in the vehicle running direction or the next station broadcast of the next station in the vehicle running direction is indicated, the inbound broadcast entering the station is indicated.
S2072: and determining the station entering range corresponding to the current station when the vehicle leaves the current station according to the positioning information and the bus route file, and performing the station exiting broadcasting.
Specifically, when the running direction of the vehicle is determined and the positioning information is effective GPS information, the station information of each station corresponding to the running direction in the bus route file is obtained, the positioning information is compared with the distance between each station, and when the distance between the vehicle and one station is larger than the station entering range of the station and the last broadcast content indicates that the vehicle enters the station to be broadcasted, the vehicle leaves the station to be broadcasted.
S2073: and determining the next station where the vehicle will enter according to the vehicle running direction and the bus route file, and broadcasting the next station.
Specifically, when the vehicle running direction is determined and the positioning information is effective GPS information, the station information of each station corresponding to the running direction in the bus route file is obtained, the positioning information and the distance between each station are compared, when the distance between the vehicle and one station is larger than the station entering range of the station, and the last broadcast content indicates the outbound broadcast leaving the station or the inbound broadcast entering the station, the next station broadcast indicating the next station of the vehicle running direction is carried out. It is understood that the combination of steps S2071-S2073 may be performed as needed for the actual stop announcement content.
Fig. 5 is a schematic diagram of another type of service line of a two-wire line provided in this embodiment, and for simplicity of description, the service line is described by taking an example where the number in the uplink direction a and the number in the downlink direction B include 5 stations (the station names are respectively a21-a25 and B21-B25, the numbers in parentheses are corresponding station numbers, and the station numbers are all 1 to 5 from the starting point to the ending point, where a21-a25 and B25-B21 may have the same station name, and the illustration is shown differently for convenience of illustration). As shown in fig. 5, it is assumed that the current vehicle travels in the direction of arrow C2 in the drawing, and at this time, it is known from the positioning information that the current vehicle is located within the inbound ranges of station a23 and station B23, and the stations corresponding to the inbound range of the previous station where the vehicle is located are station a22 and station B24, respectively.
It can be known that, at this time, the type of the operation line is a two-line, and the start station entering condition is not satisfied, the station serial number corresponding to the uplink cache chain table is "1/2/3", and the station serial number corresponding to the downlink cache list is "3", and only if the uplink cache list satisfies the station serial number increasing condition, the vehicle operation direction is determined to be the uplink direction a. The corresponding inbound broadcast is an inbound broadcast indicating that station a23 will be entered, and the corresponding next station broadcast is a next station broadcast indicating the next station a 24.
The vehicle running direction can be directly determined when the running line of the vehicle is a single-line, and the vehicle running direction can be accurately determined by combining the positioning information and the bus line file when the running line of the vehicle is a double-line, and the accurate station reporting is performed by combining the vehicle running direction and the positioning information, so that the condition of station reporting errors is reduced. And the running direction of the vehicle is judged in a mode of caching the linked list, so that the accuracy of direction judgment is effectively improved. Meanwhile, the station reporting is carried out from multiple aspects by combining the running direction of the vehicle and the positioning information, and the station reporting abundance is improved.
Fig. 6 is a schematic structural diagram of an accurate station reporting apparatus according to an embodiment of the present application. Referring to fig. 6, the precise station reporting apparatus provided in this embodiment includes a judgment module 41, a single-wire direction determination module 42, a two-wire direction determination module 43, and a station reporting module 44.
The judging module 41 is configured to obtain a bus line file and positioning information, and judge a type of an operating line according to the bus line file, where the bus line file records the type of the operating line and station information of each station of the operating line, and the operating line type includes a single line and a double line; the single-wire direction determining module 42 is configured to determine that the vehicle running direction is a direction corresponding to the single-wire line when the operation line type is the single-wire line; a two-line direction determining module 43, configured to determine a vehicle running direction according to the positioning information and the bus route file when the operation route is a two-line route; and the stop reporting module 44 is configured to report a stop based on the vehicle running direction and the positioning information in combination with the bus route file.
The vehicle running direction can be directly determined when the running line of the vehicle is a single-line, and the vehicle running direction can be accurately determined by combining the positioning information and the bus line file when the running line of the vehicle is a double-line, and the accurate station reporting is performed by combining the vehicle running direction and the positioning information, so that the condition of station reporting errors is reduced.
In a possible embodiment, the vehicle moving direction includes an uplink direction and a downlink direction, the station information includes uplink station information and downlink station information of each station in the uplink direction and the downlink direction, the uplink station information and the downlink station information are both recorded with a station name and a station position, and the two-wire direction determining module 43 is specifically configured to: judging whether a starting station entering condition is met or not according to the positioning information and the station position of the starting station in the bus line file, wherein the starting station entering condition comprises an uplink starting station entering condition and a downlink starting station entering condition; if the starting station entering condition is met, determining the running direction of the vehicle according to the type of the met starting station entering condition; and if the starting station arrival condition is not met, determining the running direction of the vehicle according to the positioning information and the station position of each station in the bus route file.
In a possible embodiment, the uplink station information and the downlink station information further record station serial numbers, the station serial numbers are determined according to the sequence of the corresponding stations on the operation line, and when the two-line direction determining module 43 determines the vehicle running direction according to the positioning information and the station positions of the stations in the bus line file, the method specifically includes: updating an uplink cache linked list and a downlink cache linked list according to the positioning information and the station positions of all stations in the bus line file, wherein the uplink cache linked list and the downlink cache linked list are respectively recorded with station serial numbers meeting the uplink direction and the downlink direction; and determining the running direction of the vehicle according to the sequencing of the station serial numbers in the uplink cache chain table and the downlink cache chain table.
In a possible embodiment, when the double-line direction determining module 43 updates the uplink buffer linked list and the downlink buffer linked list according to the positioning information and the station position of each station in the bus line file, specifically: determining the station arrival range of the vehicle according to the positioning information and the station position of each station in the bus route file; according to the station serial numbers of the uplink station information and the downlink station information corresponding to the station arrival range of the vehicle; and respectively updating the uplink cache linked list and the downlink cache linked list according to the station serial numbers of the uplink station information and the downlink station information.
In a possible embodiment, when the two-line direction determining module 43 updates the uplink buffer link list and the downlink buffer link list according to the station serial numbers of the uplink station information and the downlink station information, specifically: if the station serial number is consistent with the station serial number inserted into the uplink cache linked list last time, ignoring the station serial number, otherwise, inserting the station serial number into the uplink cache list; if the site serial number is consistent with the site serial number inserted into the downlink cache linked list last time, ignoring the site serial number, otherwise, inserting the site serial number into the downlink cache list.
In a possible embodiment, when the two-line direction determining module 43 determines the vehicle running direction according to the sequence of the station serial numbers in the uplink buffer chain table and the downlink buffer chain table, specifically: judging whether the station serial numbers in the uplink cache linked list or the downlink cache linked list meet station serial number increasing conditions or not; if the uplink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is an uplink direction; and if the downlink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is the downlink direction.
In a possible embodiment, the station reporting module 44 is specifically configured to: determining a station entering range corresponding to the current station for the vehicle to enter according to the positioning information and the bus route file, and broadcasting the station entering range; determining a station entering range corresponding to the current station when the vehicle leaves the current station according to the positioning information and the bus route file, and performing outbound broadcast; and determining the next station where the vehicle will enter according to the vehicle running direction and the bus route file, and broadcasting the next station.
The embodiment of the application also provides computer equipment which can integrate the accurate station reporting device provided by the embodiment of the application. Fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present application. Referring to fig. 7, the accurate station reporting apparatus includes: an input device 53, an output device 54, a memory 52, and one or more processors 51; the memory 52 for storing one or more programs; when the one or more programs are executed by the one or more processors 51, the one or more processors 51 are enabled to implement the accurate station reporting method provided by the above-described embodiment. Wherein the input device 53, the output device 54, the memory 52 and the processor 51 may be connected by a bus or other means, as exemplified by the bus connection in fig. 7.
The memory 52 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the precise station reporting method according to any embodiment of the present application (for example, the determining module 41, the single-wire direction determining module 42, the two-wire direction determining module 43, and the station reporting module 44 in the precise station reporting apparatus). The memory 52 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory 52 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 52 may further include memory located remotely from the processor 51, which may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 53 may be used to receive input numeric or character information and generate key signal inputs relating to user settings and function control of the apparatus. The output device 54 may include a display device such as a display screen.
The processor 51 executes various functional applications of the device and data processing by executing software programs, instructions and modules stored in the memory 52, that is, implements the above-described accurate station reporting method.
The precise station reporting device and the computer provided by the embodiment can be used for executing the precise station reporting method provided by the embodiment, and have corresponding functions and beneficial effects.
Embodiments of the present application further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the accurate station reporting method provided in the foregoing embodiments, where the accurate station reporting method includes: acquiring a bus line file and positioning information, and judging the type of an operating line according to the bus line file, wherein the bus line file records the type of the operating line and station information of each station of the operating line, and the type of the operating line comprises a single line and a double line; if the type of the operation line is a single line, determining that the vehicle running direction is the direction corresponding to the single line; if the type of the operation line is a double-line, determining the running direction of the vehicle according to the positioning information and the bus line file; and reporting the bus stop based on the vehicle running direction and the positioning information and in combination with the bus route file.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media that may reside in different locations, such as in different computer systems that are connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the precise station reporting method described above, and may also perform related operations in the precise station reporting method provided in any embodiments of the present application.
The precise station reporting device, the apparatus and the storage medium provided in the foregoing embodiments may perform the precise station reporting method provided in any embodiment of the present application, and refer to the precise station reporting method provided in any embodiment of the present application without detailed technical details described in the foregoing embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (6)

1. A method for accurate station reporting, comprising:
acquiring a bus line file and positioning information, and judging the type of an operating line according to the bus line file, wherein the bus line file records the type of the operating line and station information of each station of the operating line, and the type of the operating line comprises a single line and a double line;
if the type of the operation line is a single line, determining that the vehicle running direction is the direction corresponding to the single line;
if the type of the operation line is a double-line, judging whether a starting station entering condition is met or not according to the positioning information and the station position of the starting station in the bus line file, wherein the starting station entering condition comprises an uplink starting station entering condition and a downlink starting station entering condition; if the starting station entering condition is met, determining the running direction of the vehicle according to the type of the met starting station entering condition; if the station entering condition of the initial station is not met, updating an uplink cache linked list and a downlink cache linked list according to the positioning information and the station positions of all stations in the bus line file, wherein the uplink cache linked list and the downlink cache linked list are respectively recorded with station serial numbers meeting the uplink direction and the downlink direction; determining the running direction of the vehicle according to the sequencing of the station serial numbers in the uplink cache chain table and the downlink cache chain table; the vehicle running direction comprises an uplink direction and a downlink direction, the station information comprises uplink station information and downlink station information of each station in the uplink direction and the downlink direction, and the uplink station information and the downlink station information are recorded with station names and station positions; the uplink site information and the downlink site information also record site serial numbers, and the site serial numbers are determined according to the sequence of corresponding sites on an operation line; the updating of the uplink buffer chain table and the downlink buffer chain table according to the positioning information and the station positions of the stations in the bus line file comprises the following steps: determining the station arrival range of the vehicle according to the positioning information and the station position of each station in the bus route file; determining corresponding station serial numbers of the uplink station information and the downlink station information according to the station arrival range of the vehicle; respectively updating an uplink cache linked list and a downlink cache linked list according to the station serial numbers of the uplink station information and the downlink station information; the determining the vehicle running direction according to the sequencing of the station serial numbers in the uplink cache chain table and the downlink cache chain table comprises the following steps: judging whether the station serial numbers in the uplink cache linked list or the downlink cache linked list meet station serial number increasing conditions or not; if the uplink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is an uplink direction; if the downlink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is the downlink direction;
and reporting the bus stop based on the vehicle running direction and the positioning information and in combination with the bus route file.
2. The method of claim 1, wherein the updating the uplink buffer linked list and the downlink buffer linked list according to the station sequence numbers of the uplink station information and the downlink station information respectively comprises:
if the station serial number is consistent with the station serial number inserted into the uplink cache linked list last time, ignoring the station serial number, otherwise, inserting the station serial number into the uplink cache linked list;
if the site serial number is consistent with the site serial number inserted into the downlink cache linked list last time, ignoring the site serial number, otherwise, inserting the site serial number into the downlink cache linked list.
3. The accurate stop reporting method according to any one of claims 1-2, wherein the reporting based on the vehicle running direction and the positioning information in combination with the bus route file comprises:
determining a station entering range corresponding to the current station for the vehicle to enter according to the positioning information and the bus route file, and broadcasting the station entering range;
determining a station entering range corresponding to the current station when the vehicle leaves the current station according to the positioning information and the bus route file, and performing outbound broadcast;
and determining the next station where the vehicle will enter according to the vehicle running direction and the bus route file, and broadcasting the next station.
4. The accurate station reporting device is characterized by comprising a judging module, a single-wire direction determining module, a double-wire direction determining module and a station reporting module, wherein:
the judging module is used for acquiring a bus line file and positioning information and judging the type of an operating line according to the bus line file, wherein the bus line file records the type of the operating line and station information of each station of the operating line, and the type of the operating line comprises a single line and a double line;
the single-wire direction determining module is used for determining that the vehicle running direction is the direction corresponding to the single-wire line when the operation line type is the single-wire line;
the double-line direction determining module is used for judging whether a starting station arrival condition is met or not according to the positioning information and the station position of the starting station in the bus line file when the operation line type is a double-line, wherein the starting station arrival condition comprises an uplink starting station arrival condition and a downlink starting station arrival condition; if the starting station entering condition is met, determining the running direction of the vehicle according to the type of the met starting station entering condition; if the station entering condition of the initial station is not met, updating an uplink cache linked list and a downlink cache linked list according to the positioning information and the station positions of all stations in the bus line file, wherein the uplink cache linked list and the downlink cache linked list are respectively recorded with station serial numbers meeting the uplink direction and the downlink direction; determining the running direction of the vehicle according to the sequencing of the station serial numbers in the uplink cache chain table and the downlink cache chain table; the vehicle running direction comprises an uplink direction and a downlink direction, the station information comprises uplink station information and downlink station information of each station in the uplink direction and the downlink direction, and the uplink station information and the downlink station information are recorded with station names and station positions; the uplink site information and the downlink site information also record site serial numbers, and the site serial numbers are determined according to the sequence of corresponding sites on an operation line; the updating of the uplink buffer chain table and the downlink buffer chain table according to the positioning information and the station positions of the stations in the bus line file comprises the following steps: determining the station arrival range of the vehicle according to the positioning information and the station position of each station in the bus route file; determining corresponding station serial numbers of the uplink station information and the downlink station information according to the station arrival range of the vehicle; respectively updating an uplink cache linked list and a downlink cache linked list according to the station serial numbers of the uplink station information and the downlink station information; the determining the vehicle running direction according to the sequencing of the station serial numbers in the uplink cache chain table and the downlink cache chain table comprises the following steps: judging whether the station serial numbers in the uplink cache linked list or the downlink cache linked list meet station serial number increasing conditions or not; if the uplink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is an uplink direction; if the downlink cache linked list meets the station serial number increasing condition, determining that the vehicle running direction is the downlink direction;
and the station reporting module is used for reporting the station based on the vehicle running direction and the positioning information and in combination with the bus route file.
5. A computer device, comprising: a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the precision station reporting method of any one of claims 1-3.
6. A storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the precision stop reporting method of any one of claims 1-3.
CN201911285228.9A 2019-12-13 2019-12-13 Method, device, equipment and storage medium for accurately reporting station Active CN110969888B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911285228.9A CN110969888B (en) 2019-12-13 2019-12-13 Method, device, equipment and storage medium for accurately reporting station

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911285228.9A CN110969888B (en) 2019-12-13 2019-12-13 Method, device, equipment and storage medium for accurately reporting station

Publications (2)

Publication Number Publication Date
CN110969888A CN110969888A (en) 2020-04-07
CN110969888B true CN110969888B (en) 2021-02-23

Family

ID=70034202

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911285228.9A Active CN110969888B (en) 2019-12-13 2019-12-13 Method, device, equipment and storage medium for accurately reporting station

Country Status (1)

Country Link
CN (1) CN110969888B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113763743B (en) * 2021-08-11 2022-08-23 杭州金通科技集团股份有限公司 Bus automatic station reporting method and system based on GPS track acquisition
CN114158119B (en) * 2021-12-09 2024-03-01 北京百度网讯科技有限公司 Driving direction identification method and device, electronic equipment and medium
CN115100897B (en) * 2022-05-23 2023-11-17 惠州华阳通用电子有限公司 Vehicle position determining method and device
CN114999208A (en) * 2022-05-25 2022-09-02 新驱动重庆智能汽车有限公司 Method, device, equipment and storage medium for accurately reporting station
CN115240458B (en) * 2022-06-22 2023-08-18 惠州华阳通用电子有限公司 Bus positioning stop reporting method and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080042415A (en) * 2006-11-10 2008-05-15 엘지전자 주식회사 Apparatus and method of tpeg receive in portable device
CN104240529A (en) * 2014-09-11 2014-12-24 江苏云控软件技术有限公司 Method and system for predicting arrival time of buses

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101308402B1 (en) * 2006-03-20 2013-09-16 에스케이플래닛 주식회사 System for Managing Bus Information Using Mobile Communication Terminal
CN101493990B (en) * 2008-01-23 2010-10-06 厦门雅迅网络股份有限公司 Method for automatically reporting station of public transport vehicle
CN103236184B (en) * 2013-04-03 2015-02-04 广州亿连达电子科技有限公司 Method and device for automatic bus station report
CN106601013A (en) * 2016-11-30 2017-04-26 武汉长江通信智联技术有限公司 Automatic station reporting method of bus
CN107742434B (en) * 2017-10-10 2021-11-09 郑州天迈科技股份有限公司 Automatic station detection method for public transport vehicle in line operation process
CN108242174B (en) * 2018-03-15 2020-04-21 广州通达汽车电气股份有限公司 Automatic bus stop reporting method and system
CN109166338A (en) * 2018-08-07 2019-01-08 浙江工业大学 Automatic bus stop announcing method and its station reporting instrument based on GPS positioning

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080042415A (en) * 2006-11-10 2008-05-15 엘지전자 주식회사 Apparatus and method of tpeg receive in portable device
CN104240529A (en) * 2014-09-11 2014-12-24 江苏云控软件技术有限公司 Method and system for predicting arrival time of buses

Also Published As

Publication number Publication date
CN110969888A (en) 2020-04-07

Similar Documents

Publication Publication Date Title
CN110969888B (en) Method, device, equipment and storage medium for accurately reporting station
AU2014208234B2 (en) Dynamic eta and sta transportation system
US8433341B2 (en) System and methods for distributed tracking of public transit vehicles
US8990009B2 (en) System, method, and apparatus for minimizing power consumption in a portable device capable of receiving satellite navigational system signals
JP2008520137A (en) Method and system for optimizing wireless transmission of data between a vehicle and an external remote station
CN103188598A (en) Intelligent group call answer taxi appointment method, intelligent group call answer taxi appointment system and taxi appointment platform
CN105142112A (en) Method and device for automatically detecting subway environment and automatically announcing stops with mobile terminal
CN105371861A (en) Route navigation method and server
CN103052152A (en) Method and device for positioning mobile terminal and mobile terminal
JP2014501005A (en) How to retrieve information for a car
CN109299408B (en) Information pushing method and device, vehicle, storage medium and electronic equipment
JP2018523126A (en) Map-based navigation method, apparatus, and storage medium
CN105066999A (en) Position information determination method and apparatus thereof
CN107015988A (en) A kind of information matching method based on map and user-association for applying to special train
US20090164551A1 (en) Sms and packet data performance monitoring
CN101769749A (en) Navigation method and device
US20170213261A1 (en) Method for detecting riders and managing and optimizing their shared transport
CN110730198A (en) Bus information pushing method and device, storage medium and terminal
CN101115278A (en) Method for providing destination
CN104867322A (en) Method and device for determining bus stops
JP2014155351A (en) Information provision system
CN109068282A (en) A kind of method, apparatus and computer equipment of the trip of user for identification scene
US11159915B2 (en) Offline method to determine location of a vehicle using mobile phones
CN112050823A (en) Navigation destination correction method and device and computer storage medium
CN103533503A (en) Method and system for recording and acquiring bus time table through photographing

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
CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Zhang Jianjun

Inventor after: Xing Yingbiao

Inventor after: Xu Yeping

Inventor before: Xing Yingbiao

Inventor before: Xu Yeping

Inventor before: Zhang Jianjun

GR01 Patent grant
GR01 Patent grant