WO2020034625A1 - Route recommendation method and apparatus, electronic device and storage medium - Google Patents

Route recommendation method and apparatus, electronic device and storage medium Download PDF

Info

Publication number
WO2020034625A1
WO2020034625A1 PCT/CN2019/077364 CN2019077364W WO2020034625A1 WO 2020034625 A1 WO2020034625 A1 WO 2020034625A1 CN 2019077364 W CN2019077364 W CN 2019077364W WO 2020034625 A1 WO2020034625 A1 WO 2020034625A1
Authority
WO
WIPO (PCT)
Prior art keywords
route
range
average speed
determining
condition information
Prior art date
Application number
PCT/CN2019/077364
Other languages
French (fr)
Chinese (zh)
Inventor
沈国仕
Original Assignee
深圳壹账通智能科技有限公司
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 深圳壹账通智能科技有限公司 filed Critical 深圳壹账通智能科技有限公司
Publication of WO2020034625A1 publication Critical patent/WO2020034625A1/en

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/26Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 specially adapted for navigation in a road network
    • G01C21/34Route searching; Route guidance
    • G01C21/3453Special cost functions, i.e. other than distance or default speed limit of road segments
    • G01C21/3492Special cost functions, i.e. other than distance or default speed limit of road segments employing speed data or traffic data, e.g. real-time or historical

