CN106683419B - Method for identifying traffic flow direction and electronic equipment - Google Patents
Method for identifying traffic flow direction and electronic equipment Download PDFInfo
- Publication number
- CN106683419B CN106683419B CN201710166403.7A CN201710166403A CN106683419B CN 106683419 B CN106683419 B CN 106683419B CN 201710166403 A CN201710166403 A CN 201710166403A CN 106683419 B CN106683419 B CN 106683419B
- Authority
- CN
- China
- Prior art keywords
- road
- electronic equipment
- electronic device
- traffic flow
- determining
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08G—TRAFFIC CONTROL SYSTEMS
- G08G1/00—Traffic control systems for road vehicles
- G08G1/01—Detecting movement of traffic to be counted or controlled
- G08G1/056—Detecting movement of traffic to be counted or controlled with provision for distinguishing direction of travel
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Navigation (AREA)
Abstract
The invention provides a method for identifying traffic flow direction and electronic equipment, which can determine the traffic flow direction close to a first side of the electronic equipment in a first road based on the obtained orientation direction of the electronic equipment and the arrangement information of the first road of the geographical position of the electronic equipment, thereby realizing the purpose of identifying the traffic flow direction of the first side when a user is positioned at the first side of the road.
Description
Technical Field
The invention relates to the technical field of communication, in particular to a method for identifying traffic flow direction and electronic equipment.
Background
At present, in a city, vehicles (such as buses and taxis) are vehicles frequently selected by people when people go out, and people sometimes get out of the way when waiting for the vehicles, for example, the people may take the buses going to the opposite direction.
Therefore, a method of recognizing a traffic direction in which a user is currently located on a road side is required.
Disclosure of Invention
In view of this, the present invention provides a method for identifying a traffic direction and an electronic device, so as to overcome the problem that the traffic direction on one side of a road cannot be identified in the prior art.
In order to achieve the purpose, the invention provides the following technical scheme:
a method of identifying a direction of traffic, comprising:
acquiring the orientation direction of the electronic equipment in a lighting state of the electronic equipment;
obtaining arrangement information of a first road of a geographical position where the electronic equipment is located;
and determining the traffic flow direction close to the first side of the electronic equipment in the first road based on the orientation direction of the terminal equipment and the arrangement information of the first road.
Wherein the method further comprises:
whether to generate prompting information for prompting the user to miss the road direction is determined based on the destination set on the electronic equipment and the traffic flow direction of the first side.
Wherein the method further comprises:
setting a destination;
generating navigation information based on the destination; the navigation information comprises at least one node;
monitoring a change in location of the electronic device;
and when the position change of the electronic equipment is matched with the first node in the at least one node, executing the step of identifying the traffic flow direction.
Wherein the obtaining of the orientation direction of the electronic device in the lighting state comprises:
determining the orientation direction of the electronic equipment relative to the geomagnetism under the current lighting state;
the determining, based on the orientation direction of the electronic device and the arrangement information of the first road, a traffic direction in the first road near the first side of the electronic device includes:
determining that the electronic equipment is arranged on a first side of the first road according to the orientation direction and the arrangement information of the first road, wherein the first road comprises two sides, and the traffic flow directions corresponding to the two sides of the first road are opposite;
and determining the traffic flow direction of the first side according to the first side.
Wherein the determining, according to the facing direction and the arrangement information of the first road, that the electronic device is on the first side of the first road comprises:
calculating an included angle between the electronic equipment and the first road according to the orientation direction and the arrangement information of the first road;
and when the included angle belongs to a first preset range, determining that the electronic equipment is positioned on the first side of the first road.
An electronic device, comprising:
a memory for storing a program;
a processor for executing the program, the program for:
acquiring the orientation direction of the electronic equipment in a lighting state of the electronic equipment;
obtaining arrangement information of a first road of a geographical position where the electronic equipment is located;
determining a traffic flow direction close to a first side of the electronic equipment in a first road based on the orientation direction of the electronic equipment and the arrangement information of the first road;
a communication bus for the memory to communicate with the processor.
Wherein the processor is further configured to:
whether to generate prompting information for prompting the user to miss the road direction is determined based on the destination set on the electronic equipment and the traffic flow direction of the first side.
Wherein the processor is further configured to:
setting a destination;
generating navigation information based on the destination; the navigation information comprises at least one node;
monitoring a change in location of the electronic device;
and when the position change of the electronic equipment is matched with the first node in the at least one node, executing the step of identifying the traffic flow direction.
When acquiring the orientation direction of the electronic device in the lighting state, the processor is specifically configured to:
determining the orientation direction of the electronic equipment relative to the geomagnetism under the current lighting state;
when determining, based on the orientation direction of the electronic device and the arrangement information of the first road, a traffic direction on the first road near the first side of the electronic device, the processor is specifically configured to:
determining that the electronic equipment is arranged on a first side of the first road according to the orientation direction and the arrangement information of the first road, wherein the first road comprises two sides, and the traffic flow directions corresponding to the two sides of the first road are opposite;
and determining the traffic flow direction of the first side according to the first side.
When determining that the electronic device is on the first side of the first road according to the facing direction and the arrangement information of the first road, the processor is specifically configured to:
calculating an included angle between the electronic equipment and the first road according to the orientation direction and the arrangement information of the first road;
and when the included angle belongs to a first preset range, determining that the electronic equipment is positioned on the first side of the first road.
As can be seen from the foregoing technical solutions, in the method for identifying a traffic flow direction according to the embodiments of the present invention, based on the obtained orientation direction of the electronic device and the arrangement information of the first road at the geographic location of the electronic device, the traffic flow direction on the first road near the first side of the electronic device may be determined, so that the purpose of identifying the traffic flow direction on the first side when the user is located on the first side of the road is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flow chart illustrating a method for identifying a traffic flow direction according to an embodiment of the present invention;
fig. 2 is a schematic diagram of an electronic device detecting a self-facing direction on a first side of a road according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating an electronic device detecting a self-heading direction at a second side of a road according to an embodiment of the invention;
fig. 4 is a schematic flow chart of a preferred implementation manner of the method for identifying a traffic flow direction according to the embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating a reduction of a first predetermined range according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
As shown in fig. 1, a schematic flow chart of a method for identifying a traffic direction according to an embodiment of the present invention is provided, where the method includes:
step S101: the method includes the steps of obtaining the orientation direction of the electronic equipment in the current lighting state of the electronic equipment.
The electronic device being in the lit state means that the user is using the electronic device.
The user can wait for the vehicle on the side of the road with the electronic device. Assuming that the two sides of the road are called a side a and B side, it will be understood that the user is standing on different sides of the road and the orientation detected by the electronic device is different. Since the user needs to view the screen of the electronic device during the use of the electronic device, the screen of the electronic device is oriented to the user. The following describes how the electronic device detects the direction of the device using a smartphone as an example.
As shown in fig. 2, the electronic device provided in the embodiment of the present invention detects a self-heading direction on one side of a road.
Assuming that the electronic device is on one side (for example, side a) of a road (the road in the north-south direction in fig. 2), since the user faces the road while waiting for the vehicle, at this time, the electronic device such as a smartphone faces the road in the direction of the solid arrow shown in fig. 2, the orientation direction of the electronic device itself detected by the electronic device may or may not be displayed on the screen of the electronic device. In order to make a person skilled in the art more understand the method for detecting the heading direction of the electronic device (assuming that the heading direction is east-south-north relative to the geomagnetism), the embodiment of the present invention shows the heading direction of the electronic device itself relative to the geomagnetism on the screen of the electronic device, as shown in fig. 2, the heading direction of the electronic device is east.
Since the screen is smaller in the electronic apparatus, fig. 2 also shows an enlarged view of the direction of the electronic apparatus itself with respect to the geomagnetism for greater clarity. The dashed arrow indicates the direction of the electronic device. I.e. the facing direction of the electronic device is the east-ward direction
As shown in fig. 3, the electronic device provided in the embodiment of the present invention detects its own heading direction on the other side of the road.
In fig. 3, the electronic device is on the other side (e.g., side B) of the road, and the electronic device, such as a smartphone, faces the road in the direction of the solid arrow shown in fig. 3, where the facing direction of the electronic device is west.
The electronic device can detect the orientation direction of the electronic device through the compass application client installed on the electronic device, that is, the application client corresponding to the method for identifying the traffic direction can call a compass application program, and certainly, the application client corresponding to the method for identifying the traffic direction can also have the function of the compass application client.
Step S102: and obtaining the arrangement information of the first road of the geographical position of the electronic equipment.
The electronic device may be provided with a GPS (Global Positioning System) module, and the GPS module may be configured to locate a current position of the electronic device, and assuming that the electronic device is currently located on a first road, the GPS module may determine which direction road the first road belongs to, for example, an east-west direction, a south-north direction, and the like. The arrangement information may refer to east-west-north with respect to the geomagnetism.
Step S103: and determining the traffic flow direction close to the first side of the electronic equipment in the first road based on the orientation direction of the electronic equipment and the arrangement information of the first road.
Still taking fig. 2 as an example, if the arrangement information of the first road is the north-south direction and the orientation direction of the electronic device is the east, it may be determined that the electronic device is located on the side a of the first road. And the traffic direction on side a is from north to south. In summary, step S103 may include: determining that the electronic equipment is arranged on a first side of a first road according to the orientation direction and the arrangement information of the first road, wherein the first road comprises two sides, and the corresponding traffic flow directions of the two sides are opposite; and determining the traffic flow direction of the first side according to the first side.
In the method for identifying a traffic flow direction provided in the embodiment of the present invention, based on the obtained orientation direction of the electronic device and the arrangement information of the first road of the geographical location of the electronic device, the traffic flow direction close to the first side of the electronic device in the first road can be determined, so that the purpose of identifying the traffic flow direction of the first side when the user is located on the first side of the road is achieved.
The method for identifying the traffic flow direction provided by the embodiment of the invention can be applied to a plurality of application scenes, and the following application scenes are provided to exemplify the method for identifying the traffic flow direction.
In a first application scenario, a user enters a destination to be reached in an electronic device.
If a user needs to take a vehicle, such as a bus or a taxi, the user can input a destination in a bus inquiry application client, or input the destination in a taxi taking application client (such as a dripping taxi, a dripping express and an easy-to-get special car). The method for identifying the traffic flow direction provided by the embodiment of the invention can be used as a plug-in to be bound with the bus inquiry application client and the taxi taking application client, namely, after the bus inquiry application client and the taxi taking application client are installed in the electronic equipment, the plug-in corresponding to the method for identifying the traffic flow direction is installed.
When a user inputs a destination at a bus inquiry application client or a bus application client, a plug-in corresponding to the method for identifying the traffic flow direction can be triggered.
Or the method for identifying the traffic flow direction corresponds to an independent application client, and the application client corresponding to the method for identifying the traffic flow direction can be mutually called with the bus inquiry application client and the taxi taking application client.
The method for identifying the traffic flow direction provided by the embodiment of the invention can also comprise the following steps: and determining whether to generate prompting information for prompting the user to miss the road direction or not based on the destination set on the electronic equipment and the traffic direction of the first side.
Since the electronic device knows the destination to which the user needs to arrive and the current geographical position of the electronic device, the traffic direction of the vehicle in which the user should be seated can be determined, and the traffic direction of the first side of the first road where the user is currently located is obtained through the steps shown in fig. 1, so that whether the user is in a wrong road direction can be determined. Still taking fig. 2 as an example, the user holds the electronic device to stand on the first side of the road, and the traffic direction of the first side is from north to south. If it is determined that the user needs to take a vehicle from north to south based on the destination set on the electronic device and the current geographic location of the electronic device, the user may not be prompted, or may be prompted that the direction of the road on which the user is standing is correct. Assuming that it is determined that the user needs to take a vehicle from north to south based on the destination set on the electronic device and the current geographic location of the electronic device, the user may be prompted to miss the direction of the road.
In the second application scenario, a user inputs a bus route to be taken in the electronic device.
It can be understood that, when a user needs to query a certain route, the name of the route, for example, 1 route, may be input, and then the driving direction of the bus is selected, so that the stations of the bus of the corresponding route in the corresponding driving direction may be checked. The driving direction of a vehicle is currently identified by the terminal of the bus. The terminal stations of the buses in the same line but different driving directions are different, and if the terminal stations corresponding to the two driving directions of the 1-way bus are respectively a station A and a station B, the direction of driving to the station A can be displayed in an interface after a user inputs the line 1; in the direction of station B ", the user needs to select from. By adopting the method for identifying the traffic flow direction provided by the embodiment of the invention, when the user stands at the first side of the road, the traffic flow direction of the user at the first side of the road can be automatically determined, and after the user inputs 1 route, each station of the 1 route corresponding to the traffic flow direction of the first side can be automatically displayed without the need of the user to drive to the A station direction from 'A station direction'; and one of the directions to the B station is selected, so that the user experience is improved.
Specifically, based on a destination route set on the electronic device, information of each station in the traffic flow direction of the destination route on the first side is determined.
In a third application scenario, a user enters a destination in an electronic device and navigates.
Assume that the user enters a destination in the electronic device and selects a bus to navigate. If the user is not at any bus stop but in the process of finding the bus stop, the method step of identifying the traffic flow direction is not meaningful, because the user is not at any bus stop, even if the traffic flow direction of one side of the road where the user is currently located is obtained, the method step of identifying the traffic flow direction is meaningless.
When a user carries the electronic equipment to find a bus stop along a navigation route, the position of the electronic equipment is constantly changed, and when the position of the electronic equipment is matched with any bus stop, the step of identifying the traffic flow direction is executed.
As shown in fig. 4, a flowchart of a preferred implementation manner of the method for identifying a traffic flow direction according to the embodiment of the present invention is shown, where the method includes:
step S401: the destination is set.
Step S402: generating navigation information based on the destination; the navigation information includes at least one node.
The node can be a bus stop, and if the mode of taking the bus is selected for navigation, the navigation information comprises at least one bus stop.
Step S403: monitoring a change in a location of the electronic device.
Step S404: and when the position change of the electronic equipment is matched with the first node in the at least one node, executing the step of identifying the traffic flow direction.
In a fourth application scenario, in different time periods, the electronic device is on different sides of the first road.
For example, a user may get on and off a bus, and may get on the same vehicle during work and off work, and the user may stand on different sides of a road because the user's route is from home to company during work and the user's route is from company to home during off work, i.e., the driving direction of the vehicle to be taken is different.
Assuming that both sides of the first road are referred to as an a-side and a B-side, it is detected that the electronic device is on the a-side of the first road every morning (e.g., 7 o 'clock and half to 9 o' clock) and the electronic device is on the B-side of the first road every afternoon (e.g., 5 o 'clock and half to 6 o' clock) by the method of recognizing the traffic direction. When the detected times are more than or equal to the preset times and the current time is detected to be in the morning, the electronic equipment can be directly determined to be on the side A of the first road; when the current time is detected to be afternoon, the electronic device can be directly determined to be on the side B of the first road. The specific method comprises the following steps:
recording a number of times that the electronic device is on a first side of the first road during a first time period (e.g., 7 to 9 am, or 5 to 6 pm);
and when the times are more than or equal to the preset times and the current time belongs to the first time period, determining that the electronic equipment is positioned on the first side of the first road.
In a fifth application scenario, when the user sets that the electronic device determined by the method for identifying the traffic direction is always on the side a of the first road when the user needs to reach the destination a, or when the user is riding in a vehicle on the route a, the electronic device determined by the method for identifying the traffic direction is always on the side a of the first road. When it is detected that the destination (or target line) set on the electronic device is destination a (or target line a), it can be directly determined that the electronic device is on the a side of the first road. The specific method comprises the following steps:
when the destination set on the electronic device is a first destination (for example, destination a) or the target line is a first target line (for example, destination line a), determining a first side of a first road corresponding to the first destination or the first target line as a first side of a first road where the electronic device is currently located.
When a user carries the electronic device to face a road, the electronic device may be perpendicular to the road, such as the direction of the solid arrow corresponding to the electronic device shown in fig. 2 and 3. It will be appreciated that the user may not always keep the electronic device perpendicular to the road, for example in fig. 2 the user may not always keep the electronic device facing the east direction, but may face the south-east direction. Therefore, a first preset range is set, namely when the included angle between the electronic equipment and the road belongs to the first preset range, the electronic equipment is determined to be on the first side of the road.
Specifically, determining that the electronic device is located on the first side of the first road according to the facing direction and the arrangement information of the first road may include:
and calculating an included angle between the electronic equipment and the first road according to the orientation direction and the arrangement information of the first road.
And when the included angle belongs to a first preset range, determining that the electronic equipment is positioned on the first side of the first road.
The first predetermined range may be determined according to actual situations, and the embodiment of the present invention is not particularly limited thereto.
A coordinate system may be set in the electronic device in advance, for example, south, east, west, and north as shown by dotted lines in fig. 2, i.e., the east-west direction is taken as the x-axis and the south-north direction is taken as the y-axis. The coordinate system may be changed in real time according to the arrangement information of the roads. That is, a coordinate system is established in real time according to the arrangement information of the roads, for example, if the road is in the north-south direction, the north-south direction is taken as the y axis (or the x axis), if the road is in the east-west direction, the east-west direction is taken as the y axis (or the x axis), if the road is in the south-east direction to the north-west direction, the south-east direction to the north-west direction is taken as the y axis (or the x axis), and the direction perpendicular to the y axis is taken as the x axis (or the y axis).
The following description will be given by way of example of the division into 360 ° shown in the enlarged view shown in fig. 2. Assume that the north-south direction in fig. 2 is the y-axis and the east-west direction is the x-axis. The electronic device in fig. 2 is at an angle of 90 ° to the road. The electronic device in fig. 3 is at an angle of 180 ° to the road.
Taking fig. 2 as an example, the first preset range may include: 30, 90, and 330, 360. Taking fig. 3 as an example, the first preset range may include: [135 °, 225 ° ].
In the embodiment of the present invention, the first side refers to a side of a road where the electronic device is located, where the road has two sides, for example, a side a and a side B, where the first side is the side a if the electronic device is located on the side a of the road, and the first side is the side B if the electronic device is located on the side B of the road. Assume that side a corresponds to the predetermined range a and side B corresponds to the predetermined range B. That is, when the electronic device is located at the side a, the first preset range corresponds to the preset range a, and when the electronic device is located at the side B, the first preset range corresponds to the preset range B.
It can be understood that different users have different habits in using the electronic device, for example, some users may set the electronic device to be perpendicular to the road when needing to use the electronic device to identify the traffic direction, that is, the change of the included angle between the electronic device and the road is very small; when some users need to use the electronic equipment to identify the traffic flow direction, the included angle between the electronic equipment and the road changes greatly, at the moment, the electronic equipment can automatically modify a first preset range according to the use habits of the users, and the specific method comprises the following steps:
recording the correct times and the wrong times of the traffic flow direction of the first side, which are determined by the step of identifying the traffic flow direction and fed back by the user; calculating the accuracy of the traffic flow direction of the first side determined by the step of identifying the traffic flow direction according to the correct times and the wrong times; and when the accuracy is smaller than or equal to a first preset value, adjusting the first preset range according to a preset rule.
The preset rule comprises the step of reducing the first preset range by taking the angle of the electronic equipment vertically corresponding to the first road as the center.
Fig. 2 shows that an angle of the electronic device perpendicular to the first road is 90 °, and as shown in fig. 5, the first preset range reduction diagram provided by the embodiment of the present invention is shown.
In fig. 5, the black arrow indicates the facing direction of the electronic device, and when the included angle calculated based on the facing direction of the electronic device and the arrangement information of the first road belongs to the first preset range 51, the electronic device is determined to be on the first side of the road. If the accuracy of the traffic flow direction of the first side determined according to the first preset range fed back by the user is low, the first preset range may be narrowed, for example, the first preset range 51 is narrowed to a first preset range 52, and the first preset range 52 is an included angle between two dashed arrows.
There are various ways to trigger the method steps for identifying the traffic flow direction provided in the above embodiments, and the embodiments of the present invention provide, but are not limited to, the following.
First, the electronic device is in a lighted state.
And secondly, the user starts an application client corresponding to the method for identifying the traffic flow direction in the electronic equipment, namely the application client is started, or the started application client displays a man-machine interaction interface, and the user can trigger the method for identifying the traffic flow direction through the man-machine interaction interface.
And thirdly, detecting that the current position of the user is the position of a bus stop.
Fourth, the electronic device detects that the user never reaches the current geographic location, or reaches the current geographic location less frequently. The method comprises the following specific steps:
and recording the times of the electronic equipment passing through each geographic position.
Determining the first times of the electronic equipment passing through the current geographic position according to the recorded times of the electronic equipment passing through each geographic position;
and when the first time is less than a preset threshold value, triggering and executing the method step of identifying the traffic flow direction.
The preset threshold may be determined according to actual conditions, and may be, for example, 1, 2, …, …, and so on.
The electronic device can obtain the geographical position that the user carried the electronic device, namely, the geographical positions that the user has gone through, through the navigation application client, and the familiarity degree of the user with the current geographical position can be determined according to whether the user has gone through the current geographical position or the number of times of going. If the user is very familiar with the current geographic location, the user knows on which side of the road the user should sit, and the method for identifying the traffic direction provided by the embodiment of the present invention may not be needed. If the user has gone too few times or not at all, the user should be unfamiliar with the current geographic location, and the user may not know which side the user should be seated on, at which point the steps of the method of identifying the direction of traffic flow need to be triggered.
An embodiment of the present invention further provides an electronic device corresponding to the method for identifying a traffic direction, and details of steps executed by a processor in the electronic device may refer to descriptions of corresponding steps in the method for identifying a traffic direction, which are not specifically limited herein, as shown in fig. 6, which is a schematic structural diagram of an electronic device provided in an embodiment of the present invention, and the electronic device includes:
a memory 61 for storing a program;
the memory 73 may comprise a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
A processor 62 for executing the program for:
acquiring the orientation direction of the electronic equipment in a lighting state of the electronic equipment;
obtaining arrangement information of a first road of a geographical position where the electronic equipment is located;
determining a traffic flow direction close to a first side of the electronic equipment in a first road based on the orientation direction of the electronic equipment and the arrangement information of the first road;
a communication bus 63 for the memory 61 to communicate with the processor 62.
The processor 71 may be a central processing unit CPU or an ASIC specific integrated circuit
(Application Specific Integrated Circuit) or one or more Integrated circuits configured to implement embodiments of the invention.
Optionally, the processor is further configured to:
whether to generate prompting information for prompting the user to miss the road direction is determined based on the destination set on the electronic equipment and the traffic flow direction of the first side.
Optionally, the processor is further configured to:
setting a destination;
generating navigation information based on the destination; the navigation information comprises at least one node;
monitoring a change in location of the electronic device;
and when the position change of the electronic equipment is matched with the first node in the at least one node, executing the step of identifying the traffic flow direction.
Optionally, when obtaining the orientation direction of the electronic device in the lighting state, the processor is specifically configured to:
determining the orientation direction of the electronic equipment relative to the geomagnetism under the current lighting state;
when determining, based on the orientation direction of the electronic device and the arrangement information of the first road, a traffic direction on the first road near the first side of the electronic device, the processor is specifically configured to:
determining that the electronic equipment is arranged on a first side of the first road according to the orientation direction and the arrangement information of the first road, wherein the first road comprises two sides, and the traffic flow directions corresponding to the two sides of the first road are opposite;
and determining the traffic flow direction of the first side according to the first side.
Optionally, when determining that the electronic device is located on the first side of the first road according to the facing direction and the arrangement information of the first road, the processor is specifically configured to:
calculating an included angle between the electronic equipment and the first road according to the orientation direction and the arrangement information of the first road;
and when the included angle belongs to a first preset range, determining that the electronic equipment is positioned on the first side of the first road.
In one embodiment of the application, the orientation direction of the electronic equipment in a lighting state is obtained through a sensor such as a compass of the electronic equipment; the arrangement information of the first road of the geographical position of the electronic equipment is obtained based on the geographical position, namely, the map information can determine whether the first road of the geographical position is east-west or south-north; and finally, determining the traffic flow direction close to the first side of the electronic equipment in the first road based on the orientation direction of the electronic equipment and the arrangement information of the first road.
In another embodiment of the present application, in bus navigation, it is determined whether the user is at a station in the wrong direction based on the final destination and the direction of the traffic stream on the side closest to the user (i.e., the user characterized by the electronic device being in the illuminated state).
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A method of identifying a direction of traffic, comprising:
acquiring the orientation direction of the electronic equipment in a lighting state of the electronic equipment;
obtaining arrangement information of a first road of a geographical position where the electronic equipment is located;
and determining the traffic flow direction close to the first side of the electronic equipment in the first road based on the orientation direction of the electronic equipment and the arrangement information of the first road.
2. The method of identifying a direction of traffic flow of claim 1, further comprising:
whether to generate prompting information for prompting the user to miss the road direction is determined based on the destination set on the electronic equipment and the traffic flow direction of the first side.
3. The method of identifying a direction of traffic flow of claim 1, further comprising:
setting a destination;
generating navigation information based on the destination; the navigation information comprises at least one node;
monitoring a change in location of the electronic device;
and when the position change of the electronic equipment is matched with the first node in the at least one node, executing the step of identifying the traffic flow direction.
4. The method for identifying the traffic direction according to claim 1, wherein the acquiring the orientation direction of the electronic device in the lighting state comprises:
determining the orientation direction of the electronic equipment relative to the geomagnetism under the current lighting state;
the determining, based on the orientation direction of the electronic device and the arrangement information of the first road, a traffic direction in the first road near the first side of the electronic device includes:
determining that the electronic equipment is arranged on a first side of the first road according to the orientation direction and the arrangement information of the first road, wherein the first road comprises two sides, and the traffic flow directions corresponding to the two sides of the first road are opposite;
and determining the traffic flow direction of the first side according to the first side.
5. The method for identifying the traffic direction according to claim 4, wherein the determining that the electronic device is on the first side of the first road according to the facing direction and the arrangement information of the first road comprises:
calculating an included angle between the electronic equipment and the first road according to the orientation direction and the arrangement information of the first road;
and when the included angle belongs to a first preset range, determining that the electronic equipment is positioned on the first side of the first road.
6. An electronic device, comprising:
a memory for storing a program;
a processor for executing the program, the program for:
acquiring the orientation direction of the electronic equipment in a lighting state of the electronic equipment;
obtaining arrangement information of a first road of a geographical position where the electronic equipment is located;
determining a traffic flow direction close to a first side of the electronic equipment in a first road based on the orientation direction of the electronic equipment and the arrangement information of the first road;
a communication bus for the memory to communicate with the processor.
7. The electronic device of claim 6, wherein the processor is further configured to:
whether to generate prompting information for prompting the user to miss the road direction is determined based on the destination set on the electronic equipment and the traffic flow direction of the first side.
8. The electronic device of claim 6, wherein the processor is further configured to:
setting a destination;
generating navigation information based on the destination; the navigation information comprises at least one node;
monitoring a change in location of the electronic device;
and when the position change of the electronic equipment is matched with the first node in the at least one node, executing the step of identifying the traffic flow direction.
9. The electronic device according to claim 6, wherein the processor, when obtaining the orientation direction of the electronic device in the lighting state of the electronic device, is specifically configured to:
determining the orientation direction of the electronic equipment relative to the geomagnetism under the current lighting state;
when determining, based on the orientation direction of the electronic device and the arrangement information of the first road, a traffic direction on the first road near the first side of the electronic device, the processor is specifically configured to:
determining that the electronic equipment is arranged on a first side of the first road according to the orientation direction and the arrangement information of the first road, wherein the first road comprises two sides, and the traffic flow directions corresponding to the two sides of the first road are opposite;
and determining the traffic flow direction of the first side according to the first side.
10. The electronic device of claim 9, wherein the processor, when determining that the electronic device is on the first side of the first road according to the facing direction and the arrangement information of the first road, is specifically configured to:
calculating an included angle between the electronic equipment and the first road according to the orientation direction and the arrangement information of the first road;
and when the included angle belongs to a first preset range, determining that the electronic equipment is positioned on the first side of the first road.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710166403.7A CN106683419B (en) | 2017-03-20 | 2017-03-20 | Method for identifying traffic flow direction and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710166403.7A CN106683419B (en) | 2017-03-20 | 2017-03-20 | Method for identifying traffic flow direction and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106683419A CN106683419A (en) | 2017-05-17 |
CN106683419B true CN106683419B (en) | 2020-03-20 |
Family
ID=58829231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710166403.7A Active CN106683419B (en) | 2017-03-20 | 2017-03-20 | Method for identifying traffic flow direction and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106683419B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109781131A (en) * | 2019-03-14 | 2019-05-21 | 百度在线网络技术(北京)有限公司 | Navigate abductive approach, device, navigator and readable storage medium storing program for executing |
CN115311871B (en) * | 2022-08-12 | 2023-09-05 | 深圳市能信安科技股份有限公司 | Method, device, system, equipment and storage medium for judging vehicle running direction |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1755329A (en) * | 2004-09-29 | 2006-04-05 | 浙江工业大学 | Radio frequency card type electronic navigation device |
CN103900593A (en) * | 2012-12-26 | 2014-07-02 | 华为技术有限公司 | Transportation navigation method and device thereof |
CN103994772A (en) * | 2014-05-29 | 2014-08-20 | 东莞市泰斗微电子科技有限公司 | Bus station prompting method and system based on location-based service (LBS) |
CN104076953A (en) * | 2013-03-26 | 2014-10-01 | 联想(北京)有限公司 | Input device and information processing method |
CN104949671A (en) * | 2014-03-28 | 2015-09-30 | 联想(北京)有限公司 | Electronic equipment and information processing method |
CN105430325A (en) * | 2015-11-03 | 2016-03-23 | 苏交科集团股份有限公司 | Method and system for positioning traffic flow direction rapidly in road monitoring video image |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080114530A1 (en) * | 2006-10-27 | 2008-05-15 | Petrisor Gregory C | Thin client intelligent transportation system and method for use therein |
EP2118810B1 (en) * | 2007-02-05 | 2012-08-15 | Andrew Corporation | System and method for optimizing location estimate of mobile unit |
-
2017
- 2017-03-20 CN CN201710166403.7A patent/CN106683419B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1755329A (en) * | 2004-09-29 | 2006-04-05 | 浙江工业大学 | Radio frequency card type electronic navigation device |
CN103900593A (en) * | 2012-12-26 | 2014-07-02 | 华为技术有限公司 | Transportation navigation method and device thereof |
CN104076953A (en) * | 2013-03-26 | 2014-10-01 | 联想(北京)有限公司 | Input device and information processing method |
CN104949671A (en) * | 2014-03-28 | 2015-09-30 | 联想(北京)有限公司 | Electronic equipment and information processing method |
CN103994772A (en) * | 2014-05-29 | 2014-08-20 | 东莞市泰斗微电子科技有限公司 | Bus station prompting method and system based on location-based service (LBS) |
CN105430325A (en) * | 2015-11-03 | 2016-03-23 | 苏交科集团股份有限公司 | Method and system for positioning traffic flow direction rapidly in road monitoring video image |
Also Published As
Publication number | Publication date |
---|---|
CN106683419A (en) | 2017-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US12095887B2 (en) | Navigation using proximity information | |
CN105333880A (en) | Communication terminal and prompting method and device | |
US20170265040A1 (en) | Verification of pickup times in real-time ride-sharing feeds | |
CN108061875B (en) | Vehicle positioning based on wireless local area network nodes | |
KR20110084498A (en) | Data acquisition apparatus, data acquisition system and method of acquiring data | |
CN108805320B (en) | Information display method and device | |
CN105225468A (en) | A kind of method and device determining position | |
CN110140122B (en) | System and method for displaying map information | |
US20200126123A1 (en) | Advance notification of convenient purchase points | |
CN103295393A (en) | Taxi appointment system based on smart phone | |
CN103278155A (en) | Navigation method and mobile navigation apparatus | |
CN106683419B (en) | Method for identifying traffic flow direction and electronic equipment | |
US20140058659A1 (en) | Method for processing electronically stored calendar data in a computer-assisted manner | |
CN105827870A (en) | Prompting method, prompting preprocessing method, prompting device and prompting preprocessing device | |
US11620584B2 (en) | Server, information processing method, and non- transitory computer-readable storage medium storing a program | |
CN107027169B (en) | Method and device for determining user position information | |
US20170286924A1 (en) | Event information presenting device and event information presenting method | |
JP4918919B2 (en) | Navigation system, group management method, and group management program | |
US20220114540A1 (en) | Automated Equipment Tracking for Service Technicians | |
CN110785626A (en) | Travel mode recommendation method and device, storage medium and terminal | |
JP2008304261A (en) | In-vehicle navigation apparatus | |
US20190303419A1 (en) | Onboard Navigation Device and Spot Search Device for use with the Onboard Navigation Device | |
CN111613083A (en) | Arrival reminding method and device, electronic equipment and storage medium | |
CN111102990A (en) | Position determination method, device and equipment | |
JP7380713B2 (en) | Driving support method, driving support system, and driving support device |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |