CN114822076A - Parking space selection method, device, equipment and storage medium - Google Patents

Parking space selection method, device, equipment and storage medium Download PDF

Info

Publication number
CN114822076A
CN114822076A CN202210617049.6A CN202210617049A CN114822076A CN 114822076 A CN114822076 A CN 114822076A CN 202210617049 A CN202210617049 A CN 202210617049A CN 114822076 A CN114822076 A CN 114822076A
Authority
CN
China
Prior art keywords
parking space
parking
space information
cache region
remaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210617049.6A
Other languages
Chinese (zh)
Inventor
陈军
孙啸风
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Jidou Technology Co ltd
Original Assignee
Hangzhou Jidou Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Jidou Technology Co ltd filed Critical Hangzhou Jidou Technology Co ltd
Priority to CN202210617049.6A priority Critical patent/CN114822076A/en
Publication of CN114822076A publication Critical patent/CN114822076A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas
    • G08G1/145Traffic control systems for road vehicles indicating individual free spaces in parking areas where the indication depends on the parking areas

Abstract

The application provides a parking stall selection method, a device, equipment and a storage medium, which relates to the field of intelligent transportation, after the parking stall information is classified, the parking stall information is stored in two buffer areas, whether the parking stall is occupied is sensed by a parking stall sensor arranged in a parking lot parking stall, the number of the remaining parking stalls in a second buffer area is increased, decreased and updated according to the information generated by the sensor, the parking stall information stored in the first buffer area and the updated real-time remaining parking stalls are combined, comprehensive sequencing is performed, a sequencing result is returned to a terminal for a user to independently select, the parking stall query efficiency and the timeliness of dynamic parking stall data are improved, the static parking stall information and the real-time dynamic parking stall information are comprehensively utilized, and the user can select more optimal and more appropriate parking stalls.

Description