Definitions

  • the present application relates to the field of intelligent navigation technology, and in particular, to a route recommendation method, an electronic device, and a storage medium.
  • the aforementioned manual selection method is likely to cause road congestion, which greatly limits the traffic flow. For example, during the morning and evening peaks, many users have to travel between the downtown area and the suburbs. If a large number of users choose the shortest route at the same time, road congestion will inevitably be caused.
  • a route recommendation method includes:
  • a target route is determined from the selectable routes based on the average speed and the distance.
  • a route recommendation device includes:
  • An obtaining unit configured to obtain the current position of the target vehicle
  • a determining unit configured to determine at least one route centered on the current position
  • the determining unit is further configured to determine road condition information of the at least one route
  • a screening unit configured to filter an optional route from the at least one route according to the traffic condition information of the at least one route
  • the obtaining unit is further configured to obtain an average speed of a vehicle on each selectable route from the road condition information of the at least one route;
  • the obtaining unit is further configured to obtain a distance of each selectable route
  • the determining unit is further configured to determine a target route from the selectable routes according to the average speed and the distance.
  • An electronic device includes:
  • a memory that stores at least one instruction
  • a processor that executes instructions stored in the memory to implement the route recommendation method.
  • a non-volatile readable storage medium stores at least one instruction therein, the at least one instruction is executed by a processor in an electronic device to implement the route recommendation method.
  • the present application can accurately determine at least one route centering on the current position, and further select optional routes with better road condition information based on the road condition information of the at least one route, thereby improving traffic Safety, finally combining the average speed of the vehicles on each optional route and the distance of each optional route, determine the target route from the optional routes, and perform the layer-by-layer screening to recommend the optimal driving route for the user, Better user experience.
  • FIG. 1 is a flowchart of a preferred embodiment of a route recommendation method of the present application.
  • FIG. 2 is a functional block diagram of a preferred embodiment of the route recommendation device of the present application.
  • FIG. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the route recommendation method of the present application.
  • FIG. 1 it is a flowchart of a preferred embodiment of the route recommendation method of the present application. According to different requirements, the order of steps in this flowchart can be changed, and some steps can be omitted.
  • the route recommendation method is applied to one or more electronic devices.
  • the electronic device is a device capable of automatically performing numerical calculation and / or information processing in accordance with an instruction set or stored in advance.
  • the hardware includes but is not limited to Microprocessors, Application Specific Integrated Circuits (ASICs), Programmable Gate Arrays (Field-Programmable Gate Arrays, FPGAs), Digital Processors (Digital Signal Processors, DSPs), embedded devices, etc.
  • the electronic device may be any type of electronic product that can perform human-computer interaction with a user, for example, a personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game console, or an interactive network TV ( Internet Protocol (IPTV), intelligent wearable devices, etc.
  • a personal computer for example, a personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game console, or an interactive network TV ( Internet Protocol (IPTV), intelligent wearable devices, etc.
  • PDA Personal Digital Assistant
  • game console for example, a game console, or an interactive network TV (Internet Protocol (IPTV), intelligent wearable devices, etc.
  • IPTV Internet Protocol
  • the electronic device may further include a network device and / or a user device.
  • the network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on Cloud Computing.
  • the network where the electronic device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
  • VPN Virtual Private Network
  • the electronic device obtains a current position of a target vehicle.
  • the acquiring the current position of the target vehicle by the electronic device includes, but is not limited to, one or more of the following situations:
  • the electronic device obtains a current position of the target vehicle through a GPS (Global Positioning System, Global Positioning System) of the target vehicle.
  • GPS Global Positioning System, Global Positioning System
  • the electronic device acquires the current position of the target vehicle through an artificial intelligence sensor installed on the target vehicle.
  • the electronic device may also obtain the current position of the target vehicle in other ways, which is not limited in this application.
  • the electronic device may also retrieve a surveillance video, identify the target vehicle from the surveillance video, and further determine the current position of the target vehicle.
  • the electronic device determines at least one route centered on the current position.
  • the current position refers to a current position of the target vehicle.
  • the electronic device is centered on the current position, and determining at least one route includes:
  • the electronic device obtains at least one intersection in a configuration range with the current position as a center, and the electronic device determines a shortest path from the current position to the at least one intersection, and uses the shortest path to the at least one intersection Configured for the at least one route.
  • the electronic device obtains at least one intersection within a configuration range (for example, within a fan-shaped range with the current position as the center, a radius of 1000 meters, and an angle of 120 °) with the current position as the center: A, intersection B, and intersection C.
  • the electronic device determines that the shortest paths from the current location to the at least one intersection are: path X, path Y, and path Z, and the electronic device converts the path X, path Y and path Z are configured as the at least one route.
  • the electronic device determining the shortest path from the current location to the at least one intersection includes:
  • the electronic device uses a Dijkstra algorithm to determine a shortest path from the current location to the at least one intersection.
  • the determining, by the electronic device, a shortest path from the current position to the at least one intersection using Dijkstra's algorithm includes:
  • the current position of the target vehicle be s
  • the at least one intersection be v
  • the intersection that can be directly reached is m.
  • the electronic device can replace the current value in d [v] with d [u] + w (u, v).
  • the electronic device maintains two vertex sets: a set S and a set Q.
  • the set S holds all known d [v] values, that is, the vertices that are the shortest path values, and the set Q retains all other vertices.
  • the initial state of the set S is empty.
  • a vertex is moved from the set Q to the set S.
  • the selected vertex has the smallest d [v] value in the set Q. vertex.
  • the electronic device expands each external edge (u, v) until the set S includes all of the set Q vertex.
  • the electronic device can determine the shortest path from the current location to the at least one intersection, and configure the shortest path from the at least one intersection to the at least one route.
  • the calculation process is concise and can Get the optimal solution.
  • the electronic device determines road condition information of the at least one route.
  • the road condition information includes, but is not limited to, whether a route is congested, a road surface condition, and the like.
  • the electronic device determining road condition information of the at least one route includes:
  • the electronic device calculates an average speed of vehicles on the at least one route within a preset time period, and the electronic device retrieves a configured speed range of the vehicles on the at least one route, and based on the average speed and the configured speed A range to determine whether the at least one route is congested, and the electronic device retrieves a monitoring video of the at least one route, and determines a pavement condition of the at least one route according to the monitoring video.
  • the electronic device in the at least one route, the average speed of the vehicle on the path X is 15 km / h, and the electronic device can be obtained from the transportation department ( Or other related servers) to obtain the configured speed range of the vehicles on the at least one route, and determine whether the path X is congested according to the average speed of 15 km / h and the configured speed range.
  • a predetermined time period for example, 5 min
  • the electronic device can be obtained from the transportation department ( Or other related servers) to obtain the configured speed range of the vehicles on the at least one route, and determine whether the path X is congested according to the average speed of 15 km / h and the configured speed range.
  • the electronic device retrieves the monitoring video of the path X, and determines that the path X is under construction according to the monitoring video.
  • the application does not limit the manner in which the electronic device retrieves the surveillance video of the at least one route.
  • the electronic device may retrieve a surveillance video of the at least one route from a transportation department (or other related server).
  • the electronic device determining whether the at least one route is congested according to the average speed and the configured vehicle speed range includes:
  • the electronic device obtains a first range, a second range, and a third range from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and the second range The value in is smaller than the value in the third range.
  • the electronic device determines that the at least one route is in a congested state; or when the average speed belongs to the second range, the electronic device Determining that the at least one route is in a slow state; or, when the average speed belongs to the third range, the electronic device determines that the at least one route is in a clear state.
  • the electronic device obtains from the configured vehicle speed range that the first range is 0-20 km / h, the second range is 20-40 km / h, and the third range is 40 km / h Above the hour, if the average speed of the vehicle on the path X is 15 km / h, since 15 km / h belongs to the first range of 0-20 km / h, the electronic device determines that the path X is in a congestion status.
  • the electronic device can accurately determine road condition information of the at least one route, and prepare for subsequent determination of a target route.
  • the electronic device selects an optional route from the at least one route according to the road condition information of the at least one route.
  • the selectable route includes a set of routes that the electronic device can select.
  • the electronic device filtering the selectable routes from the at least one route according to the road condition information of the at least one route includes:
  • the electronic device obtains the pavement condition of the at least one route from the road condition information, and determines from the at least one route that the pavement condition is an unselectable route for construction or damage, and the electronic device obtains information from the at least one The non-selectable route is removed from the route to obtain the optional route.
  • the path X, the path Y, and the path Z are the configured at least one route, and if the road surface condition of the path Y is under construction, the electronic device converts the path X and the path Z is determined as the optional route.
  • the number of selectable routes is greater than or equal to one and less than or equal to the number of routes of the at least one route.
  • the electronic device determines the route with the pavement condition as construction or damaged as the non-selectable route.
  • the electronic device obtains an average speed of a vehicle on each selectable route from the road condition information of the at least one route.
  • the electronic device since the electronic device has calculated the average speed of the vehicles on the at least one route during the determination of the road condition information of the at least one route, the electronic device may The average speed of the vehicles on each selectable route is directly obtained from the average speed of the vehicles on the at least one route.
  • the electronic device obtains a distance of each selectable route.
  • the manner in which the electronic device obtains the distance of each selectable route may include many types, such as obtaining from a configuration server, etc., which is not limited in the present application.
  • the electronic device determines a target route from the selectable routes according to the average speed and the distance.
  • the target route includes an optimal route determined by the electronic device.
  • the electronic device determining a target route from the selectable routes according to the average speed and the distance includes:
  • the electronic device calculates the transit time of each selectable route according to the average speed and the distance, and the electronic device sorts the transit time and ranks the transit time at an optional position at a preset position.
  • a route is determined as the target route.
  • the electronic device preferentially recommends the route with the shortest travel time as the target route, so as to save the travel time of the user, that is, when the electronic device increases the travel time as long as possible
  • the electronic device determines the optional route in which the travel time is ranked last as the target route; or when the electronic device determines the travel time as short to long
  • the electronic device determines the selectable route in which the travel time is first ranked as the target route.
  • the method further includes:
  • the electronic device Obtaining, by the electronic device, a first distance from the current location to a first intersection of the target route, and when the first distance is less than or equal to a preset distance, the electronic device prompts a user of the target vehicle to switch Driving direction.
  • the first distance may be customized and configured according to actual conditions, which is not limited in this application.
  • the electronic device can promptly notify the user to be ready to switch driving directions, bring a better user experience to the user, and have a higher safety factor.
  • the present application can obtain the current position of the target vehicle; determine at least one route centering on the current location; determine the road condition information of the at least one route; and from the road condition information of the at least one route, Select an alternative route from the at least one route; obtain the average speed of the vehicle on each alternative route from the road condition information of the at least one route; obtain the distance of each alternative route; The distance is determined, and a target route is determined from the selectable routes. Therefore, the present application can recommend the optimal driving route for the user by performing layer-by-layer screening, and the user experience is better.
  • the route recommendation device 11 includes an obtaining unit 110, a determining unit 111, a screening unit 112, and a prompting unit 113.
  • the module / unit referred to in the present application refers to a series of computer-readable instruction segments that can be executed by the processor 13 and can perform fixed functions, and is stored in the memory 12. In this embodiment, functions of each module / unit will be described in detail in subsequent embodiments.
  • the acquisition unit 110 acquires the current position of the target vehicle.
  • the acquiring unit 110 acquiring the current position of the target vehicle includes, but is not limited to, one or more of the following situations:
  • the acquisition unit 110 acquires the current position of the target vehicle through the GPS of the target vehicle.
  • the acquisition unit 110 acquires the current position of the target vehicle through an artificial intelligence sensor installed on the target vehicle.
  • the obtaining unit 110 may also obtain the current position of the target vehicle in other ways, which is not limited in this application.
  • the obtaining unit 110 may also retrieve a monitoring video, identify the target vehicle from the monitoring video, and further determine the current position of the target vehicle.
  • the determining unit 111 determines at least one route with the current position as a center.
  • the current position refers to a current position of the target vehicle.
  • the determining unit 111 centers on the current position, and determines at least one route includes:
  • the determining unit 111 obtains at least one intersection within a configuration range with the current position as a center, and the determining unit 111 determines a shortest path from the current position to the at least one intersection, and The shortest path is configured as the at least one route.
  • the determining unit 111 obtains at least one intersection within a configuration range (for example, within a sector range with the current position as the center, a radius of 1000 meters, and an angle of 120 °) with the current position as the center: Intersection A, intersection B, and intersection C, and the determining unit 111 determines that the shortest paths from the current position to the at least one intersection are: path X, path Y, and path Z, and the electronic device converts the path X
  • the path Y and the path Z are configured as the at least one route.
  • the determining unit 111 determines the shortest path from the current location to the at least one intersection includes:
  • the determining unit 111 uses a Dijkstra algorithm to determine the shortest path from the current position to the at least one intersection.
  • the determining unit 111 uses Dijkstra's algorithm to determine the shortest path from the current location to the at least one intersection includes:
  • the current position of the target vehicle be s
  • the at least one intersection be v
  • the intersection that can be directly reached is m.
  • the determination unit 111 may replace the current value in d [v] with d [u] + w (u, v).
  • the determining unit 111 maintains two vertex sets: a set S and a set Q.
  • the set S holds all known d [v] values, that is, the vertices that are the shortest path values, and the set Q retains all other vertices.
  • the initial state of the set S is empty.
  • a vertex is moved from the set Q to the set S.
  • the selected vertex has the smallest d [v] value in the set Q. vertex.
  • the determining unit 111 expands each circumscribed edge (u, v) until the set S includes the set Q All vertices.
  • the determining unit 111 can determine the shortest path from the current location to the at least one intersection, and configure the shortest path of the at least one intersection as the at least one route.
  • the calculation process is concise, and Can get the optimal solution.
  • the determining unit 111 determines road condition information of the at least one route.
  • the road condition information includes, but is not limited to, whether a route is congested, a road surface condition, and the like.
  • the determining unit 111 determines the road condition information of the at least one route includes:
  • the determining unit 111 calculates an average speed of the vehicles on the at least one route within a preset time period, and the determining unit 111 retrieves a configured speed range of the vehicles on the at least one route, and calculates the average speed and the The vehicle speed range is configured to determine whether the at least one route is congested, and the determining unit 111 retrieves a monitoring video of the at least one route, and determines a road surface condition of the at least one route according to the monitoring video.
  • the determining unit 111 obtains a preset time length (for example, 5 min).
  • the average speed of the vehicle on the path X is 15 km / h.
  • the department (or other related server) obtains the configured speed range of the vehicles on the at least one route, and determines whether the path X is congested according to the average speed of 15 km / h and the configured speed range.
  • the determining unit 111 retrieves the monitoring video of the path X, and determines that the path X is under construction according to the monitoring video.
  • the application does not limit the manner in which the determining unit 111 retrieves the surveillance video of the at least one route.
  • the determining unit 111 may retrieve a surveillance video of the at least one route from a transportation department (or other related server).
  • the determining unit 111 determines whether the at least one route is congested according to the average speed and the configured vehicle speed range includes:
  • the determining unit 111 obtains a first range, a second range, and a third range from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and the second The value in the range is smaller than the value in the third range.
  • the determination unit 111 determines that the at least one route is in a congested state; or when the average speed belongs to the second range, the determination The unit 111 determines that the at least one route is in a slow-moving state; or when the average speed belongs to the third range, the determining unit 111 determines that the at least one route is in a smooth state.
  • the determining unit 111 obtains from the configured vehicle speed range that the first range is 0-20 km / h, the second range is 20-40 km / h, and the third range is 40 km Above / hour, if the average speed of the vehicle on the path X is 15 km / h, since 15 km / h belongs to the first range of 0-20 km / h, the determining unit 111 determines the path X Congested.
  • the determining unit 111 can accurately determine road condition information of the at least one route, and prepare for subsequent determination of a target route.
  • the screening unit 112 filters out selectable routes from the at least one route according to the road condition information of the at least one route.
  • the selectable route includes a set of routes that the electronic device can select.
  • the screening unit 112 filters the optional routes from the at least one route according to the traffic condition information of the at least one route including:
  • the screening unit 112 obtains the pavement condition of the at least one route from the road condition information, and determines from the at least one route that the pavement condition is an unselectable route for construction or damage. The non-selectable route is removed from at least one route to obtain the optional route.
  • the path X, the path Y, and the path Z are the configured at least one route. If the road surface condition of the path Y is under construction, the screening unit 112 divides the path X and the path X The path Z is determined as the optional route.
  • the number of selectable routes is greater than or equal to one and less than or equal to the number of routes of the at least one route.
  • the screening unit 112 determines the route with the pavement condition as construction or damaged as the non-selectable route.
  • the obtaining unit 110 obtains an average speed of a vehicle on each selectable route from the road condition information of the at least one route.
  • the obtaining unit 110 since the obtaining unit 110 has calculated the average speed of the vehicles on the at least one route in the process of determining road condition information of the at least one route, the obtaining unit 110 110.
  • the average speed of the vehicles on each selectable route may be directly obtained from the average speed of the vehicles on the at least one route.
  • the obtaining unit 110 obtains a distance of each selectable route.
  • the manner in which the obtaining unit 110 obtains the distance of each selectable route may include many types, such as obtaining from a configuration server, and the like is not limited in this application.
  • the determining unit 111 determines a target route from the selectable routes according to the average speed and the distance.
  • the target route includes an optimal route determined by the electronic device.
  • the determining unit 111 determines the target route from the selectable routes according to the average speed and the distance, including:
  • the determining unit 111 calculates the transit time of each selectable route according to the average speed and the distance.
  • the determining unit 111 sorts the transit times and ranks the transit times at a preset position.
  • the selectable route is determined as the target route.
  • the determination unit 111 uses the route with the shortest recommended travel time as the target route, so as to save the travel time of the user, that is, when the determination unit 111 uses the travel time as When sorting in a long-to-short order, the determining unit 111 determines the optional route with the last travel time as the target route; or when the determining unit 111 sorts the travel time according to When there is a short-to-long order, the determining unit 111 determines the selectable route with the first travel time as the target route.
  • the method further includes:
  • the obtaining unit 110 obtains a first distance from the current position to a first intersection of the target route.
  • the prompting unit 113 prompts a user of the target vehicle to switch. Driving direction.
  • the first distance may be customized and configured according to actual conditions, which is not limited in this application.
  • the prompting unit 113 can promptly notify the user to be ready to switch the driving direction, bring a better user experience to the user, and have a higher safety factor.
  • the present application can obtain the current position of the target vehicle; determine at least one route centering on the current location; determine the road condition information of the at least one route; and from the road condition information of the at least one route, Select an alternative route from the at least one route; obtain the average speed of the vehicle on each alternative route from the road condition information of the at least one route; obtain the distance of each alternative route; The distance is determined, and a target route is determined from the selectable routes. Therefore, the present application can recommend the optimal driving route for the user by performing layer-by-layer screening, and the user experience is better.
  • FIG. 3 it is a schematic structural diagram of an electronic device according to a preferred embodiment of the route recommendation method of the present application.
  • the electronic device 1 is a device capable of automatically performing numerical calculations and / or information processing according to an instruction set or stored in advance.
  • the hardware includes, but is not limited to, a microprocessor and an application-specific integrated circuit (ASIC). ), Programmable Gate Array (Field-Programmable Gate Array, FPGA), Digital Processor (Digital Signal Processor, DSP), embedded devices, etc.
  • the electronic device 1 may also be, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote control, a touchpad, or a voice-activated device, such as a personal computer, a tablet computer, or a smartphone , Personal Digital Assistant (PDA), game console, Internet Protocol Television (IPTV), smart wearable devices, etc.
  • PDA Personal Digital Assistant
  • IPTV Internet Protocol Television
  • the electronic device 1 may also be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the network in which the electronic device 1 is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
  • the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer-readable instructions stored in the memory 12 and executable on the processor 13. , Such as a route recommendation program.
  • a route recommendation program Such as a route recommendation program.
  • the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. It may include more or fewer components than shown in the figure, or combine some components, or different Components, for example, the electronic device 1 may further include an input-output device, a network access device, a bus, and the like.
  • the so-called processor 13 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the processor 13 is a computing core and control center of the electronic device 1, and uses various interfaces and lines to connect the entire electronic device. Each part 1 executes an operating system of the electronic device 1 and installed various application programs, program codes, and the like.
  • the processor 13 executes an operating system of the electronic device 1 and various application programs installed.
  • the processor 13 executes the application program to implement the steps in the above various route recommendation method embodiments, such as steps S10, S11, S12, S13, S14, S15, and S16 shown in FIG. 1.
  • the functions of the modules / units in the foregoing device embodiments are implemented, for example: obtaining the current position of the target vehicle; and using the current position as the center to determine at least one route Determining traffic condition information of the at least one route; filtering out optional routes from the at least one route according to the traffic condition information of the at least one route; obtaining each of the optional routes from the traffic condition information of the at least one route The average speed of the vehicles on the route; the distance of each selectable route is obtained; and the target route is determined from the selectable routes according to the average speed and the distance.
  • the computer-readable instructions may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 12 and executed by the processor 13 to Complete this application.
  • the one or more modules / units may be a series of computer-readable instruction segments capable of performing a specific function, and the instruction segments are used to describe an execution process of the computer-readable instructions in the electronic device 1.
  • the computer-readable instructions may be divided into an obtaining unit 110, a determining unit 111, a filtering unit 112, and a prompting unit 113.
  • the memory 12 may be configured to store the computer-readable instructions and / or modules, and the processor 13 may execute or execute the computer-readable instructions and / or modules stored in the memory 12 and call the memory 12
  • the internal data realizes various functions of the electronic device 1.
  • the memory 12 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may Stores data (such as audio data, phone book, etc.) created based on the use of the phone.
  • the memory 12 may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, an internal memory, a plug-in hard disk, a Smart Media Card (SMC), and a Secure Digital (SD).
  • a non-volatile memory such as a hard disk, an internal memory, a plug-in hard disk, a Smart Media Card (SMC), and a Secure Digital (SD).
  • SSD Secure Digital
  • flash memory card Flash card
  • flash memory device at least one disk storage device, flash memory device, or other volatile solid-state storage device.
  • the memory 12 may be an external memory and / or an internal memory of the electronic device 1. Further, the memory 12 may be a circuit having a storage function, such as RAM (Random-Access Memory, Random Access Memory), FIFO (First In, First Out, etc.), which is not in a physical form in an integrated circuit. Alternatively, the memory 12 may also be a physical memory, such as a memory stick, a TF card (Trans-flash Card), and the like.
  • the integrated module / unit of the electronic device 1 When the integrated module / unit of the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile readable storage medium. Based on this understanding, this application implements all or part of the processes in the methods of the above embodiments, and can also be completed by computer-readable instructions instructing related hardware.
  • the computer-readable instructions can be stored in a non-volatile memory. In the read storage medium, when the computer-readable instructions are executed by a processor, the steps of the foregoing method embodiments can be implemented.
  • the computer-readable instructions include computer-readable instruction codes, and the computer-readable instruction codes may be in a source code form, an object code form, an executable file, or some intermediate form.
  • the non-volatile readable medium may include: any entity or device capable of carrying the computer-readable instruction code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media. It should be noted that the content contained in the non-volatile readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdictions. Volatile readable media does not include electrical carrier signals and telecommunication signals.
  • the memory 12 in the electronic device 1 stores a plurality of instructions to implement a route recommendation method, and the processor 13 may execute the plurality of instructions to achieve: obtaining a current position of a target vehicle; Determining the current position as the center, determining at least one route; determining the traffic condition information of the at least one route; filtering out optional routes from the at least one route according to the traffic condition information of the at least one route; In the route information of the route, the average speed of the vehicles on each optional route is obtained; the distance of each optional route is obtained; and the target route is determined from the optional routes according to the average speed and the distance.
  • the processor 13 further executes multiple instructions including:
  • the shortest path of the at least one intersection is configured as the at least one route.
  • the processor 13 further executes multiple instructions including:
  • a Dijkstra algorithm is used to determine the shortest path from the current location to the at least one intersection.
  • the processor 13 further executes multiple instructions including:
  • the processor 13 further executes multiple instructions including:
  • a first range, a second range, and a third range are obtained from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and a value in the second range is less than A value in the third range;
  • the processor 13 further executes multiple instructions including:
  • the non-selectable route is removed from the at least one route to obtain the optional route.
  • the processor 13 further executes multiple instructions including:
  • An optional route in which the travel time is ranked at a preset position is determined as the target route.
  • the processor 13 further executes multiple instructions including:
  • the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit.
  • the integrated unit can be implemented in the form of hardware, or in the form of hardware plus software functional modules.

Landscapes

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

Abstract

A route recommendation method and apparatus (11), an electronic device (1), and a storage medium. The route recommendation method comprises: acquiring a current position of a target vehicle (S10); determining at least one route using the current position as the center (S11); determining road condition information for the at least one route (S12); screening out selectable routes from the at least one route according to the road condition information of the at least one route (S13); acquiring the average speed of a vehicle on each selectable route from the road condition information of the at least one route (S14); acquiring the route distance of each selectable route (S15); and determining a target route from the selectable routes according to the average speed and the route distance (S16). A plurality of artificial intelligence technologies such as smart navigation and automatic planning may be used to recommend the optimal driving route for a user by means of performing layer-by-layer screening, thus making the user experience better.

Description

路线推荐方法、装置、电子设备及存储介质Route recommendation method, device, electronic equipment and storage medium
本申请要求于2018年08月15日提交中国专利局,申请号为201810930021.1发明名称为“路线推荐方法、电子设备及计算机可读存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority from a Chinese patent application filed with the Chinese Patent Office on August 15, 2018, with an application number of 201810930021.1, and the invention name is "route recommendation method, electronic device, and computer-readable storage medium", the entire contents of which are incorporated by reference. In this application.
技术领域Technical field
本申请涉及智能导航技术领域,尤其涉及一种路线推荐方法、电子设备及存储介质。The present application relates to the field of intelligent navigation technology, and in particular, to a route recommendation method, an electronic device, and a storage medium.
背景技术Background technique
现有技术方案中,业界内已有的地图导航软件中,在用户输入起点和终点后,通常有以下几种方式供用户选择:路线最短,用时最短,高速优先,避免收费。In the prior art solution, in the existing map navigation software in the industry, after the user inputs the starting point and the ending point, there are usually several ways for the user to choose: the shortest route, the shortest time, the high speed priority, and avoiding tolls.
上述人工选择的方式很大可能会造成道路拥堵,大大限制了通行流量。如:早晚高峰期间,很多用户要在市中心区和郊区间往返,如果大量用户同时选择了路线最短,则势必会造成道路拥堵现象。The aforementioned manual selection method is likely to cause road congestion, which greatly limits the traffic flow. For example, during the morning and evening peaks, many users have to travel between the downtown area and the suburbs. If a large number of users choose the shortest route at the same time, road congestion will inevitably be caused.
发明内容Summary of the Invention
鉴于以上内容,有必要提供一种路线推荐方法、电子设备及存储介质,能通过进行层层筛选,为用户推荐最优行车路线,使用户的体验更佳。In view of the above, it is necessary to provide a route recommendation method, an electronic device, and a storage medium, which can carry out layer-by-layer screening to recommend the optimal driving route for the user, so as to make the user's experience better.
一种路线推荐方法,所述方法包括:A route recommendation method, the method includes:
获取目标车辆的当前位置;Get the current position of the target vehicle;
以所述当前位置为中心,确定至少一个路线;Determine at least one route centered on the current position;
确定所述至少一个路线的路况信息;Determining road condition information of the at least one route;
根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;Filtering selectable routes from the at least one route according to the traffic condition information of the at least one route;
从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;Obtaining the average speed of vehicles on each selectable route from the road condition information of the at least one route;
获取每条可选路线的路程;Get the distance of each alternative route;
根据所述平均速度及所述路程,从所述可选路线中确定目标路线。A target route is determined from the selectable routes based on the average speed and the distance.
一种路线推荐装置,所述装置包括:A route recommendation device, the device includes:
获取单元,用于获取目标车辆的当前位置;An obtaining unit, configured to obtain the current position of the target vehicle;
确定单元,用于以所述当前位置为中心,确定至少一个路线;A determining unit, configured to determine at least one route centered on the current position;
所述确定单元,还用于确定所述至少一个路线的路况信息;The determining unit is further configured to determine road condition information of the at least one route;
筛选单元,用于根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;A screening unit, configured to filter an optional route from the at least one route according to the traffic condition information of the at least one route;
所述获取单元,还用于从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;The obtaining unit is further configured to obtain an average speed of a vehicle on each selectable route from the road condition information of the at least one route;
所述获取单元,还用于获取每条可选路线的路程;The obtaining unit is further configured to obtain a distance of each selectable route;
所述确定单元,还用于根据所述平均速度及所述路程,从所述可选路线中确定目标路线。The determining unit is further configured to determine a target route from the selectable routes according to the average speed and the distance.
一种电子设备,所述电子设备包括:An electronic device includes:
存储器,存储至少一个指令;及A memory that stores at least one instruction; and
处理器,执行所述存储器中存储的指令以实现所述路线推荐方法。A processor that executes instructions stored in the memory to implement the route recommendation method.
一种非易失性可读存储介质,所述非易失性可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行以实现所述路线推荐方法。A non-volatile readable storage medium stores at least one instruction therein, the at least one instruction is executed by a processor in an electronic device to implement the route recommendation method.
由以上技术方案可以看出,本申请能够以当前位置为中心,准确的确定至少一个路线,并根据所述至少一个路线的路况信息,进一步筛选出路况信息较优的可选路线,提高了通行的安全性,最后结合每条可选路线上车辆的平均速度及每条可选路线的路程,从所述可选路线中确定目标路线,通过进行层层筛选,为用户推荐最优行车路线,用户体验更佳。As can be seen from the above technical solutions, the present application can accurately determine at least one route centering on the current position, and further select optional routes with better road condition information based on the road condition information of the at least one route, thereby improving traffic Safety, finally combining the average speed of the vehicles on each optional route and the distance of each optional route, determine the target route from the optional routes, and perform the layer-by-layer screening to recommend the optimal driving route for the user, Better user experience.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是本申请路线推荐方法的较佳实施例的流程图。FIG. 1 is a flowchart of a preferred embodiment of a route recommendation method of the present application.
图2是本申请路线推荐装置的较佳实施例的功能模块图。FIG. 2 is a functional block diagram of a preferred embodiment of the route recommendation device of the present application.
图3是本申请实现路线推荐方法的较佳实施例的电子设备的结构示意图。FIG. 3 is a schematic structural diagram of an electronic device according to a preferred embodiment of the route recommendation method of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面结合附图和具体实施例对本申请进行详细描述。In order to make the purpose, technical solution, and advantages of the present application clearer, the following describes the present application in detail with reference to the accompanying drawings and specific embodiments.
如图1所示,是本申请路线推荐方法的较佳实施例的流程图。根据不同的需求,该流程图中步骤的顺序可以改变,某些步骤可以省略。As shown in FIG. 1, it is a flowchart of a preferred embodiment of the route recommendation method of the present application. According to different requirements, the order of steps in this flowchart can be changed, and some steps can be omitted.
所述路线推荐方法应用于一个或者多个电子设备中,所述电子设备是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。The route recommendation method is applied to one or more electronic devices. The electronic device is a device capable of automatically performing numerical calculation and / or information processing in accordance with an instruction set or stored in advance. The hardware includes but is not limited to Microprocessors, Application Specific Integrated Circuits (ASICs), Programmable Gate Arrays (Field-Programmable Gate Arrays, FPGAs), Digital Processors (Digital Signal Processors, DSPs), embedded devices, etc.
所述电子设备可以是任何一种可与用户进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、游戏机、交互式网络电视(Internet Protocol Television,IPTV)、智能式穿戴式设备等。The electronic device may be any type of electronic product that can perform human-computer interaction with a user, for example, a personal computer, a tablet computer, a smart phone, a Personal Digital Assistant (PDA), a game console, or an interactive network TV ( Internet Protocol (IPTV), intelligent wearable devices, etc.
所述电子设备还可以包括网络设备和/或用户设备。其中,所述网络设备包括,但不限于单个网络服务器、多个网络服务器组成的服务器组或基于云计算(Cloud Computing)的由大量主机或网络服务器构成的云。The electronic device may further include a network device and / or a user device. The network device includes, but is not limited to, a single network server, a server group composed of multiple network servers, or a cloud composed of a large number of hosts or network servers based on Cloud Computing.
所述电子设备所处的网络包括但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。The network where the electronic device is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
S10,所述电子设备获取目标车辆的当前位置。S10. The electronic device obtains a current position of a target vehicle.
在本申请的至少一个实施例中,所述电子设备获取目标车辆的当前位置包括,但不限于以下一种或者多种情况的组合:In at least one embodiment of the present application, the acquiring the current position of the target vehicle by the electronic device includes, but is not limited to, one or more of the following situations:
(1)所述电子设备通过所述目标车辆的GPS(Global Positioning System,全球定位系统)获取所述目标车辆的当前位置。(1) The electronic device obtains a current position of the target vehicle through a GPS (Global Positioning System, Global Positioning System) of the target vehicle.
(2)所述电子设备通过所述目标车辆安装的人工智能传感器获取所述目标车辆的当前位置。(2) The electronic device acquires the current position of the target vehicle through an artificial intelligence sensor installed on the target vehicle.
当然,在其他实施例中,所述电子设备也可以采取其他方式获取所述目标车辆的当前位置,本申请不做限制。Of course, in other embodiments, the electronic device may also obtain the current position of the target vehicle in other ways, which is not limited in this application.
例如:所述电子设备也可以调取监控录像,从所述监控录像中识别到所述目标车辆,并进一步判断所述目标车辆的当前位置。For example, the electronic device may also retrieve a surveillance video, identify the target vehicle from the surveillance video, and further determine the current position of the target vehicle.
S11,所述电子设备以所述当前位置为中心,确定至少一个路线。S11. The electronic device determines at least one route centered on the current position.
在本申请的至少一个实施例中,所述当前位置是指所述目标车辆的当前位置。In at least one embodiment of the present application, the current position refers to a current position of the target vehicle.
优选地,所述电子设备以所述当前位置为中心,确定至少一个路线包括:Preferably, the electronic device is centered on the current position, and determining at least one route includes:
所述电子设备以所述当前位置为中心,获取配置范围内的至少一个路口,所述电子设备确定所述当前位置到所述至少一个路口的最短路径,并将所述至少一个路口的最短路径配置为所述至少一个路线。The electronic device obtains at least one intersection in a configuration range with the current position as a center, and the electronic device determines a shortest path from the current position to the at least one intersection, and uses the shortest path to the at least one intersection Configured for the at least one route.
例如:所述电子设备以所述当前位置为中心,获取到配置范围内(如:以当前位置为圆心,半径为1000米,角度为120°的扇形范围内)的至少一个路口分别为:路口A、路口B及路口C,所述电子设备确定所述当前位置到所述至少一个路口的最短路径分别为:路径X、路径Y及路径Z,则所述电子设备将所述路径X、路径Y及路径Z配置为所述至少一个路线。For example, the electronic device obtains at least one intersection within a configuration range (for example, within a fan-shaped range with the current position as the center, a radius of 1000 meters, and an angle of 120 °) with the current position as the center: A, intersection B, and intersection C. The electronic device determines that the shortest paths from the current location to the at least one intersection are: path X, path Y, and path Z, and the electronic device converts the path X, path Y and path Z are configured as the at least one route.
优选地,所述电子设备确定所述当前位置到所述至少一个路口的最短路径包括:Preferably, the electronic device determining the shortest path from the current location to the at least one intersection includes:
所述电子设备采用迪杰斯特拉算法(Dijkstra)确定所述当前位置到所述至少一个路口的最短路径。The electronic device uses a Dijkstra algorithm to determine a shortest path from the current location to the at least one intersection.
具体地,所述电子设备采用迪杰斯特拉算法确定所述当前位置到所述至少一个路口的最短路径包括:Specifically, the determining, by the electronic device, a shortest path from the current position to the at least one intersection using Dijkstra's algorithm includes:
设所述目标车辆的当前位置为s,所述至少一个路口为v,能直接到达的路口为m。Let the current position of the target vehicle be s, the at least one intersection be v, and the intersection that can be directly reached is m.
所述电子设备通过为每个路口v保留目前为止所找到的从s到v的最短路径来进行。初始时,所述当前位置s的路径长度值被赋为0(即:d[s]=0),若存在能直接到达的路口m,则把距离d[m]设为w(s,m),同时把所有其他路口(s不能直接到达的路口)的路径长度设为无穷大,即表示所述电子设备不知道任何通向这些路口的路径(对于所述至少一个路口v,除s和上述m外,距离d[v]为无穷大)。当所述迪杰斯特拉算法运行完成时,d[v]中存储的便是从s到v的最短路径,或者,如果路径不存在的话,则d[v]是无 穷大。The electronic device does this by keeping the shortest path from s to v found so far for each intersection v. Initially, the path length value of the current position s is assigned to 0 (that is, d [s] = 0). If there is an intersection m that can be directly reached, the distance d [m] is set to w (s, m ), And set the path length of all other intersections (intersections that s cannot reach directly) to infinity, which means that the electronic device does not know any paths to these intersections (for the at least one intersection v, except s and m, the distance d [v] is infinite). When the Dijkstra algorithm is completed, the shortest path from s to v is stored in d [v], or if the path does not exist, d [v] is infinite.
也就是说:如果存在一条从u到v的路径,那么从s到v的最短路径可以通过将路径(u,v)添加到尾部来拓展一条从s到v的路径。这条路径的长度是d[u]+w(u,v)。如果这个值比目前已知的d[v]的值要小,所述电子设备可以用d[u]+w(u,v)来替代当前d[v]中的值。That is, if there is a path from u to v, the shortest path from s to v can be extended by adding the path (u, v) to the tail to expand a path from s to v. The length of this path is d [u] + w (u, v). If this value is smaller than the currently known value of d [v], the electronic device can replace the current value in d [v] with d [u] + w (u, v).
进一步地,所述电子设备维护两个顶点集合:集合S和集合Q。所述集合S保存了已知的所有d[v]的值,即是最短路径值的顶点,而所述集合Q则保留其他所有顶点。所述集合S初始状态为空,接下来每一步都有一个顶点从所述集合Q移动到所述集合S,此时被选择的顶点是所述集合Q中拥有最小的d[v]值的顶点。当一个顶点u从所述集合Q中移到了所述集合S中时,所述电子设备对每条外接边(u,v)进行拓展,直到所述集合S中包含所述集合Q中的所有顶点。Further, the electronic device maintains two vertex sets: a set S and a set Q. The set S holds all known d [v] values, that is, the vertices that are the shortest path values, and the set Q retains all other vertices. The initial state of the set S is empty. At each subsequent step, a vertex is moved from the set Q to the set S. At this time, the selected vertex has the smallest d [v] value in the set Q. vertex. When a vertex u is moved from the set Q to the set S, the electronic device expands each external edge (u, v) until the set S includes all of the set Q vertex.
通过上述实施方式,所述电子设备即可确定所述当前位置到所述至少一个路口的最短路径,并将所述至少一个路口的最短路径配置为所述至少一个路线,计算过程简明,且能得到最优解。According to the foregoing implementation manner, the electronic device can determine the shortest path from the current location to the at least one intersection, and configure the shortest path from the at least one intersection to the at least one route. The calculation process is concise and can Get the optimal solution.
S12,所述电子设备确定所述至少一个路线的路况信息。S12. The electronic device determines road condition information of the at least one route.
在本申请的至少一个实施例中,所述路况信息包括,但不限于:路线是否拥堵、路线的路面状况等。In at least one embodiment of the present application, the road condition information includes, but is not limited to, whether a route is congested, a road surface condition, and the like.
优选地,所述电子设备确定所述至少一个路线的路况信息包括:Preferably, the electronic device determining road condition information of the at least one route includes:
所述电子设备计算预设时长内,所述至少一个路线上车辆的平均速度,所述电子设备调取所述至少一个路线上车辆的配置车速范围,并根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵,所述电子设备调取所述至少一个路线的监控录像,并根据所述监控录像,确定所述至少一个路线的路面状况。The electronic device calculates an average speed of vehicles on the at least one route within a preset time period, and the electronic device retrieves a configured speed range of the vehicles on the at least one route, and based on the average speed and the configured speed A range to determine whether the at least one route is congested, and the electronic device retrieves a monitoring video of the at least one route, and determines a pavement condition of the at least one route according to the monitoring video.
具体地,所述电子设备获取预设时长(如:5min)内,在所述至少一个路线中,所述路径X上车辆的平均速度为15公里/时,所述电子设备可以从交通部门(或者其他相关服务器)调取所述至少一个路线上车辆的配置车速范围,并根据所述平均速度15公里/时及所述配置车速范围,确定所述路径X是否拥堵。Specifically, within a predetermined time period (for example, 5 min) obtained by the electronic device, in the at least one route, the average speed of the vehicle on the path X is 15 km / h, and the electronic device can be obtained from the transportation department ( Or other related servers) to obtain the configured speed range of the vehicles on the at least one route, and determine whether the path X is congested according to the average speed of 15 km / h and the configured speed range.
进一步地,所述电子设备调取路径X的监控录像,并根据所述监控录像,确定所述路径X正在施工。Further, the electronic device retrieves the monitoring video of the path X, and determines that the path X is under construction according to the monitoring video.
其中,本申请对所述电子设备调取所述至少一个路线的监控录像的方式不作限制。例如:所述电子设备可以从交通部门(或者其他相关服务器)调取所述至少一个路线的监控录像等。The application does not limit the manner in which the electronic device retrieves the surveillance video of the at least one route. For example, the electronic device may retrieve a surveillance video of the at least one route from a transportation department (or other related server).
优选地,所述电子设备根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵包括:Preferably, the electronic device determining whether the at least one route is congested according to the average speed and the configured vehicle speed range includes:
所述电子设备从所述配置车速范围中获取第一范围、第二范围及第三范围,其中,所述第一范围中的值小于所述第二范围中的值,且所述第二范围中的值小于所述第三范围中的值。The electronic device obtains a first range, a second range, and a third range from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and the second range The value in is smaller than the value in the third range.
具体地,当所述平均速度属于所述第一范围时,所述电子设备确定所述 至少一个路线处于拥堵状态;或者是,当所述平均速度属于所述第二范围时,所述电子设备确定所述至少一个路线处于缓行状态;或者是,当所述平均速度属于所述第三范围时,所述电子设备确定所述至少一个路线处于畅通状态。Specifically, when the average speed belongs to the first range, the electronic device determines that the at least one route is in a congested state; or when the average speed belongs to the second range, the electronic device Determining that the at least one route is in a slow state; or, when the average speed belongs to the third range, the electronic device determines that the at least one route is in a clear state.
例如:所述电子设备从所述配置车速范围中获取到所述第一范围为0-20公里/时,所述第二范围为20-40公里/时,所述第三范围为40公里/时以上,如果所述路径X上车辆的平均速度为15公里/时,由于15公里/时属于所述第一范围为0-20公里/时,则所述电子设备确定所述路径X处于拥堵状态。For example: the electronic device obtains from the configured vehicle speed range that the first range is 0-20 km / h, the second range is 20-40 km / h, and the third range is 40 km / h Above the hour, if the average speed of the vehicle on the path X is 15 km / h, since 15 km / h belongs to the first range of 0-20 km / h, the electronic device determines that the path X is in a congestion status.
通过上述实施方式,所述电子设备即可准确的判断出所述至少一个路线的路况信息,为后续的确定目标路线做准备。According to the foregoing implementation manner, the electronic device can accurately determine road condition information of the at least one route, and prepare for subsequent determination of a target route.
S13,所述电子设备根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线。S13. The electronic device selects an optional route from the at least one route according to the road condition information of the at least one route.
在本申请的至少一个实施例中,所述可选路线包括所述电子设备可以选择的路线的集合。In at least one embodiment of the present application, the selectable route includes a set of routes that the electronic device can select.
优选地,所述电子设备根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线包括:Preferably, the electronic device filtering the selectable routes from the at least one route according to the road condition information of the at least one route includes:
所述电子设备从所述路况信息中获取所述至少一个路线的路面状况,并从所述至少一个路线中,确定路面状况为施工或者损毁的不可选路线,所述电子设备从所述至少一个路线中去除所述不可选路线以得到所述可选路线。The electronic device obtains the pavement condition of the at least one route from the road condition information, and determines from the at least one route that the pavement condition is an unselectable route for construction or damage, and the electronic device obtains information from the at least one The non-selectable route is removed from the route to obtain the optional route.
例如:所述路径X、所述路径Y及所述路径Z为配置的所述至少一个路线,如果所述路径Y的路面状况为施工,则所述电子设备将所述路径X及所述路径Z确定为所述可选路线。For example, the path X, the path Y, and the path Z are the configured at least one route, and if the road surface condition of the path Y is under construction, the electronic device converts the path X and the path Z is determined as the optional route.
具体地,所述可选路线的数量大于或者等于1个,且小于或者等于所述至少一个路线的路线数量。Specifically, the number of selectable routes is greater than or equal to one and less than or equal to the number of routes of the at least one route.
可以理解的是,由于处于施工或者损毁的道路是禁止通行的,且安全系数较低,因此,所述电子设备将所述路面状况为施工或者损毁的路线确定为所述不可选路线。It can be understood that, because the road under construction or damaged is prohibited and the safety factor is low, the electronic device determines the route with the pavement condition as construction or damaged as the non-selectable route.
S14,所述电子设备从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度。S14. The electronic device obtains an average speed of a vehicle on each selectable route from the road condition information of the at least one route.
在本申请的至少一个实施例中,由于在确定所述至少一个路线的路况信息的过程中,所述电子设备已经计算了所述至少一个路线上车辆的平均速度,因此,所述电子设备可以从所述至少一个路线上车辆的平均速度中直接获取每条可选路线上车辆的平均速度。In at least one embodiment of the present application, since the electronic device has calculated the average speed of the vehicles on the at least one route during the determination of the road condition information of the at least one route, the electronic device may The average speed of the vehicles on each selectable route is directly obtained from the average speed of the vehicles on the at least one route.
S15,所述电子设备获取每条可选路线的路程。S15. The electronic device obtains a distance of each selectable route.
在本申请的至少一个实施例中,所述电子设备获取每条可选路线的路程的方式可以包括很多种,如从配置服务器获取等等,本申请不做限制。In at least one embodiment of the present application, the manner in which the electronic device obtains the distance of each selectable route may include many types, such as obtaining from a configuration server, etc., which is not limited in the present application.
S16,所述电子设备根据所述平均速度及所述路程,从所述可选路线中确定目标路线。S16. The electronic device determines a target route from the selectable routes according to the average speed and the distance.
在本申请的至少一个实施例中,所述目标路线包括所述电子设备所确定的最佳路线。In at least one embodiment of the present application, the target route includes an optimal route determined by the electronic device.
优选地,所述电子设备根据所述平均速度及所述路程,从所述可选路线 中确定目标路线包括:Preferably, the electronic device determining a target route from the selectable routes according to the average speed and the distance includes:
所述电子设备根据所述平均速度及所述路程,计算每条可选路线的通行时间,所述电子设备对所述通行时间进行排序,并将所述通行时间排在预设位置的可选路线确定为所述目标路线。The electronic device calculates the transit time of each selectable route according to the average speed and the distance, and the electronic device sorts the transit time and ranks the transit time at an optional position at a preset position. A route is determined as the target route.
可以理解的是,所述电子设备将优先推荐通行时间最短的路线作为所述目标路线,以便节约所述用户的通行时间,也就是说,当所述电子设备将所述通行时间按照有长到短的顺序进行排序时,所述电子设备将所述通行时间排在最后一位的可选路线确定为所述目标路线;或者是,当所述电子设备将所述通行时间按照有短到长的顺序进行排序时,所述电子设备将所述通行时间排在第一位的可选路线确定为所述目标路线。It can be understood that the electronic device preferentially recommends the route with the shortest travel time as the target route, so as to save the travel time of the user, that is, when the electronic device increases the travel time as long as possible When sorting in a short order, the electronic device determines the optional route in which the travel time is ranked last as the target route; or when the electronic device determines the travel time as short to long When the order is sorted, the electronic device determines the selectable route in which the travel time is first ranked as the target route.
优选地,在所述电子设备根据所述平均速度及所述路程,从所述可选路线中确定目标路线后,所述方法还包括:Preferably, after the electronic device determines a target route from the selectable routes according to the average speed and the distance, the method further includes:
所述电子设备获取所述当前位置到所述目标路线的第一个路口的第一距离,当所述第一距离小于或者等于预设距离时,所述电子设备提示所述目标车辆的用户切换行驶方向。Obtaining, by the electronic device, a first distance from the current location to a first intersection of the target route, and when the first distance is less than or equal to a preset distance, the electronic device prompts a user of the target vehicle to switch Driving direction.
具体地,所述第一距离可以根据实际情况进行自定义配置,本申请不做限制。Specifically, the first distance may be customized and configured according to actual conditions, which is not limited in this application.
通过上述实施方式,所述电子设备即可及时通知所述用户做好切换行驶方向的准备,给用户带来更好的使用体验,安全系数也更高。According to the foregoing implementation manner, the electronic device can promptly notify the user to be ready to switch driving directions, bring a better user experience to the user, and have a higher safety factor.
综上所述,本申请能获取目标车辆的当前位置;以所述当前位置为中心,确定至少一个路线;确定所述至少一个路线的路况信息;根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;获取每条可选路线的路程;根据所述平均速度及所述路程,从所述可选路线中确定目标路线。因此,本申请能通过进行层层筛选,为用户推荐最优行车路线,用户体验更佳。In summary, the present application can obtain the current position of the target vehicle; determine at least one route centering on the current location; determine the road condition information of the at least one route; and from the road condition information of the at least one route, Select an alternative route from the at least one route; obtain the average speed of the vehicle on each alternative route from the road condition information of the at least one route; obtain the distance of each alternative route; The distance is determined, and a target route is determined from the selectable routes. Therefore, the present application can recommend the optimal driving route for the user by performing layer-by-layer screening, and the user experience is better.
如图2所示,是本申请路线推荐装置的较佳实施例的功能模块图。所述路线推荐装置11包括获取单元110、确定单元111、筛选单元112及提示单元113。本申请所称的模块/单元是指一种能够被处理器13所执行并且能够完成固定功能的一系列计算机可读指令段,其存储在存储器12中。在本实施例中,关于各模块/单元的功能将在后续的实施例中详述。As shown in FIG. 2, it is a functional block diagram of a preferred embodiment of the route recommendation device of the present application. The route recommendation device 11 includes an obtaining unit 110, a determining unit 111, a screening unit 112, and a prompting unit 113. The module / unit referred to in the present application refers to a series of computer-readable instruction segments that can be executed by the processor 13 and can perform fixed functions, and is stored in the memory 12. In this embodiment, functions of each module / unit will be described in detail in subsequent embodiments.
获取单元110获取目标车辆的当前位置。The acquisition unit 110 acquires the current position of the target vehicle.
在本申请的至少一个实施例中,所述获取单元110获取目标车辆的当前位置包括,但不限于以下一种或者多种情况的组合:In at least one embodiment of the present application, the acquiring unit 110 acquiring the current position of the target vehicle includes, but is not limited to, one or more of the following situations:
(1)所述获取单元110通过所述目标车辆的GPS获取所述目标车辆的当前位置。(1) The acquisition unit 110 acquires the current position of the target vehicle through the GPS of the target vehicle.
(2)所述获取单元110通过所述目标车辆安装的人工智能传感器获取所述目标车辆的当前位置。(2) The acquisition unit 110 acquires the current position of the target vehicle through an artificial intelligence sensor installed on the target vehicle.
当然,在其他实施例中,所述获取单元110也可以采取其他方式获取所 述目标车辆的当前位置,本申请不做限制。Of course, in other embodiments, the obtaining unit 110 may also obtain the current position of the target vehicle in other ways, which is not limited in this application.
例如:所述获取单元110也可以调取监控录像,从所述监控录像中识别到所述目标车辆,并进一步判断所述目标车辆的当前位置。For example, the obtaining unit 110 may also retrieve a monitoring video, identify the target vehicle from the monitoring video, and further determine the current position of the target vehicle.
确定单元111以所述当前位置为中心,确定至少一个路线。The determining unit 111 determines at least one route with the current position as a center.
在本申请的至少一个实施例中,所述当前位置是指所述目标车辆的当前位置。In at least one embodiment of the present application, the current position refers to a current position of the target vehicle.
优选地,所述确定单元111以所述当前位置为中心,确定至少一个路线包括:Preferably, the determining unit 111 centers on the current position, and determines at least one route includes:
所述确定单元111以所述当前位置为中心,获取配置范围内的至少一个路口,所述确定单元111确定所述当前位置到所述至少一个路口的最短路径,并将所述至少一个路口的最短路径配置为所述至少一个路线。The determining unit 111 obtains at least one intersection within a configuration range with the current position as a center, and the determining unit 111 determines a shortest path from the current position to the at least one intersection, and The shortest path is configured as the at least one route.
例如:所述确定单元111以所述当前位置为中心,获取到配置范围内(如:以当前位置为圆心,半径为1000米,角度为120°的扇形范围内)的至少一个路口分别为:路口A、路口B及路口C,所述确定单元111确定所述当前位置到所述至少一个路口的最短路径分别为:路径X、路径Y及路径Z,则所述电子设备将所述路径X、路径Y及路径Z配置为所述至少一个路线。For example, the determining unit 111 obtains at least one intersection within a configuration range (for example, within a sector range with the current position as the center, a radius of 1000 meters, and an angle of 120 °) with the current position as the center: Intersection A, intersection B, and intersection C, and the determining unit 111 determines that the shortest paths from the current position to the at least one intersection are: path X, path Y, and path Z, and the electronic device converts the path X The path Y and the path Z are configured as the at least one route.
优选地,所述确定单元111确定所述当前位置到所述至少一个路口的最短路径包括:Preferably, the determining unit 111 determines the shortest path from the current location to the at least one intersection includes:
所述确定单元111采用迪杰斯特拉算法确定所述当前位置到所述至少一个路口的最短路径。The determining unit 111 uses a Dijkstra algorithm to determine the shortest path from the current position to the at least one intersection.
具体地,所述确定单元111采用迪杰斯特拉算法确定所述当前位置到所述至少一个路口的最短路径包括:Specifically, the determining unit 111 uses Dijkstra's algorithm to determine the shortest path from the current location to the at least one intersection includes:
设所述目标车辆的当前位置为s,所述至少一个路口为v,能直接到达的路口为m。Let the current position of the target vehicle be s, the at least one intersection be v, and the intersection that can be directly reached is m.
所述确定单元111通过为每个路口v保留目前为止所找到的从s到v的最短路径来进行。初始时,所述当前位置s的路径长度值被赋为0(即:d[s]=0),若存在能直接到达的路口m,则把距离d[m]设为w(s,m),同时把所有其他路口(s不能直接到达的路口)的路径长度设为无穷大,即表示所述确定单元111不知道任何通向这些路口的路径(对于所述至少一个路口v,除s和上述m外,距离d[v]为无穷大)。当所述迪杰斯特拉算法运行完成时,d[v]中存储的便是从s到v的最短路径,或者,如果路径不存在的话,则d[v]是无穷大。The determining unit 111 performs the process by keeping the shortest path from s to v found so far for each intersection v. Initially, the path length value of the current position s is assigned to 0 (that is, d [s] = 0). If there is an intersection m that can be directly reached, the distance d [m] is set to w (s, m ), And set the path lengths of all other intersections (intersections that s cannot reach directly) to infinity, which means that the determining unit 111 does not know any paths to these intersections (for the at least one intersection v, except s and Outside m, the distance d [v] is infinite). When the Dijkstra algorithm is completed, the shortest path from s to v is stored in d [v], or if the path does not exist, d [v] is infinite.
也就是说:如果存在一条从u到v的路径,那么从s到v的最短路径可以通过将路径(u,v)添加到尾部来拓展一条从s到v的路径。这条路径的长度是d[u]+w(u,v)。如果这个值比目前已知的d[v]的值要小,所述确定单元111可以用d[u]+w(u,v)来替代当前d[v]中的值。That is, if there is a path from u to v, the shortest path from s to v can be extended by adding the path (u, v) to the tail to expand a path from s to v. The length of this path is d [u] + w (u, v). If this value is smaller than the currently known value of d [v], the determination unit 111 may replace the current value in d [v] with d [u] + w (u, v).
进一步地,所述确定单元111维护两个顶点集合:集合S和集合Q。所述集合S保存了已知的所有d[v]的值,即是最短路径值的顶点,而所述集合Q则保留其他所有顶点。所述集合S初始状态为空,接下来每一步都有一个顶点从所述集合Q移动到所述集合S,此时被选择的顶点是所述集合Q中拥 有最小的d[v]值的顶点。当一个顶点u从所述集合Q中移到了所述集合S中时,所述确定单元111对每条外接边(u,v)进行拓展,直到所述集合S中包含所述集合Q中的所有顶点。Further, the determining unit 111 maintains two vertex sets: a set S and a set Q. The set S holds all known d [v] values, that is, the vertices that are the shortest path values, and the set Q retains all other vertices. The initial state of the set S is empty. At each subsequent step, a vertex is moved from the set Q to the set S. At this time, the selected vertex has the smallest d [v] value in the set Q. vertex. When a vertex u is moved from the set Q to the set S, the determining unit 111 expands each circumscribed edge (u, v) until the set S includes the set Q All vertices.
通过上述实施方式,所述确定单元111即可确定所述当前位置到所述至少一个路口的最短路径,并将所述至少一个路口的最短路径配置为所述至少一个路线,计算过程简明,且能得到最优解。According to the foregoing implementation manner, the determining unit 111 can determine the shortest path from the current location to the at least one intersection, and configure the shortest path of the at least one intersection as the at least one route. The calculation process is concise, and Can get the optimal solution.
所述确定单元111确定所述至少一个路线的路况信息。The determining unit 111 determines road condition information of the at least one route.
在本申请的至少一个实施例中,所述路况信息包括,但不限于:路线是否拥堵、路线的路面状况等。In at least one embodiment of the present application, the road condition information includes, but is not limited to, whether a route is congested, a road surface condition, and the like.
优选地,所述确定单元111确定所述至少一个路线的路况信息包括:Preferably, the determining unit 111 determines the road condition information of the at least one route includes:
所述确定单元111计算预设时长内,所述至少一个路线上车辆的平均速度,所述确定单元111调取所述至少一个路线上车辆的配置车速范围,并根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵,所述确定单元111调取所述至少一个路线的监控录像,并根据所述监控录像,确定所述至少一个路线的路面状况。The determining unit 111 calculates an average speed of the vehicles on the at least one route within a preset time period, and the determining unit 111 retrieves a configured speed range of the vehicles on the at least one route, and calculates the average speed and the The vehicle speed range is configured to determine whether the at least one route is congested, and the determining unit 111 retrieves a monitoring video of the at least one route, and determines a road surface condition of the at least one route according to the monitoring video.
具体地,所述确定单元111获取预设时长(如:5min)内,在所述至少一个路线中,所述路径X上车辆的平均速度为15公里/时,所述确定单元111可以从交通部门(或者其他相关服务器)调取所述至少一个路线上车辆的配置车速范围,并根据所述平均速度15公里/时及所述配置车速范围,确定所述路径X是否拥堵。Specifically, the determining unit 111 obtains a preset time length (for example, 5 min). In the at least one route, the average speed of the vehicle on the path X is 15 km / h. The department (or other related server) obtains the configured speed range of the vehicles on the at least one route, and determines whether the path X is congested according to the average speed of 15 km / h and the configured speed range.
进一步地,所述确定单元111调取路径X的监控录像,并根据所述监控录像,确定所述路径X正在施工。Further, the determining unit 111 retrieves the monitoring video of the path X, and determines that the path X is under construction according to the monitoring video.
其中,本申请对所述确定单元111调取所述至少一个路线的监控录像的方式不作限制。例如:所述确定单元111可以从交通部门(或者其他相关服务器)调取所述至少一个路线的监控录像等。The application does not limit the manner in which the determining unit 111 retrieves the surveillance video of the at least one route. For example, the determining unit 111 may retrieve a surveillance video of the at least one route from a transportation department (or other related server).
优选地,所述确定单元111根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵包括:Preferably, the determining unit 111 determines whether the at least one route is congested according to the average speed and the configured vehicle speed range includes:
所述确定单元111从所述配置车速范围中获取第一范围、第二范围及第三范围,其中,所述第一范围中的值小于所述第二范围中的值,且所述第二范围中的值小于所述第三范围中的值。The determining unit 111 obtains a first range, a second range, and a third range from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and the second The value in the range is smaller than the value in the third range.
具体地,当所述平均速度属于所述第一范围时,所述确定单元111确定所述至少一个路线处于拥堵状态;或者是,当所述平均速度属于所述第二范围时,所述确定单元111确定所述至少一个路线处于缓行状态;或者是,当所述平均速度属于所述第三范围时,所述确定单元111确定所述至少一个路线处于畅通状态。Specifically, when the average speed belongs to the first range, the determination unit 111 determines that the at least one route is in a congested state; or when the average speed belongs to the second range, the determination The unit 111 determines that the at least one route is in a slow-moving state; or when the average speed belongs to the third range, the determining unit 111 determines that the at least one route is in a smooth state.
例如:所述确定单元111从所述配置车速范围中获取到所述第一范围为0-20公里/时,所述第二范围为20-40公里/时,所述第三范围为40公里/时以上,如果所述路径X上车辆的平均速度为15公里/时,由于15公里/时属于所述第一范围为0-20公里/时,则所述确定单元111确定所述路径X处于拥堵状态。For example, the determining unit 111 obtains from the configured vehicle speed range that the first range is 0-20 km / h, the second range is 20-40 km / h, and the third range is 40 km Above / hour, if the average speed of the vehicle on the path X is 15 km / h, since 15 km / h belongs to the first range of 0-20 km / h, the determining unit 111 determines the path X Congested.
通过上述实施方式,所述确定单元111即可准确的判断出所述至少一个路线的路况信息,为后续的确定目标路线做准备。According to the foregoing implementation manner, the determining unit 111 can accurately determine road condition information of the at least one route, and prepare for subsequent determination of a target route.
筛选单元112根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线。The screening unit 112 filters out selectable routes from the at least one route according to the road condition information of the at least one route.
在本申请的至少一个实施例中,所述可选路线包括所述电子设备可以选择的路线的集合。In at least one embodiment of the present application, the selectable route includes a set of routes that the electronic device can select.
优选地,所述筛选单元112根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线包括:Preferably, the screening unit 112 filters the optional routes from the at least one route according to the traffic condition information of the at least one route including:
所述筛选单元112从所述路况信息中获取所述至少一个路线的路面状况,并从所述至少一个路线中,确定路面状况为施工或者损毁的不可选路线,所述筛选单元112从所述至少一个路线中去除所述不可选路线以得到所述可选路线。The screening unit 112 obtains the pavement condition of the at least one route from the road condition information, and determines from the at least one route that the pavement condition is an unselectable route for construction or damage. The non-selectable route is removed from at least one route to obtain the optional route.
例如:所述路径X、所述路径Y及所述路径Z为配置的所述至少一个路线,如果所述路径Y的路面状况为施工,则所述筛选单元112将所述路径X及所述路径Z确定为所述可选路线。For example, the path X, the path Y, and the path Z are the configured at least one route. If the road surface condition of the path Y is under construction, the screening unit 112 divides the path X and the path X The path Z is determined as the optional route.
具体地,所述可选路线的数量大于或者等于1个,且小于或者等于所述至少一个路线的路线数量。Specifically, the number of selectable routes is greater than or equal to one and less than or equal to the number of routes of the at least one route.
可以理解的是,由于处于施工或者损毁的道路是禁止通行的,且安全系数较低,因此,所述筛选单元112将所述路面状况为施工或者损毁的路线确定为所述不可选路线。It can be understood that, because the road under construction or damaged is forbidden and the safety factor is low, the screening unit 112 determines the route with the pavement condition as construction or damaged as the non-selectable route.
所述获取单元110从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度。The obtaining unit 110 obtains an average speed of a vehicle on each selectable route from the road condition information of the at least one route.
在本申请的至少一个实施例中,由于在确定所述至少一个路线的路况信息的过程中,所述获取单元110已经计算了所述至少一个路线上车辆的平均速度,因此,所述获取单元110可以从所述至少一个路线上车辆的平均速度中直接获取每条可选路线上车辆的平均速度。In at least one embodiment of the present application, since the obtaining unit 110 has calculated the average speed of the vehicles on the at least one route in the process of determining road condition information of the at least one route, the obtaining unit 110 110. The average speed of the vehicles on each selectable route may be directly obtained from the average speed of the vehicles on the at least one route.
所述获取单元110获取每条可选路线的路程。The obtaining unit 110 obtains a distance of each selectable route.
在本申请的至少一个实施例中,所述获取单元110获取每条可选路线的路程的方式可以包括很多种,如从配置服务器获取等等,本申请不做限制。In at least one embodiment of the present application, the manner in which the obtaining unit 110 obtains the distance of each selectable route may include many types, such as obtaining from a configuration server, and the like is not limited in this application.
所述确定单元111根据所述平均速度及所述路程,从所述可选路线中确定目标路线。The determining unit 111 determines a target route from the selectable routes according to the average speed and the distance.
在本申请的至少一个实施例中,所述目标路线包括所述电子设备所确定的最佳路线。In at least one embodiment of the present application, the target route includes an optimal route determined by the electronic device.
优选地,所述确定单元111根据所述平均速度及所述路程,从所述可选路线中确定目标路线包括:Preferably, the determining unit 111 determines the target route from the selectable routes according to the average speed and the distance, including:
所述确定单元111根据所述平均速度及所述路程,计算每条可选路线的通行时间,所述确定单元111对所述通行时间进行排序,并将所述通行时间排在预设位置的可选路线确定为所述目标路线。The determining unit 111 calculates the transit time of each selectable route according to the average speed and the distance. The determining unit 111 sorts the transit times and ranks the transit times at a preset position. The selectable route is determined as the target route.
可以理解的是,所述确定单元111将优先推荐通行时间最短的路线作为所述目标路线,以便节约所述用户的通行时间,也就是说,当所述确定单元 111将所述通行时间按照有长到短的顺序进行排序时,所述确定单元111将所述通行时间排在最后一位的可选路线确定为所述目标路线;或者是,当所述确定单元111将所述通行时间按照有短到长的顺序进行排序时,所述确定单元111将所述通行时间排在第一位的可选路线确定为所述目标路线。It can be understood that the determination unit 111 uses the route with the shortest recommended travel time as the target route, so as to save the travel time of the user, that is, when the determination unit 111 uses the travel time as When sorting in a long-to-short order, the determining unit 111 determines the optional route with the last travel time as the target route; or when the determining unit 111 sorts the travel time according to When there is a short-to-long order, the determining unit 111 determines the selectable route with the first travel time as the target route.
优选地,在所述确定单元111根据所述平均速度及所述路程,从所述可选路线中确定目标路线后,所述方法还包括:Preferably, after the determining unit 111 determines a target route from the selectable routes according to the average speed and the distance, the method further includes:
所述获取单元110获取所述当前位置到所述目标路线的第一个路口的第一距离,当所述第一距离小于或者等于预设距离时,提示单元113提示所述目标车辆的用户切换行驶方向。The obtaining unit 110 obtains a first distance from the current position to a first intersection of the target route. When the first distance is less than or equal to a preset distance, the prompting unit 113 prompts a user of the target vehicle to switch. Driving direction.
具体地,所述第一距离可以根据实际情况进行自定义配置,本申请不做限制。Specifically, the first distance may be customized and configured according to actual conditions, which is not limited in this application.
通过上述实施方式,所述提示单元113即可及时通知所述用户做好切换行驶方向的准备,给用户带来更好的使用体验,安全系数也更高。Through the foregoing implementation manner, the prompting unit 113 can promptly notify the user to be ready to switch the driving direction, bring a better user experience to the user, and have a higher safety factor.
综上所述,本申请能获取目标车辆的当前位置;以所述当前位置为中心,确定至少一个路线;确定所述至少一个路线的路况信息;根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;获取每条可选路线的路程;根据所述平均速度及所述路程,从所述可选路线中确定目标路线。因此,本申请能通过进行层层筛选,为用户推荐最优行车路线,用户体验更佳。In summary, the present application can obtain the current position of the target vehicle; determine at least one route centering on the current location; determine the road condition information of the at least one route; and from the road condition information of the at least one route, Select an alternative route from the at least one route; obtain the average speed of the vehicle on each alternative route from the road condition information of the at least one route; obtain the distance of each alternative route; The distance is determined, and a target route is determined from the selectable routes. Therefore, the present application can recommend the optimal driving route for the user by performing layer-by-layer screening, and the user experience is better.
如图3所示,是本申请实现路线推荐方法的较佳实施例的电子设备的结构示意图。As shown in FIG. 3, it is a schematic structural diagram of an electronic device according to a preferred embodiment of the route recommendation method of the present application.
所述电子设备1是一种能够按照事先设定或存储的指令,自动进行数值计算和/或信息处理的设备,其硬件包括但不限于微处理器、专用集成电路(Application Specific Integrated Circuit,ASIC)、可编程门阵列(Field-Programmable Gate Array,FPGA)、数字处理器(Digital Signal Processor,DSP)、嵌入式设备等。The electronic device 1 is a device capable of automatically performing numerical calculations and / or information processing according to an instruction set or stored in advance. The hardware includes, but is not limited to, a microprocessor and an application-specific integrated circuit (ASIC). ), Programmable Gate Array (Field-Programmable Gate Array, FPGA), Digital Processor (Digital Signal Processor, DSP), embedded devices, etc.
所述电子设备1还可以是但不限于任何一种可与用户通过键盘、鼠标、遥控器、触摸板或声控设备等方式进行人机交互的电子产品,例如,个人计算机、平板电脑、智能手机、个人数字助理(Personal Digital Assistant,PDA)、游戏机、交互式网络电视(Internet Protocol Television,IPTV)、智能式穿戴式设备等。The electronic device 1 may also be, but is not limited to, any electronic product that can interact with a user through a keyboard, a mouse, a remote control, a touchpad, or a voice-activated device, such as a personal computer, a tablet computer, or a smartphone , Personal Digital Assistant (PDA), game console, Internet Protocol Television (IPTV), smart wearable devices, etc.
所述电子设备1还可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。The electronic device 1 may also be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
所述电子设备1所处的网络包括但不限于互联网、广域网、城域网、局域网、虚拟专用网络(Virtual Private Network,VPN)等。The network in which the electronic device 1 is located includes, but is not limited to, the Internet, a wide area network, a metropolitan area network, a local area network, a virtual private network (Virtual Private Network, VPN), and the like.
在本申请的一个实施例中,所述电子设备1包括,但不限于,存储器12、处理器13,以及存储在所述存储器12中并可在所述处理器13上运行的计算机可读指令,例如路线推荐程序。本领域技术人员可以理解,所述示意图仅 仅是电子设备1的示例,并不构成对电子设备1的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如所述电子设备1还可以包括输入输出设备、网络接入设备、总线等。In an embodiment of the present application, the electronic device 1 includes, but is not limited to, a memory 12, a processor 13, and computer-readable instructions stored in the memory 12 and executable on the processor 13. , Such as a route recommendation program. A person skilled in the art may understand that the schematic diagram is only an example of the electronic device 1 and does not constitute a limitation on the electronic device 1. It may include more or fewer components than shown in the figure, or combine some components, or different Components, for example, the electronic device 1 may further include an input-output device, a network access device, a bus, and the like.
所称处理器13可以是中央处理单元(Central Processing Unit,CPU),还可以是其他通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现成可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等,所述处理器13是所述电子设备1的运算核心和控制中心,利用各种接口和线路连接整个电子设备1的各个部分,及执行所述电子设备1的操作系统以及安装的各类应用程序、程序代码等。The so-called processor 13 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The processor 13 is a computing core and control center of the electronic device 1, and uses various interfaces and lines to connect the entire electronic device. Each part 1 executes an operating system of the electronic device 1 and installed various application programs, program codes, and the like.
所述处理器13执行所述电子设备1的操作系统以及安装的各类应用程序。所述处理器13执行所述应用程序以实现上述各个路线推荐方法实施例中的步骤,例如图1所示的步骤S10、S11、S12、S13、S14、S15及S16。The processor 13 executes an operating system of the electronic device 1 and various application programs installed. The processor 13 executes the application program to implement the steps in the above various route recommendation method embodiments, such as steps S10, S11, S12, S13, S14, S15, and S16 shown in FIG. 1.
或者,所述处理器13执行所述计算机可读指令时实现上述各装置实施例中各模块/单元的功能,例如:获取目标车辆的当前位置;以所述当前位置为中心,确定至少一个路线;确定所述至少一个路线的路况信息;根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;获取每条可选路线的路程;根据所述平均速度及所述路程,从所述可选路线中确定目标路线。Alternatively, when the processor 13 executes the computer-readable instructions, the functions of the modules / units in the foregoing device embodiments are implemented, for example: obtaining the current position of the target vehicle; and using the current position as the center to determine at least one route Determining traffic condition information of the at least one route; filtering out optional routes from the at least one route according to the traffic condition information of the at least one route; obtaining each of the optional routes from the traffic condition information of the at least one route The average speed of the vehicles on the route; the distance of each selectable route is obtained; and the target route is determined from the selectable routes according to the average speed and the distance.
示例性的,所述计算机可读指令可以被分割成一个或多个模块/单元,所述一个或者多个模块/单元被存储在所述存储器12中,并由所述处理器13执行,以完成本申请。所述一个或多个模块/单元可以是能够完成特定功能的一系列计算机可读指令段,该指令段用于描述所述计算机可读指令在所述电子设备1中的执行过程。例如,所述计算机可读指令可以被分割成获取单元110、确定单元111、筛选单元112及提示单元113。Exemplarily, the computer-readable instructions may be divided into one or more modules / units, and the one or more modules / units are stored in the memory 12 and executed by the processor 13 to Complete this application. The one or more modules / units may be a series of computer-readable instruction segments capable of performing a specific function, and the instruction segments are used to describe an execution process of the computer-readable instructions in the electronic device 1. For example, the computer-readable instructions may be divided into an obtaining unit 110, a determining unit 111, a filtering unit 112, and a prompting unit 113.
所述存储器12可用于存储所述计算机可读指令和/或模块,所述处理器13通过运行或执行存储在所述存储器12内的计算机可读指令和/或模块,以及调用存储在存储器12内的数据,实现所述电子设备1的各种功能。所述存储器12可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器12可以包括高速随机存取存储器,还可以包括非易失性存储器,例如硬盘、内存、插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)、至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 12 may be configured to store the computer-readable instructions and / or modules, and the processor 13 may execute or execute the computer-readable instructions and / or modules stored in the memory 12 and call the memory 12 The internal data realizes various functions of the electronic device 1. The memory 12 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, at least one application required by a function (such as a sound playback function, an image playback function, etc.), etc .; the storage data area may Stores data (such as audio data, phone book, etc.) created based on the use of the phone. In addition, the memory 12 may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, an internal memory, a plug-in hard disk, a Smart Media Card (SMC), and a Secure Digital (SD). Card, flash memory card (Flash card), at least one disk storage device, flash memory device, or other volatile solid-state storage device.
所述存储器12可以是电子设备1的外部存储器和/或内部存储器。进一步地,所述存储器12可以是集成电路中没有实物形式的具有存储功能的电 路,如RAM(Random-Access Memory,随机存取存储器)、FIFO(First In First Out,)等。或者,所述存储器12也可以是具有实物形式的存储器,如内存条、TF卡(Trans-flash Card)等等。The memory 12 may be an external memory and / or an internal memory of the electronic device 1. Further, the memory 12 may be a circuit having a storage function, such as RAM (Random-Access Memory, Random Access Memory), FIFO (First In, First Out, etc.), which is not in a physical form in an integrated circuit. Alternatively, the memory 12 may also be a physical memory, such as a memory stick, a TF card (Trans-flash Card), and the like.
所述电子设备1集成的模块/单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个非易失性可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,也可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性可读存储介质中,该计算机可读指令在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机可读指令包括计算机可读指令代码,所述计算机可读指令代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述非易失性可读介质可以包括:能够携带所述计算机可读指令代码的任何实体或装置、记录介质、U盘、移动硬盘、磁碟、光盘、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质等。需要说明的是,所述非易失性可读介质包含的内容可以根据司法管辖区内立法和专利实践的要求进行适当的增减,例如在某些司法管辖区,根据立法和专利实践,非易失性可读介质不包括电载波信号和电信信号。When the integrated module / unit of the electronic device 1 is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a non-volatile readable storage medium. Based on this understanding, this application implements all or part of the processes in the methods of the above embodiments, and can also be completed by computer-readable instructions instructing related hardware. The computer-readable instructions can be stored in a non-volatile memory. In the read storage medium, when the computer-readable instructions are executed by a processor, the steps of the foregoing method embodiments can be implemented. The computer-readable instructions include computer-readable instruction codes, and the computer-readable instruction codes may be in a source code form, an object code form, an executable file, or some intermediate form. The non-volatile readable medium may include: any entity or device capable of carrying the computer-readable instruction code, a recording medium, a U disk, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), electric carrier signals, telecommunication signals, and software distribution media. It should be noted that the content contained in the non-volatile readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdictions. Volatile readable media does not include electrical carrier signals and telecommunication signals.
结合图1,所述电子设备1中的所述存储器12存储多个指令以实现一种路线推荐方法,所述处理器13可执行所述多个指令从而实现:获取目标车辆的当前位置;以所述当前位置为中心,确定至少一个路线;确定所述至少一个路线的路况信息;根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;获取每条可选路线的路程;根据所述平均速度及所述路程,从所述可选路线中确定目标路线。With reference to FIG. 1, the memory 12 in the electronic device 1 stores a plurality of instructions to implement a route recommendation method, and the processor 13 may execute the plurality of instructions to achieve: obtaining a current position of a target vehicle; Determining the current position as the center, determining at least one route; determining the traffic condition information of the at least one route; filtering out optional routes from the at least one route according to the traffic condition information of the at least one route; In the route information of the route, the average speed of the vehicles on each optional route is obtained; the distance of each optional route is obtained; and the target route is determined from the optional routes according to the average speed and the distance.
根据本申请优选实施例,所述处理器13还执行多个指令包括:According to a preferred embodiment of the present application, the processor 13 further executes multiple instructions including:
以所述当前位置为中心,获取配置范围内的至少一个路口;Acquiring at least one intersection within a configuration range with the current position as a center;
确定所述当前位置到所述至少一个路口的最短路径;Determining a shortest path from the current location to the at least one intersection;
将所述至少一个路口的最短路径配置为所述至少一个路线。The shortest path of the at least one intersection is configured as the at least one route.
根据本申请优选实施例,所述处理器13还执行多个指令包括:According to a preferred embodiment of the present application, the processor 13 further executes multiple instructions including:
采用迪杰斯特拉算法确定所述当前位置到所述至少一个路口的最短路径。A Dijkstra algorithm is used to determine the shortest path from the current location to the at least one intersection.
根据本申请优选实施例,所述处理器13还执行多个指令包括:According to a preferred embodiment of the present application, the processor 13 further executes multiple instructions including:
计算预设时长内,所述至少一个路线上车辆的平均速度;Calculating an average speed of vehicles on the at least one route within a preset time period;
调取所述至少一个路线上车辆的配置车速范围;Calling a configured speed range of a vehicle on the at least one route;
根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵;Determining whether the at least one route is congested according to the average speed and the configured vehicle speed range;
调取所述至少一个路线的监控录像;Acquiring a surveillance video of the at least one route;
根据所述监控录像,确定所述至少一个路线的路面状况。Determining a pavement condition of the at least one route according to the monitoring video.
根据本申请优选实施例,所述处理器13还执行多个指令包括:According to a preferred embodiment of the present application, the processor 13 further executes multiple instructions including:
从所述配置车速范围中获取第一范围、第二范围及第三范围,其中,所述第一范围中的值小于所述第二范围中的值,且所述第二范围中的值小于所述第三范围中的值;A first range, a second range, and a third range are obtained from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and a value in the second range is less than A value in the third range;
当所述平均速度属于所述第一范围时,确定所述至少一个路线处于拥堵状态;或者Determining that the at least one route is in a congested state when the average speed belongs to the first range; or
当所述平均速度属于所述第二范围时,确定所述至少一个路线处于缓行状态;或者When the average speed belongs to the second range, determine that the at least one route is in a slow running state; or
当所述平均速度属于所述第三范围时,确定所述至少一个路线处于畅通状态。When the average speed belongs to the third range, it is determined that the at least one route is in a clear state.
根据本申请优选实施例,所述处理器13还执行多个指令包括:According to a preferred embodiment of the present application, the processor 13 further executes multiple instructions including:
从所述路况信息中获取所述至少一个路线的路面状况;Acquiring a road surface condition of the at least one route from the road condition information;
从所述至少一个路线中,确定路面状况为施工或者损毁的不可选路线;Determining, from the at least one route, an unselectable route with a pavement condition of construction or damage;
从所述至少一个路线中去除所述不可选路线以得到所述可选路线。The non-selectable route is removed from the at least one route to obtain the optional route.
根据本申请优选实施例,所述处理器13还执行多个指令包括:According to a preferred embodiment of the present application, the processor 13 further executes multiple instructions including:
根据所述平均速度及所述路程,计算每条可选路线的通行时间;Calculating the transit time of each selectable route according to the average speed and the distance;
对所述通行时间进行排序;Sorting the transit time;
将所述通行时间排在预设位置的可选路线确定为所述目标路线。An optional route in which the travel time is ranked at a preset position is determined as the target route.
根据本申请优选实施例,所述处理器13还执行多个指令包括:According to a preferred embodiment of the present application, the processor 13 further executes multiple instructions including:
获取所述当前位置到所述目标路线的第一个路口的第一距离;Acquiring a first distance from the current location to a first intersection of the target route;
当所述第一距离小于或者等于预设距离时,提示所述目标车辆的用户切换行驶方向。When the first distance is less than or equal to a preset distance, a user of the target vehicle is prompted to switch a driving direction.
具体地,所述处理器13对上述指令的具体实现方法可参考图1对应实施例中相关步骤的描述,在此不赘述。Specifically, for a specific implementation method of the instruction by the processor 13, reference may be made to the description of related steps in the embodiment corresponding to FIG. 1, and details are not described herein again.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely schematic. For example, the division of the modules is only a logical function division, and there may be another division manner in actual implementation.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical units, may be located in one place, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能模块的形式实现。In addition, each functional module in each embodiment of the present application may be integrated into one processing unit, or each unit may exist separately physically, or two or more units may be integrated into one unit. The integrated unit can be implemented in the form of hardware, or in the form of hardware plus software functional modules.
对于本领域技术人员而言,显然本申请不限于上述示范性实施例的细节,而且在不背离本申请的精神或基本特征的情况下,能够以其他的具体形式实现本申请。It is obvious to a person skilled in the art that the present application is not limited to the details of the above exemplary embodiments, and that the present application can be implemented in other specific forms without departing from the spirit or basic features of the application.
因此,无论从哪一点来看,均应将实施例看作是示范性的,而且是非限制性的,本申请的范围由所附权利要求而不是上述说明限定,因此旨在将落在权利要求的等同要件的含义和范围内的所有变化涵括在本申请内。不应将权利要求中的任何附关联图标记视为限制所涉及的权利要求。Therefore, the embodiments should be regarded as exemplary and non-limiting in every respect. The scope of the present application is defined by the appended claims rather than the above description, and therefore is intended to fall within the claims. All changes that are within the meaning and scope of equivalent requirements are included in this application. Any accompanying figure mark in a claim should not be considered as limiting the claim involved.
此外,显然“包括”一词不排除其他单元或步骤,单数不排除复数。系统权利要求中陈述的多个单元或装置也可以由一个单元或装置通过软件或者硬件来实现。第二等词语用来表示名称,而并不表示任何特定的顺序。In addition, it is clear that the word "comprising" does not exclude other units or steps, and that the singular does not exclude the plural. A plurality of units or devices stated in the system claims may also be implemented by one unit or device through software or hardware. Second-class words are used to indicate names, but not in any particular order.
最后应说明的是,以上实施例仅用以说明本申请的技术方案而非限制,尽管参照较佳实施例对本申请进行了详细说明,本领域的普通技术人员应当理解,可以对本申请的技术方案进行修改或等同替换,而不脱离本申请技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present application, but not limited, although the present application has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present application Modifications or equivalent substitutions can be made without departing from the spirit and scope of the technical solution of the present application.