Parking space selection method, device, equipment and storage medium
Technical Field
The application relates to the technical field of intelligent transportation, in particular to a parking space selection method, a parking space selection device, parking space selection equipment and a storage medium.
Background
With the popularization of private cars, smart parking systems that assist car owners in inquiring about parking lot information and parking are emerging. Many car owners will use the software or system for assisting parking to inquire and select the parking space when they want to park.
At present, most of intelligent parking systems in the market generally search parking lots near a position in a database according to the longitude and latitude position of a user, and the mode has low query efficiency due to the fact that a database hard disk is moved; meanwhile, except for the static information such as the position of the parking lot, the rest parking spaces of the parking lot are also quite important information, and how to acquire the dynamic parking spaces and ensure the timeliness are always the problems which are difficult to solve by various large parking systems.
Disclosure of Invention
In view of this, an object of the embodiments of the present application is to provide a parking space selection method, device, equipment, and storage medium, where remaining parking space information is cached, then the cached remaining parking space information is updated by using sensing data of a parking space sensor, and finally, static information is combined to perform comprehensive sequencing, so that timeliness is improved, and the technical problems that "query efficiency is low, and timeliness cannot be guaranteed when a dynamic parking space is acquired" are solved.
In a first aspect, an embodiment of the present application provides a parking space selection method, where the method includes: classifying the acquired parking space information of the parking lot, and storing the classified parking space information into a first cache region and a second cache region; the remaining parking space information in the parking space information is stored in the second cache region; correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data of the parking space sensors of the parking lot to obtain real-time remaining parking space information; comprehensively sequencing the real-time remaining parking space information according to the parking space information stored in the first cache region to obtain a comprehensive sequencing result; and the comprehensive sequencing result is used for the user to select the parking space.
In the implementation process, the parking lot and the parking space information are classified and cached in the two cache areas respectively, whether the parking space is occupied is sensed through the parking space sensors arranged in the parking lot, the quantity increasing, decreasing, updating and calculating are carried out in the cache area where the residual parking space information exists according to the information generated by the sensors, the static information stored in the other cache area and the updated real-time residual parking space are combined to carry out comprehensive sequencing, the sequencing result is returned to the terminal for the user to independently select, the parking space query efficiency and the timeliness of the dynamic parking space data are improved, and the user can select the parking space more quickly and accurately.
Optionally, the comprehensively sorting the real-time remaining parking space information according to the parking space information stored in the first cache region to obtain a comprehensive sorting result includes: acquiring a target parking lot in an inquiry range from the first cache region based on a parking space inquiry request triggered by a user at the current position; calculating the linear distance between the current position and the target parking lot position according to the target parking lot position stored in the first cache region; sequencing the target parking lots according to the numerical value of the linear distance to obtain a first sequencing result; and matching the real-time remaining parking space information to the first sequencing result to obtain a comprehensive sequencing result.
In the implementation process, the parking spaces are prioritized according to the distance between the parking spaces, mapping matching is performed by combining with the dynamically updated parking spaces, static parking space information and dynamic parking space information are comprehensively utilized, and a user can select a better and more appropriate parking space.
Optionally, the classifying the acquired parking space information of the parking lot, and respectively storing the classified parking space information to the first cache region and the second cache region includes: storing the parking lot position, the parking lot identification, the parking space identification, the total parking space number and the number of the parked parking spaces in the parking space information to the first cache region; and storing the parking lot identification and the number of the remaining parking spaces corresponding to the remaining parking space information in the parking space information to the second cache region.
In the implementation process, the parking space information to be updated is stored in the second cache region preferentially, and the rest information is stored in the first cache region preferentially, so that errors in dynamic data updating are avoided, and the data processing efficiency can be improved.
Optionally, the storing the parking lot identifier and the remaining parking space number corresponding to the remaining parking space information in the parking space information to the second cache area includes: and storing the parking lot identification in the remaining parking space information into the second cache region in a key value pair mode by taking the parking lot identification in the remaining parking space information as a key and the number of remaining parking spaces as a value.
In the implementation process, the data structure storage mode of key value pairs is used for caching, the continuous data structure storage improves the query efficiency, the access speed of real-time remaining parking space data is called in follow-up sequencing, and then the current appropriate parking lot and parking space can be obtained more quickly.
Optionally, the correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data of the parking space sensor in the parking lot to obtain real-time remaining parking space information includes: acquiring sensing data of a parking space sensor corresponding to each parking space in the parking lot; the sensing data is automatically generated by sensing whether the corresponding parking space is occupied or not by the parking space sensor; and correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data to obtain real-time remaining parking space information.
In the implementation process, the condition that whether the parking spaces are occupied is acquired in real time according to the parking space sensors arranged in each parking space, the dynamic data of the cache region is updated in real time, and timeliness and optimality of the final parking lot and parking space sequencing results are guaranteed.
Optionally, the correspondingly updating, according to the sensing data, the remaining parking space information stored in the second cache region to obtain real-time remaining parking space information includes: if the acquired sensing data indicates that the corresponding parking space has a warehousing behavior, quantity increasing and updating the remaining parking space information stored in the second cache region to obtain real-time remaining parking space information; and if the acquired sensing data indicates that the corresponding parking space has a parking-out behavior, the number of the remaining parking space information stored in the second cache region is reduced by one, and real-time remaining parking space information is acquired.
In the implementation process, the parking space sensor informs the parking system of the addition and subtraction condition of the parking space of the parking lot according to the behavior that the vehicle owner drives away from or into the parking space in the parking lot, and the parking system adds and subtracts the number of remaining vehicle positions in the parking lot in the second cache area, so that the dynamic update of the remaining parking spaces is realized, the timeliness of dynamic data is ensured, and the accuracy of the sequencing result is improved.
Optionally, the first cache region and the second cache region are operating memories.
In the implementation process, the first cache region and the second cache region are both running memories, so that compared with a hard disk or other storage devices, the parking system can write in and read out data from the first cache region and the second cache region more rapidly, and therefore the terminal query efficiency and the dynamic processing efficiency of the remaining parking space data are improved.
In a second aspect, an embodiment of the present application provides a parking space selection device, the device includes: the cache module is used for classifying the acquired parking space information of the parking lot and respectively storing the classified parking space information into a first cache region and a second cache region; the remaining parking space information in the parking space information is stored in the second cache region; the remaining parking space information updating module is used for correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data of the parking space sensors of the parking lot to obtain real-time remaining parking space information; the comprehensive sequencing module is used for comprehensively sequencing the real-time remaining parking space information according to the parking space information stored in the first cache region to obtain a comprehensive sequencing result; and the comprehensive sequencing result is used for the user to select the parking space.
In a third aspect, an embodiment of the present application further provides an electronic device, including: a processor, a memory storing machine-readable instructions executable by the processor, the machine-readable instructions being executable by the processor to perform the steps of the method described above when the electronic device is run.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium, on which a computer program is stored, which, when executed by a processor, performs the steps of the method described above.
In order to make the aforementioned objects, features and advantages of the present application more comprehensible, embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments of the present application will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and that those skilled in the art can also obtain other related drawings based on the drawings without inventive efforts.
Fig. 1 is a flowchart of a first parking space selection method provided in an embodiment of the present application;
fig. 2 is a flowchart of a second parking space selection method provided in the embodiment of the present application;
fig. 3 is a schematic functional module diagram of a parking space selection device according to an embodiment of the present application; and
fig. 4 is a block diagram illustrating an electronic device of a parking space selection device according to an embodiment of the present application.
Icon: 210-a cache module; 220-remaining parking space information updating module; 230-a comprehensive ranking module; 300-an electronic device; 311-a memory; 312 — a storage controller; 313-a processor; 314-peripheral interfaces; 315-input-output unit; 316-display unit.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments of the present application without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element. The terms "first," "second," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance.
The inventor of the application notices that in the prior art, wisdom parking system software backstage is with the static parking stall information entry database in parking area, this software can be at a set interval to go to pull the dynamic data in parking area, after the user uploaded own current longitude and latitude position for the backstage at the customer end, the backstage passes through the parking area near database inquiry user, tell user position and surplus parking stall number, this inquiry operation is because the hard disk at database place has been walked, lead to the inquiry inefficiency, and because dynamic data is obtained according to fixed time interval, therefore the timeliness can't guarantee.
Based on the above research, the embodiment of the present application provides a parking space selection method, where a parking system acquires parking space information including a parking lot position, a parking lot identifier, a parking space number, and the like, classifies the information, and stores the information in two buffer areas, that is, the first buffer area stores the parking space information including the parking lot position, the parking space identifier, and the like, and the second buffer area stores the parking space information including the parking lot identifier, the parking space number, and the like; whether the parking space is occupied is sensed by using parking space sensors arranged in parking spaces of the parking lot, and the number of the parking spaces is increased, decreased and updated in a second cache region according to information generated by the sensors; according to the static information stored in the first cache region, the updated real-time remaining parking spaces are combined to perform comprehensive sequencing, and sequencing results are sent to the user, so that selection of a proper parking space is realized, the query efficiency and the timeliness of dynamic parking space data are improved, and the user can select the parking space more quickly and accurately.
Referring to fig. 1, fig. 1 is a first parking space selection method provided in the embodiment of the present application, and a detailed scheme of the method is specifically described below. The method may include step 100, step 120, and step 140.
Wherein the step 100: classifying the acquired parking space information of the parking lot, and respectively storing the classified parking space information into a first cache region and a second cache region; and the rest parking space information in the parking space information is stored in the second cache region.
For example, the acquired parking space information of the parking lot may be the total amount of static information of the parking lot acquired by the parking system from the service provider. The parking system integrates social parking resources in the whole city, integrates urban parking lot information, is established into an intelligent parking lot public service system facing the city, and provides static and dynamic parking guidance information for a driver by using tools such as a three-level electronic guidance board, an internet website, a mobile phone terminal, a vehicle-mounted GPS (global positioning system), a CMMB (China mobile multimedia broadcasting) television, a radio station, telephone service and the like. The parking lot information can specifically comprise various static parking place information such as parking lot positions, parking place information, road traffic states related to driving routes, parking place charging rules and the like, and the information can guide a driver to quickly find the parking lot.
The method comprises the following steps of firstly storing various acquired static parking space information into a database, simply classifying the parking space information stored in the database, and then randomly distributing two buffer areas from a memory space: the first cache region and the second cache region temporarily store the part of the information of the rest parking spaces in the parking space information in the second cache region according to the classification result, and all the rest other information can be temporarily stored in the first cache region. Wherein, remaining parking stall information can be the parking stall at present time not berth the vehicle, be in idle state, the relevant information that the parking stall is unoccupied promptly, for example, remaining parking stall information can include: the number of the remaining parking spaces and/or the parking lot identifications of the remaining parking spaces, and the like.
Step 120: and correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data of the parking space sensors of the parking lot to obtain real-time remaining parking space information.
For example, the parking space sensor may be an infrared sensor or an ultrasonic sensor for sensing whether the corresponding parking space is parked. When the vehicle finishes warehousing, the parking space sensors arranged on corresponding parking spaces generate sensing data of the vehicle warehousing; and when the vehicle finishes the garage-out, the parking space sensors arranged on the corresponding parking spaces generate sensing data of the vehicle after the vehicle leaves the garage.
The parking space sensor transmits the generated sensing data to a cloud database of a target area where a user is located through a network, the parking system can obtain the sensing data generated by the parking space sensor from the cloud database by initiating an http request, and then corresponding updating is carried out on the remaining parking space information temporarily stored in the second cache region according to the sensing data, so that the current latest real-time remaining parking space information is obtained. The network transmission mode may be a wireless transmission mode or a wired transmission mode, and the wireless transmission mode may be a radio frequency transmission mode, an NFC near field communication transmission mode, a bluetooth transmission mode, or a wireless network transmission mode.
Step 140: comprehensively sorting the real-time remaining parking space information according to the parking space information stored in the first cache region to obtain a comprehensive sorting result; and the comprehensive sequencing result is used for the user to select the parking space.
Illustratively, the dynamic updated real-time remaining parking space information of the second cache area is comprehensively sorted into the optimal parking lot and the optimal parking space by combining the static parking space information such as the position of the parking lot temporarily stored in the first cache area, and the comprehensive sorting result is returned to the terminal, so that the user can select the appropriate and optimal parking space at the terminal according to the result. The data are acquired, updated and sequenced in the cache region, and the dynamic allocation data of the parking spaces are acquired in real time, so that the timeliness of the remaining parking spaces of the current parking lot is guaranteed, the phenomenon of repeated parking searching can be effectively reduced, and the parking cost of a driver is reduced.
Referring to fig. 2, fig. 2 is a second parking space selection method according to an embodiment of the present application, and a detailed scheme in fig. 2 is specifically described below. In one embodiment, step 140 may specifically include: step 141, step 142, step 143, and step 144.
Wherein, step 141: and acquiring a target parking lot in the query range from the first cache region based on a parking space query request triggered by the user at the current position.
For example, the parking space query request triggered by the user at the current position may originate from a vehicle-mounted terminal of a vehicle driven by the user, on which a parking space information query platform is operated. The parking space information inquiry platform can be an application program developed by a user or a third-party platform. The query scope may be a scope of autonomous search by the user, for example, 10km near the current location.
When receiving a parking space query request sent by a parking space information query platform operating on a terminal, a parking system acquires current longitude and latitude position information of a user and position information independently searched by the user based on the query request, for example: and parking lots within a range of 10km around, acquiring the initially cached parking lot position information from the first cache region, and extracting the parking lot position information within a range of 10km around the current longitude and latitude position of the user from the initially cached parking lot position information.
Step 142: calculating the linear distance between the current position and the target parking lot position according to the target parking lot position stored in the first cache region;
step 143: sequencing the target parking lots according to the numerical value of the linear distance to obtain a first sequencing result; and
step 144: and matching the real-time remaining parking space information to the first sequencing result to obtain a comprehensive sequencing result.
Illustratively, a plurality of pieces of parking lot position information within a range of 10km around the current longitude and latitude position of the user are extracted from a first cache region, the linear distances between the current position and the parking lot positions are respectively calculated in the cache region, distance comparison is carried out, the parking lots are digitally sorted according to the distance, and a first sorting result is obtained, wherein: the numerical sequence represents the distance sequence of all the parking lots to be selected in the target parking lot set, and the smaller the numerical value is, the closer the selection distance is.
Furthermore, the currently updated real-time remaining parking space information of the second cache area is sequentially matched with the sorted parking lots, that is, the corresponding real-time remaining parking spaces are mapped into the sorting result one by one according to the parking lot identifications of the parking lots, and finally, the matched comprehensive sorting result is returned to the parking space information query platform for displaying. According to the priority sequencing of the distances between the parking spaces and the dynamic updating parking spaces, mapping matching is carried out by combining the dynamic updating parking spaces, static parking space information and dynamic parking space information are comprehensively utilized, and a user can select a better and more appropriate parking space.
In one embodiment, step 100 may specifically include: step 101 and step 102.
Wherein, step 101: storing the parking lot position, the parking lot identification, the parking space identification, the total parking space number and the number of the parked parking spaces in the parking space information to a first cache region;
step 102: and storing the parking lot identification and the number of the remaining parking spaces corresponding to the remaining parking space information in the parking space information into a second cache region.
The parking space information may be, for example, total static parking space information of a parking lot obtained by the parking system from a service provider, and may specifically include various static parking space information such as a parking lot position, parking space information, a road traffic state related to a driving route, and a parking space charging rule. The parking space information may include a parking lot identification, a parking space identification, a total number of parking spaces, a number of parked parking spaces, and a number of unparked parking spaces (a remaining number of parking spaces). The parking lot identifier or the parking space identifier may be a unique name or ID used for representing the parking lot or the parking space through one or more of numbers, characters or character strings.
Firstly, simply classifying parking space information stored in a database, then opening up two memory spaces by a parking system to be respectively used as a first cache region and a second cache region, wherein the first cache region can temporarily store other static parking space information except two information such as a parking lot identifier, the number of parking spaces and the like in a general set form; and the second cache region temporarily stores static parking place information such as the identification of the parking lot, the number of the remaining parking places and the like. The remaining parking space information needing to be updated is preferentially stored in the other cache region, errors are avoided during data updating, and the data processing efficiency can be improved.
In one embodiment, step 102 may specifically include: step 102 a.
Step 102 a: and taking the parking lot identification in the remaining parking space information as a key, taking the number of the remaining parking spaces as a value, and storing the value in a key value pair mode to a second cache region.
For example, the remaining parking space information may include: the number of remaining parking spaces and/or the parking lot identification of the remaining parking spaces. Therefore, the parking lot identification can be used as a key (key) corresponding to the key-value pair (key-value) in the second cache region, the number of the remaining parking spaces is used as a value (value) corresponding to the key-value pair (key-value), and caching is performed in a data structure storage mode of the key-value pair.
In one embodiment, step 120 may specifically include: step 121 and step 122.
Wherein, step 121: acquiring sensing data of a parking space sensor corresponding to each parking space in a parking lot; the sensing data is automatically generated by sensing whether the corresponding parking space is occupied or not by the parking space sensor;
step 122: and correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data to obtain real-time remaining parking space information.
For example, each parking space may be provided with a corresponding parking space sensor. When the vehicle finishes warehousing, namely when the current parking space is occupied, the parking space sensors arranged on the corresponding parking spaces automatically generate sensing data of the vehicle warehousing; when the vehicle is taken out of the garage, namely the current parking space is not occupied, the parking space sensors arranged on the corresponding parking spaces automatically generate sensing data of the vehicle which is taken out of the garage. And receiving the two sensing data, and performing corresponding increase and decrease updating on the number of the remaining parking spaces in the remaining parking space information in the second cache region, so that real-time remaining parking space information with the number of the remaining parking spaces updated in real time can be obtained. The condition that whether the parking spaces are occupied or not is acquired in real time according to the parking space sensors arranged in each parking space, real-time updating of dynamic data of the cache region is achieved, and timeliness and optimality of the final parking lot and parking space sequencing results are guaranteed.
In one embodiment, step 122 may specifically include: step 122a and step 122 b.
Wherein, step 122 a: if the acquired sensing data indicate that the corresponding parking space has a warehousing behavior, quantity increasing and updating the remaining parking space information stored in the second cache region to obtain real-time remaining parking space information;
step 122 b: and if the acquired sensing data indicates that the corresponding parking space has a parking-out behavior, the number of the remaining parking space information stored in the second cache region is reduced by one, and real-time remaining parking space information is acquired.
For example, the warehousing behavior may be an action of the owner driving the vehicle into a parking space; the garage exit behavior can be the action of a vehicle owner driving the vehicle to leave a parking space. When the vehicle finishes warehousing at a certain parking stall, when the parking stall sensor perception is that the current parking stall is occupied promptly, then in the remaining parking stall information of second buffer memory district: reducing the number of the current remaining parking spaces corresponding to the parking lot by one; when the vehicle is finished leaving the garage at a certain parking space, namely the parking sensor senses that the current parking space is not occupied, then in the remaining parking space information of the second cache region: and increasing one for the current remaining parking space number corresponding to the parking lot.
Furthermore, each parking space corresponds to a unique parking lot identifier, when a vehicle parks in any target parking space in the target parking lot identifier area, the parking space sensors on the corresponding target parking spaces generate sensing data according to detected warehousing or ex-warehousing behaviors, and the sensing data are transmitted to a parking system in a wired or wireless mode. The parking space sensor informs the parking system of the addition and subtraction condition of the parking space of the parking lot according to the behavior of the car owner driving away or into the parking space in the parking lot, and the parking system performs addition and subtraction on the number of the remaining car positions in the parking lot in the second cache region, so that the dynamic updating of the remaining parking space is realized, the timeliness of dynamic data is guaranteed, and the accuracy of the sequencing result is improved.
In one embodiment, the first cache region and the second cache region are operating memories.
Illustratively, the run-time memory, which may also be referred to as main memory, may refer to the memory required by the program during run-time, which is only capable of temporarily storing data for exchanging cache data with the CPU. The operating memory here may be RAM random access memory. The first cache region and the second cache region are both running memories, so that compared with a hard disk or other storage devices, the parking system can write in and read out data from the first cache region and the second cache region more quickly, and therefore the terminal query efficiency and the dynamic processing efficiency of the remaining parking space data are improved.
Please refer to fig. 3, which is a schematic diagram of a functional module of a parking space selection device according to an embodiment of the present application. Each module in the parking space selection device in this embodiment is used to execute each step in the above method embodiment. The parking space selection device includes a buffer module 210, a remaining parking space information update module 220, and a comprehensive ranking module 230.
The cache module 210 is configured to classify the acquired parking space information of the parking lot, and store the classified parking space information in the first cache region and the second cache region respectively; the remaining parking space information in the parking space information is stored in the second cache region;
the remaining parking space information updating module 220 is configured to correspondingly update the remaining parking space information stored in the second cache region according to the sensing data of the parking space sensor of the parking lot, so as to obtain real-time remaining parking space information;
the comprehensive sorting module 230 is configured to perform comprehensive sorting on the real-time remaining parking space information according to the parking space information stored in the first cache region, so as to obtain a comprehensive sorting result; and the comprehensive sequencing result is used for the user to select the parking space.
In a first alternative implementation, the comprehensive ranking module 230 is configured to:
acquiring a target parking lot in an inquiry range from the first cache region based on a parking space inquiry request triggered by a user at the current position;
calculating the linear distance between the current position and the target parking lot position according to the target parking lot position stored in the first cache region;
sequencing the target parking lots according to the numerical value of the linear distance to obtain a first sequencing result; and
and matching the real-time remaining parking space information to the first sequencing result to obtain a comprehensive sequencing result.
In a second optional implementation manner, the caching module 210 is configured to:
storing the parking lot position, the parking lot identification, the parking space identification, the total parking space number and the number of the parked parking spaces in the parking space information to the first cache region;
and storing the parking lot identification and the number of the remaining parking spaces corresponding to the remaining parking space information in the parking space information to the second cache region.
In a third optional implementation, the caching module 210 is further configured to:
and storing the parking lot identification in the remaining parking space information into the second cache region in a key value pair mode by taking the parking lot identification in the remaining parking space information as a key and the number of remaining parking spaces as a value.
In a fourth optional implementation manner, the remaining parking space information updating module 220 is configured to:
acquiring sensing data of a parking space sensor corresponding to each parking space in the parking lot; the sensing data is automatically generated by sensing whether the corresponding parking space is occupied or not by the parking space sensor;
and correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data to obtain real-time remaining parking space information.
In a fifth optional implementation manner, the remaining parking space information updating module 220 is further configured to:
if the acquired sensing data indicates that the corresponding parking space has a warehousing behavior, quantity increasing and updating the remaining parking space information stored in the second cache region to obtain real-time remaining parking space information;
and if the acquired sensing data indicates that the corresponding parking space has a parking-out behavior, the number of the remaining parking space information stored in the second cache region is reduced by one, and real-time remaining parking space information is acquired.
The first cache region and the second cache region are running memories.
Referring to fig. 4, fig. 4 is a block diagram of an electronic device. The electronic device 300 may include a memory 311, a memory controller 312, a processor 313, a peripheral interface 314, an input-output unit 315, and a display unit 316. It will be understood by those skilled in the art that the structure shown in fig. 4 is merely illustrative and is not intended to limit the structure of the electronic device 300. For example, electronic device 300 may also include more or fewer components than shown in FIG. 4, or have a different configuration than shown in FIG. 4.
The above-mentioned memory 311, memory controller 312, processor 313, peripheral interface 314, input/output unit 315 and display unit 316 are electrically connected to each other directly or indirectly to implement data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines. The processor 313 described above is used to execute executable modules stored in memory.
The Memory 311 may be, but is not limited to, a Random Access Memory (RAM), a Read Only Memory (ROM), a Programmable Read-Only Memory (PROM), an Erasable Read-Only Memory (EPROM), an electrically Erasable Read-Only Memory (EEPROM), and the like. The memory 311 is configured to store a program, and the processor 313 executes the program after receiving an execution instruction, and the method executed by the electronic device 300 defined by the process disclosed in any embodiment of the present application may be applied to the processor 313, or implemented by the processor 313.
The processor 313 may be an integrated circuit chip having signal processing capabilities. The Processor 313 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component. The various methods, steps, and logic blocks disclosed in the embodiments of the present application may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The peripheral interface 314 couples various input/output devices to the processor 313 and to the memory 311. In some embodiments, peripheral interface 314, processor 313, and memory controller 312 may be implemented in a single chip. In other examples, they may be implemented separately from the individual chips.
The input/output unit 315 is used for providing input data to a user. The input/output unit 315 may be, but is not limited to, a mouse, a keyboard, and the like.
The display unit 316 provides an interactive interface (e.g., a user interface) between the electronic device 300 and the user for reference. In this embodiment, the display unit 316 may be a liquid crystal display or a touch display. The liquid crystal display or the touch display can display the process of the program executed by the processor.
The electronic device 300 in this embodiment may be configured to perform each step in each method provided in this embodiment.
In addition, an embodiment of the present application further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and the computer program is executed by a processor to perform the steps in the foregoing method embodiments.
The computer program product of the foregoing method provided in the embodiment of the present application includes a computer-readable storage medium storing a program code, where instructions included in the program code may be used to execute steps in the foregoing method embodiment, which may be referred to specifically in the foregoing method embodiment, and details are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is only one logical division, and there may be other divisions when actually implemented, and for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of devices or units through some communication interfaces, and may be in an electrical, mechanical or other form. The functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should be noted that the functions, if implemented in the form of software functional modules and sold or used as independent products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In this document, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions.
The above description is only an example of the present application and is not intended to limit the scope of the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (10)

1. A parking space selection method is characterized by comprising the following steps:
classifying the acquired parking space information of the parking lot, and respectively storing the classified parking space information into a first cache region and a second cache region; the remaining parking space information in the parking space information is stored in the second cache region;
correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data of the parking space sensors of the parking lot to obtain real-time remaining parking space information; and
comprehensively sorting the real-time remaining parking space information according to the parking space information stored in the first cache region to obtain a comprehensive sorting result; and the comprehensive sequencing result is used for the user to select the parking space.
2. The method according to claim 1, wherein the comprehensively sorting the real-time remaining parking space information according to the parking space information stored in the first cache region to obtain a comprehensive sorting result comprises:
acquiring a target parking lot in an inquiry range from the first cache region based on a parking space inquiry request triggered by a user at the current position;
calculating the linear distance between the current position and the target parking lot position according to the target parking lot position stored in the first cache region;
sequencing the target parking lots according to the numerical value of the linear distance to obtain a first sequencing result; and
and matching the real-time remaining parking space information to the first sequencing result to obtain a comprehensive sequencing result.
3. The method according to claim 1, wherein the classifying the acquired parking space information of the parking lot and storing the classified parking space information into a first buffer area and a second buffer area respectively comprises:
storing the parking lot position, the parking lot identification, the parking space identification, the total parking space number and the number of the parked parking spaces in the parking space information to the first cache region; and
and storing the parking lot identification and the number of the remaining parking spaces corresponding to the remaining parking space information in the parking space information to the second cache region.
4. The method according to claim 3, wherein the storing the parking lot identifier and the remaining parking space amount corresponding to the remaining parking space information in the parking space information into the second cache area comprises:
and storing the parking lot identification in the remaining parking space information into the second cache region in a key value pair mode by taking the parking lot identification in the remaining parking space information as a key and the number of remaining parking spaces as a value.
5. The method according to claim 1, wherein the correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data of the parking space sensor in the parking lot to obtain real-time remaining parking space information comprises:
acquiring sensing data of a parking space sensor corresponding to each parking space in the parking lot; the sensing data is automatically generated by sensing whether the corresponding parking space is occupied or not by the parking space sensor; and
and correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data to obtain real-time remaining parking space information.
6. The method according to claim 5, wherein the correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data to obtain real-time remaining parking space information comprises:
if the acquired sensing data indicates that the corresponding parking space has a warehousing behavior, quantity increasing and updating the remaining parking space information stored in the second cache region to obtain real-time remaining parking space information; and
and if the acquired sensing data indicates that the corresponding parking space has a parking-out behavior, the number of the remaining parking space information stored in the second cache region is reduced by one, and real-time remaining parking space information is acquired.
7. The method of any of claims 1-6, wherein the first cache region and the second cache region are operating memory.
8. A parking space selection device, the device comprising:
the cache module is used for classifying the acquired parking space information of the parking lot and respectively storing the classified parking space information into a first cache region and a second cache region; the remaining parking space information in the parking space information is stored in the second cache region;
the remaining parking space information updating module is used for correspondingly updating the remaining parking space information stored in the second cache region according to the sensing data of the parking space sensors of the parking lot to obtain real-time remaining parking space information; and
the comprehensive sequencing module is used for comprehensively sequencing the real-time remaining parking space information according to the parking space information stored in the first cache region to obtain a comprehensive sequencing result; and the comprehensive sequencing result is used for the user to select the parking space.
9. An electronic device, comprising: a processor, a memory storing machine-readable instructions executable by the processor, the machine-readable instructions when executed by the processor performing the steps of the method of any of claims 1 to 7 when the electronic device is run.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, is adapted to carry out the steps of the method according to any one of claims 1 to 7.
CN202210617049.6A 2022-06-01 2022-06-01 Parking space selection method, device, equipment and storage medium Pending CN114822076A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210617049.6A CN114822076A (en) 2022-06-01 2022-06-01 Parking space selection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210617049.6A CN114822076A (en) 2022-06-01 2022-06-01 Parking space selection method, device, equipment and storage medium