Claims (20)

  1. 一种路线推荐方法,其特征在于,所述方法包括:A route recommendation method, characterized in that the method includes:
    获取目标车辆的当前位置;Get the current position of the target vehicle;
    以所述当前位置为中心,确定至少一个路线;Determine at least one route centered on the current position;
    确定所述至少一个路线的路况信息;Determining road condition information of the at least one route;
    根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;Filtering selectable routes from the at least one route according to the traffic condition information of the at least one route;
    从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;Obtaining the average speed of vehicles on each selectable route from the road condition information of the at least one route;
    获取每条可选路线的路程;Get the distance of each alternative route;
    根据所述平均速度及所述路程,从所述可选路线中确定目标路线。A target route is determined from the selectable routes based on the average speed and the distance.
  2. 如权利要求1所述的路线推荐方法,其特征在于,所述以所述当前位置为中心,确定至少一个路线包括:The route recommendation method according to claim 1, wherein determining at least one route centered on the current location comprises:
    以所述当前位置为中心,获取配置范围内的至少一个路口;Acquiring at least one intersection within a configuration range with the current position as a center;
    确定所述当前位置到所述至少一个路口的最短路径;Determining a shortest path from the current location to the at least one intersection;
    将所述至少一个路口的最短路径配置为所述至少一个路线。The shortest path of the at least one intersection is configured as the at least one route.
  3. 如权利要求2所述的路线推荐方法,其特征在于,所述确定所述当前位置到所述至少一个路口的最短路径包括:The route recommendation method according to claim 2, wherein determining the shortest path from the current location to the at least one intersection comprises:
    采用迪杰斯特拉算法确定所述当前位置到所述至少一个路口的最短路径。A Dijkstra algorithm is used to determine the shortest path from the current location to the at least one intersection.
  4. 如权利要求1所述的路线推荐方法,其特征在于,所述确定所述至少一个路线的路况信息包括:The route recommendation method according to claim 1, wherein the determining the road condition information of the at least one route comprises:
    计算预设时长内,所述至少一个路线上车辆的平均速度;Calculating an average speed of vehicles on the at least one route within a preset time period;
    调取所述至少一个路线上车辆的配置车速范围;Calling a configured speed range of a vehicle on the at least one route;
    根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵;Determining whether the at least one route is congested according to the average speed and the configured vehicle speed range;
    调取所述至少一个路线的监控录像;Acquiring a surveillance video of the at least one route;
    根据所述监控录像,确定所述至少一个路线的路面状况。Determining a pavement condition of the at least one route according to the monitoring video.
  5. 如权利要求4所述的路线推荐方法,其特征在于,所述根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵包括:The route recommendation method according to claim 4, wherein determining whether the at least one route is congested according to the average speed and the configured vehicle speed range comprises:
    从所述配置车速范围中获取第一范围、第二范围及第三范围,其中,所述第一范围中的值小于所述第二范围中的值,且所述第二范围中的值小于所述第三范围中的值;A first range, a second range, and a third range are obtained from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and a value in the second range is less than A value in the third range;
    当所述平均速度属于所述第一范围时,确定所述至少一个路线处于拥堵状态;或者Determining that the at least one route is in a congested state when the average speed belongs to the first range; or
    当所述平均速度属于所述第二范围时,确定所述至少一个路线处于缓行状态;或者When the average speed belongs to the second range, determine that the at least one route is in a slow running state; or
    当所述平均速度属于所述第三范围时,确定所述至少一个路线处于畅通 状态。When the average speed belongs to the third range, it is determined that the at least one route is in a clear state.
  6. 如权利要求1所述的路线推荐方法,其特征在于,所述根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线包括:The route recommendation method according to claim 1, wherein the filtering out of the at least one route from the at least one route according to the traffic condition information of the at least one route comprises:
    从所述路况信息中获取所述至少一个路线的路面状况;Acquiring a road surface condition of the at least one route from the road condition information;
    从所述至少一个路线中,确定路面状况为施工或者损毁的不可选路线;Determining, from the at least one route, an unselectable route with a pavement condition of construction or damage;
    从所述至少一个路线中去除所述不可选路线以得到所述可选路线。The non-selectable route is removed from the at least one route to obtain the optional route.
  7. 如权利要求1所述的路线推荐方法,其特征在于,所述根据所述平均速度及所述路程,从所述可选路线中确定目标路线包括:The route recommendation method of claim 1, wherein determining the target route from the selectable routes according to the average speed and the distance comprises:
    根据所述平均速度及所述路程,计算每条可选路线的通行时间;Calculating the transit time of each selectable route according to the average speed and the distance;
    对所述通行时间进行排序;Sorting the transit time;
    将所述通行时间排在预设位置的可选路线确定为所述目标路线。An optional route in which the travel time is ranked at a preset position is determined as the target route.
  8. 如权利要求1所述的路线推荐方法,其特征在于,在根据所述平均速度及所述路程,从所述可选路线中确定目标路线后,所述方法还包括:The route recommendation method according to claim 1, wherein after determining a target route from the selectable routes according to the average speed and the distance, the method further comprises:
    获取所述当前位置到所述目标路线的第一个路口的第一距离;Acquiring a first distance from the current location to a first intersection of the target route;
    当所述第一距离小于或者等于预设距离时,提示所述目标车辆的用户切换行驶方向。When the first distance is less than or equal to a preset distance, a user of the target vehicle is prompted to switch a driving direction.
  9. 一种路线推荐装置,其特征在于,所述装置包括:A route recommendation device, characterized in that the device includes:
    获取单元,用于获取目标车辆的当前位置;An obtaining unit, configured to obtain the current position of the target vehicle;
    确定单元,用于以所述当前位置为中心,确定至少一个路线;A determining unit, configured to determine at least one route centered on the current position;
    所述确定单元,还用于确定所述至少一个路线的路况信息;The determining unit is further configured to determine road condition information of the at least one route;
    筛选单元,用于根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;A screening unit, configured to filter an optional route from the at least one route according to the traffic condition information of the at least one route;
    所述获取单元,还用于从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;The obtaining unit is further configured to obtain an average speed of a vehicle on each selectable route from the road condition information of the at least one route;
    所述获取单元,还用于获取每条可选路线的路程;The obtaining unit is further configured to obtain a distance of each selectable route;
    所述确定单元,还用于根据所述平均速度及所述路程,从所述可选路线中确定目标路线。The determining unit is further configured to determine a target route from the selectable routes according to the average speed and the distance.
  10. 一种电子设备,其特征在于,所述电子设备包括:An electronic device, characterized in that the electronic device includes:
    存储器,存储至少一个指令;及A memory that stores at least one instruction; and
    处理器,执行所述存储器中存储的指令以实现以下步骤:A processor that executes instructions stored in the memory to implement the following steps:
    获取目标车辆的当前位置;Get the current position of the target vehicle;
    以所述当前位置为中心,确定至少一个路线;Determine at least one route centered on the current position;
    确定所述至少一个路线的路况信息;Determining road condition information of the at least one route;
    根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;Filtering selectable routes from the at least one route according to the traffic condition information of the at least one route;
    从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;Obtaining the average speed of vehicles on each selectable route from the road condition information of the at least one route;
    获取每条可选路线的路程;Get the distance of each alternative route;
    根据所述平均速度及所述路程,从所述可选路线中确定目标路线。A target route is determined from the selectable routes based on the average speed and the distance.
  11. 如权利要求10所述的电子设备,其特征在于,所述以所述当前位置 为中心,确定至少一个路线时,所述处理器执行所述存储器中存储的指令以实现以下步骤:The electronic device according to claim 10, wherein when determining at least one route centered on the current position, the processor executes instructions stored in the memory to implement the following steps:
    以所述当前位置为中心,获取配置范围内的至少一个路口;Obtaining at least one intersection within a configuration range with the current position as a center;
    确定所述当前位置到所述至少一个路口的最短路径;Determining a shortest path from the current location to the at least one intersection;
    将所述至少一个路口的最短路径配置为所述至少一个路线。The shortest path of the at least one intersection is configured as the at least one route.
  12. 如权利要求10所述的电子设备,其特征在于,所述确定所述至少一个路线的路况信息时,所述处理器执行所述存储器中存储的指令以实现以下步骤:The electronic device according to claim 10, wherein when determining the traffic condition information of the at least one route, the processor executes instructions stored in the memory to implement the following steps:
    计算预设时长内,所述至少一个路线上车辆的平均速度;Calculating an average speed of a vehicle on the at least one route within a preset duration;
    调取所述至少一个路线上车辆的配置车速范围;Calling a configured speed range of a vehicle on the at least one route;
    根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵;Determining whether the at least one route is congested according to the average speed and the configured vehicle speed range;
    调取所述至少一个路线的监控录像;Acquiring a surveillance video of the at least one route;
    根据所述监控录像,确定所述至少一个路线的路面状况。Determining a pavement condition of the at least one route according to the monitoring video.
  13. 如权利要求12所述的电子设备,其特征在于,所述根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵时,所述处理器执行所述存储器中存储的指令以实现以下步骤:The electronic device according to claim 12, wherein when determining whether the at least one route is congested according to the average speed and the configured vehicle speed range, the processor executes an instruction stored in the memory. To achieve the following steps:
    从所述配置车速范围中获取第一范围、第二范围及第三范围,其中,所述第一范围中的值小于所述第二范围中的值,且所述第二范围中的值小于所述第三范围中的值;A first range, a second range, and a third range are obtained from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and a value in the second range is less than A value in the third range;
    当所述平均速度属于所述第一范围时,确定所述至少一个路线处于拥堵状态;或者Determining that the at least one route is in a congested state when the average speed belongs to the first range; or
    当所述平均速度属于所述第二范围时,确定所述至少一个路线处于缓行状态;或者When the average speed belongs to the second range, determine that the at least one route is in a slow running state; or
    当所述平均速度属于所述第三范围时,确定所述至少一个路线处于畅通状态。When the average speed belongs to the third range, it is determined that the at least one route is in a clear state.
  14. 如权利要求10所述的电子设备,其特征在于,所述根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线时,所述处理器执行所述存储器中存储的指令以实现以下步骤:The electronic device according to claim 10, wherein when the optional route is filtered out of the at least one route according to the traffic condition information of the at least one route, the processor executes storing in the memory Instructions to implement the following steps:
    从所述路况信息中获取所述至少一个路线的路面状况;Acquiring a road surface condition of the at least one route from the road condition information;
    从所述至少一个路线中,确定路面状况为施工或者损毁的不可选路线;Determining, from the at least one route, an unselectable route with a pavement condition of construction or damage;
    从所述至少一个路线中去除所述不可选路线以得到所述可选路线。The non-selectable route is removed from the at least one route to obtain the optional route.
  15. 如权利要求10所述的电子设备,其特征在于,所述根据所述平均速度及所述路程,从所述可选路线中确定目标路线时,所述处理器执行所述存储器中存储的指令以实现以下步骤:The electronic device according to claim 10, wherein when the target route is determined from the selectable routes based on the average speed and the distance, the processor executes instructions stored in the memory To achieve the following steps:
    根据所述平均速度及所述路程,计算每条可选路线的通行时间;Calculating the transit time of each selectable route according to the average speed and the distance;
    对所述通行时间进行排序;Sorting the transit time;
    将所述通行时间排在预设位置的可选路线确定为所述目标路线。An optional route in which the travel time is ranked at a preset position is determined as the target route.
  16. 一种非易失性可读存储介质,其特征在于,所述非易失性可读存储介质中存储有至少一个指令,所述至少一个指令被电子设备中的处理器执行 以实现以下步骤:A non-volatile readable storage medium, characterized in that the non-volatile readable storage medium stores at least one instruction, and the at least one instruction is executed by a processor in an electronic device to implement the following steps:
    获取目标车辆的当前位置;Get the current position of the target vehicle;
    以所述当前位置为中心,确定至少一个路线;Determine at least one route centered on the current position;
    确定所述至少一个路线的路况信息;Determining road condition information of the at least one route;
    根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线;Filtering selectable routes from the at least one route according to the traffic condition information of the at least one route;
    从所述至少一个路线的路况信息中,获取每条可选路线上车辆的平均速度;Obtaining the average speed of vehicles on each selectable route from the road condition information of the at least one route;
    获取每条可选路线的路程;Get the distance of each alternative route;
    根据所述平均速度及所述路程,从所述可选路线中确定目标路线。A target route is determined from the selectable routes based on the average speed and the distance.
  17. 如权利要求16所述的存储介质,其特征在于,所述以所述当前位置为中心,确定至少一个路线时,所述至少一个指令被所述处理器执行以实现以下步骤:The storage medium of claim 16, wherein when the at least one route is determined with the current position as the center, the at least one instruction is executed by the processor to implement the following steps:
    以所述当前位置为中心,获取配置范围内的至少一个路口;Acquiring at least one intersection within a configuration range with the current position as a center;
    确定所述当前位置到所述至少一个路口的最短路径;Determining a shortest path from the current location to the at least one intersection;
    将所述至少一个路口的最短路径配置为所述至少一个路线。The shortest path of the at least one intersection is configured as the at least one route.
  18. 如权利要求16所述的存储介质,其特征在于,所述确定所述至少一个路线的路况信息时,所述至少一个指令被所述处理器执行以实现以下步骤:The storage medium according to claim 16, wherein when the traffic condition information of the at least one route is determined, the at least one instruction is executed by the processor to implement the following steps:
    计算预设时长内,所述至少一个路线上车辆的平均速度;Calculating an average speed of vehicles on the at least one route within a preset time period;
    调取所述至少一个路线上车辆的配置车速范围;Calling a configured speed range of a vehicle on the at least one route;
    根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵;Determining whether the at least one route is congested according to the average speed and the configured vehicle speed range;
    调取所述至少一个路线的监控录像;Acquiring a surveillance video of the at least one route;
    根据所述监控录像,确定所述至少一个路线的路面状况。Determining a pavement condition of the at least one route according to the monitoring video.
  19. 如权利要求18所述的存储介质,其特征在于,所述根据所述平均速度及所述配置车速范围,确定所述至少一个路线是否拥堵时,所述至少一个指令被所述处理器执行以实现以下步骤:The storage medium of claim 18, wherein when determining whether the at least one route is congested based on the average speed and the configured vehicle speed range, the at least one instruction is executed by the processor to Implement the following steps:
    从所述配置车速范围中获取第一范围、第二范围及第三范围,其中,所述第一范围中的值小于所述第二范围中的值,且所述第二范围中的值小于所述第三范围中的值;A first range, a second range, and a third range are obtained from the configured vehicle speed range, wherein a value in the first range is smaller than a value in the second range, and a value in the second range is less than A value in the third range;
    当所述平均速度属于所述第一范围时,确定所述至少一个路线处于拥堵状态;或者Determining that the at least one route is in a congested state when the average speed belongs to the first range; or
    当所述平均速度属于所述第二范围时,确定所述至少一个路线处于缓行状态;或者When the average speed belongs to the second range, determine that the at least one route is in a slow running state; or
    当所述平均速度属于所述第三范围时,确定所述至少一个路线处于畅通状态。When the average speed belongs to the third range, it is determined that the at least one route is in a clear state.
  20. 如权利要求16所述的存储介质,其特征在于,所述根据所述至少一个路线的路况信息,从所述至少一个路线中筛选出可选路线时,所述至少一个指令被所述处理器执行以实现以下步骤:The storage medium according to claim 16, wherein when the optional route is filtered out of the at least one route according to the traffic condition information of the at least one route, the at least one instruction is processed by the processor. Perform the following steps:
    从所述路况信息中获取所述至少一个路线的路面状况;Acquiring a road surface condition of the at least one route from the road condition information;
    从所述至少一个路线中,确定路面状况为施工或者损毁的不可选路线;Determining, from the at least one route, an unselectable route with a pavement condition of construction or damage;
    从所述至少一个路线中去除所述不可选路线以得到所述可选路线。The non-selectable route is removed from the at least one route to obtain the optional route.
PCT/CN2019/077364 2018-08-15 2019-03-07 Route recommendation method and apparatus, electronic device and storage medium WO2020034625A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810930021.1 2018-08-15
CN201810930021.1A CN109341709A (en) 2018-08-15 2018-08-15 Route recommendation method, electronic equipment and computer readable storage medium

Publications (1)

Publication Number Publication Date
WO2020034625A1 true WO2020034625A1 (en) 2020-02-20

Family

ID=65291564

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/077364 WO2020034625A1 (en) 2018-08-15 2019-03-07 Route recommendation method and apparatus, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN109341709A (en)
WO (1) WO2020034625A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112885130A (en) * 2021-01-22 2021-06-01 北京嘀嘀无限科技发展有限公司 Method and device for presenting road information

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109341709A (en) * 2018-08-15 2019-02-15 深圳壹账通智能科技有限公司 Route recommendation method, electronic equipment and computer readable storage medium
CN110457606A (en) * 2019-04-26 2019-11-15 华为技术有限公司 A kind of route recommendation method and electronic device
CN110244725B (en) * 2019-06-13 2020-09-11 腾讯科技(深圳)有限公司 Control method and device for simulated vehicle, storage medium and electronic device
CN110657815A (en) * 2019-09-07 2020-01-07 苏州浪潮智能科技有限公司 Dijkstra navigation method, system, terminal and storage medium based on cloud computing
CN113160598A (en) * 2021-03-31 2021-07-23 深圳市锐明技术股份有限公司 Route planning method, device, server and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102393206A (en) * 2011-10-19 2012-03-28 北京世纪高通科技有限公司 Path planning method and device
CN103471596A (en) * 2012-06-08 2013-12-25 纽海信息技术(上海)有限公司 Shortest path guiding method and shortest path guiding system
CN104121915A (en) * 2013-04-25 2014-10-29 中国移动通信集团安徽有限公司 Real-time road navigation method and system
JP2017207362A (en) * 2016-05-18 2017-11-24 トヨタ自動車株式会社 Route information provision device
US20170370738A1 (en) * 2016-06-23 2017-12-28 Hyundai Motor Company System and method for guiding route of electric vehicle
CN107883971A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 The update method and device of navigation way
CN109341709A (en) * 2018-08-15 2019-02-15 深圳壹账通智能科技有限公司 Route recommendation method, electronic equipment and computer readable storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104596531B (en) * 2014-05-28 2018-12-28 腾讯科技(深圳)有限公司 A kind of generation method of navigation routine, device and server
CN104834308A (en) * 2015-04-10 2015-08-12 浙江工业大学 Optimal itineration control method satisfying complex requirement
CN105258707A (en) * 2015-11-24 2016-01-20 上海斐讯数据通信技术有限公司 Navigation optimization method and system, and electronic equipment
CN105631551A (en) * 2016-01-04 2016-06-01 浪潮软件集团有限公司 Optimal route recommendation method and device
CN106225797B (en) * 2016-06-30 2019-08-20 银江股份有限公司 A kind of paths planning method
CN108256669A (en) * 2017-12-20 2018-07-06 中国地质大学(武汉) A kind of scenic spot routing resource and system based on improvement dijkstra's algorithm

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102393206A (en) * 2011-10-19 2012-03-28 北京世纪高通科技有限公司 Path planning method and device
CN103471596A (en) * 2012-06-08 2013-12-25 纽海信息技术(上海)有限公司 Shortest path guiding method and shortest path guiding system
CN104121915A (en) * 2013-04-25 2014-10-29 中国移动通信集团安徽有限公司 Real-time road navigation method and system
JP2017207362A (en) * 2016-05-18 2017-11-24 トヨタ自動車株式会社 Route information provision device
US20170370738A1 (en) * 2016-06-23 2017-12-28 Hyundai Motor Company System and method for guiding route of electric vehicle
CN107883971A (en) * 2016-09-30 2018-04-06 法乐第(北京)网络科技有限公司 The update method and device of navigation way
CN109341709A (en) * 2018-08-15 2019-02-15 深圳壹账通智能科技有限公司 Route recommendation method, electronic equipment and computer readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112885130A (en) * 2021-01-22 2021-06-01 北京嘀嘀无限科技发展有限公司 Method and device for presenting road information