Publications (1)

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

Family

ID=82519348

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210617049.6A Pending CN114822076A (en) 2022-06-01 2022-06-01 Parking space selection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114822076A (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436756A (en) * 2010-09-29 2012-05-02 北京紫光百会科技有限公司 Intelligent parking induction system and method
CN104408967A (en) * 2014-11-26 2015-03-11 浙江中南智能科技有限公司 Cloud-computing-based parking lot management system
CN204332107U (en) * 2014-12-04 2015-05-13 上海瀚朝科技发展有限公司 Parking lot dynamic data acquisition device and parking lot dynamic data monitor system
CN107492262A (en) * 2017-09-01 2017-12-19 深圳市易成自动驾驶技术有限公司 Parking navigation method and readable storage medium storing program for executing based on block chain
CN109088940A (en) * 2018-08-30 2018-12-25 深圳市易成自动驾驶技术有限公司 Parking stall reserving method, device and computer readable storage medium
US20190073390A1 (en) * 2017-09-07 2019-03-07 International Business Machines Corporation Data storage with improved efficiency
JP2019176311A (en) * 2018-03-28 2019-10-10 住友電気工業株式会社 On-vehicle device, control method thereof and computer program
US10503792B1 (en) * 2019-05-10 2019-12-10 Georgetown University Cache optimization via topics in web search engines
CN112309121A (en) * 2020-11-05 2021-02-02 广州信息投资有限公司 Parking guidance method and system based on intelligent lamp pole platform
CN112506432A (en) * 2020-12-08 2021-03-16 国电南瑞科技股份有限公司 Dynamic and static separated real-time data storage and management method and device for electric power automation system
CN113051448A (en) * 2021-03-17 2021-06-29 平安普惠企业管理有限公司 Data processing method and device, electronic equipment and storage medium
CN114267197A (en) * 2021-12-17 2022-04-01 松立控股集团股份有限公司 Parking recommendation algorithm based on parking data

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102436756A (en) * 2010-09-29 2012-05-02 北京紫光百会科技有限公司 Intelligent parking induction system and method
CN104408967A (en) * 2014-11-26 2015-03-11 浙江中南智能科技有限公司 Cloud-computing-based parking lot management system
CN204332107U (en) * 2014-12-04 2015-05-13 上海瀚朝科技发展有限公司 Parking lot dynamic data acquisition device and parking lot dynamic data monitor system
CN107492262A (en) * 2017-09-01 2017-12-19 深圳市易成自动驾驶技术有限公司 Parking navigation method and readable storage medium storing program for executing based on block chain
US20190073390A1 (en) * 2017-09-07 2019-03-07 International Business Machines Corporation Data storage with improved efficiency
JP2019176311A (en) * 2018-03-28 2019-10-10 住友電気工業株式会社 On-vehicle device, control method thereof and computer program
CN109088940A (en) * 2018-08-30 2018-12-25 深圳市易成自动驾驶技术有限公司 Parking stall reserving method, device and computer readable storage medium
US10503792B1 (en) * 2019-05-10 2019-12-10 Georgetown University Cache optimization via topics in web search engines
CN112309121A (en) * 2020-11-05 2021-02-02 广州信息投资有限公司 Parking guidance method and system based on intelligent lamp pole platform
CN112506432A (en) * 2020-12-08 2021-03-16 国电南瑞科技股份有限公司 Dynamic and static separated real-time data storage and management method and device for electric power automation system
CN113051448A (en) * 2021-03-17 2021-06-29 平安普惠企业管理有限公司 Data processing method and device, electronic equipment and storage medium
CN114267197A (en) * 2021-12-17 2022-04-01 松立控股集团股份有限公司 Parking recommendation algorithm based on parking data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
冯新扬: "《活动中台:揭秘vivo的千万级DAU活动中台》", 中国金融出版社, pages: 200 - 28 *

Similar Documents

Publication Publication Date Title
CN111460068B (en) Interest point searching method, readable storage medium and electronic device
US8779941B2 (en) Providing guidance for locating street parking
CN109712392B (en) Parking information processing method, device, equipment and storage medium based on block chain
CN104937375A (en) Destination prediction device, destination prediction method, and destination display method
CN105453605B (en) The method and computing device for information of predictably providing assistance
US20160109243A1 (en) Suggestive mapping using relevance based drive information
CN111143676A (en) Interest point recommendation method and device, electronic equipment and computer-readable storage medium
CN111340577A (en) Shopping method, client, server and computer storage medium
CN111831766A (en) Interest point searching method, readable storage medium and electronic device
JP2017138639A (en) Parking lot search system, parking lot search method, parking lot search device, and parking lot search program
US11328595B1 (en) Parking recognition server for personal mobility device, system including the same, and method thereof
CN113724526B (en) Parking guidance method, device and system for parking lot and storage medium
CN113284343A (en) Traffic monitoring system and method based on intelligent traffic Internet of things
CN113393700A (en) Parking space management method, parking space management device and computer equipment
CN114822076A (en) Parking space selection method, device, equipment and storage medium
JP6701275B2 (en) Information processing apparatus, information providing method and program
KR20170141911A (en) Car sharing system and car sharing system mathod
CN115691203A (en) Urban road berth induction method, device, equipment and readable storage medium
CN113257030B (en) Parking lot attribute prediction model training method, parking lot recommendation method and device
CN113987312A (en) Method and device for recommending loading and unloading stop points of freight cars and storage medium
CN111578960B (en) Navigation method and device and electronic equipment
JP7247854B2 (en) Information processing device, information processing program, and information processing method
CN114202272A (en) Vehicle and goods matching method and device based on electronic fence, storage medium and terminal
JP7195077B2 (en) Information processing device, information providing method and program
CN112541796A (en) Vehicle information processing method and device

Legal Events

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