Also Published As

Publication number Publication date
CN109341709A (en) 2019-02-15

Similar Documents

Publication Publication Date Title
WO2020034625A1 (en) Route recommendation method and apparatus, electronic device and storage medium
US10262529B2 (en) Management of moving objects
US20230175857A1 (en) System and Method for Presenting Autonomy-Switching Directions
US10032367B2 (en) Management of mobile objects and service platform for mobile objects
US10360800B2 (en) Warning driver of intent of others
US9805598B2 (en) Management of mobile objects
US10401182B2 (en) Systems and methods for avoiding location-dependent driving restrictions
EP3177892B1 (en) An apparatus and associated methods for navigation of road intersections
EP3009798B1 (en) Providing alternative road navigation instructions for drivers on unfamiliar roads
US9243925B2 (en) Generating a sequence of lane-specific driving directions
US11398150B2 (en) Navigation analysis for a multi-lane roadway
US20170234694A1 (en) Cognitive parking guidance
US20160187152A1 (en) Route calculation system, route calculation method, and computer program
US20210097559A1 (en) Rider pickup location optimization system
US20170178504A1 (en) Management of mobile objects
US10745010B2 (en) Detecting anomalous vehicle behavior through automatic voting
US20220324478A1 (en) Electronic control device, control method, and automatic driving system
CN107745711B (en) Method and device for determining route in automatic driving mode
JP2021009688A (en) Unmanned traveling vehicle patrol method, unmanned traveling vehicle and storage medium
US20160033298A1 (en) Generating a query index and querying on the basis of the query index
JP2021526246A (en) Systems and methods to improve the visualization of traffic conditions
CN112539754A (en) RDS-TMC-based high-precision map and traditional map path matching method and device
US11094195B2 (en) Dynamic predictive systems for vehicle traffic management
US20150211872A1 (en) Navigation method and navigation device
CN111325996B (en) Vehicle passing application method and system, computer readable storage medium and terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19850285

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24/06/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 19850285

Country of ref document: EP

Kind code of ref document: A1