Disclosure of Invention
The embodiment of the invention provides a recommendation method and device for an oil station and electronic equipment, which can enable the recommended oil station to be higher in matching degree with user requirements and improve the accuracy of oil station recommendation.
The first aspect of the embodiment of the invention provides a recommendation method for an oil station, which comprises the following steps:
when a target user searches an oil station, acquiring the current position of the target user;
acquiring an oil station recommendation list according to the current position;
and if the relative value of a target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold value, recommending the target oil station, wherein the target oil station is the oil station historically selected by the target user, and the nearest oil station is the oil station nearest to the current position.
Optionally, after the oil station recommendation list is obtained according to the current position, before the relative value between the target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold, the method further includes:
and acquiring the relative value of the target oil station and the nearest oil station.
Optionally, the obtaining the relative value between the target oil station and the nearest oil station includes:
acquiring the number of times of selecting the target oil station by the target user in the historical position, wherein the distance between the historical position and the current position is not more than a preset distance;
and acquiring the relative value according to the selection times.
Optionally, the obtaining that the target user performs oil station search in a historical location, and selecting the number of times of selecting the target oil station includes:
and acquiring the number of times of selection of the target oil station by the target user in the historical position in a set time period.
Optionally, after recommending the target oil station, the method further includes:
and adjusting the oil station sequence in the oil station recommendation list.
Optionally, the adjusting the oil station ranking in the oil station recommendation list includes:
and ordering the target oil station in the oil station recommendation list before the nearest oil station.
Optionally, after the relative value between the target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold, the method further includes:
and displaying the target oil station in the oil station recommendation list in a preset mode.
In a second aspect, the present invention further provides a recommendation apparatus for an oil station, the apparatus including:
the position acquisition unit is used for acquiring the current position of the target user when the target user searches the oil station;
the oil station list acquisition unit is used for acquiring an oil station recommendation list according to the current position;
and the oil station recommending unit is used for recommending the target oil station if the relative value of the target oil station and the nearest oil station in the oil station recommending list exceeds a set threshold, wherein the target oil station is an oil station historically selected by the target user, and the nearest oil station is an oil station nearest to the current position.
In a third aspect, the present invention further provides an electronic device, which includes a memory and one or more programs, where the one or more programs are stored in the memory and configured to be executed by one or more processors to execute operation instructions included in the one or more programs for performing any one of the methods provided in the first aspect.
In a fourth aspect, the present invention also provides a computer-readable storage medium, on which a computer program is stored, wherein the computer program is configured to, when executed by a processor, implement the steps corresponding to any one of the methods provided in the first aspect.
The above one or at least one technical solution in the embodiments of the present application has at least the following technical effects:
based on the technical scheme, when the target user searches for the oil station, the oil station recommendation list is obtained according to the current position; if the relative value of the target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold value, recommending the target oil station; the target oil station is the oil station which is selected by the target user in history, and the relative value between the target oil station and the nearest oil station exceeds the set threshold value, so that the matching between the target oil station and the user requirement is higher, and the accuracy of oil station recommendation can be improved on the basis of higher matching degree between the target oil station and the user requirement.
Detailed Description
The main implementation principle, the specific implementation mode and the corresponding beneficial effects of the technical scheme of the embodiment of the present application are explained in detail with reference to the accompanying drawings.
Examples
Referring to fig. 1, an embodiment of the present application provides a method for recommending an oil station, where the method includes:
s101, acquiring the current position of a target user when the target user searches an oil station;
s102, acquiring a recommended list of the oil station according to the current position;
s103, if the relative value of a target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold, recommending the target oil station, wherein the target oil station is an oil station historically selected by the target user, and the nearest oil station is an oil station nearest to the current position.
The oil station recommendation method in the embodiment of the present specification is generally applied to a user terminal, where the user terminal is an electronic device such as a notebook computer, a smart phone, a tablet computer, a vehicle-mounted computer, and a smart watch; further, the fuel station in the present embodiment is referred to as a fuel station.
In step S101, when the target user uses the user terminal to perform the oil station search, the current location of the target user is obtained through the positioning device. Wherein, positioner can be GPS chip and big dipper location chip etc..
For example, when the user a uses the vehicle-mounted computer to perform the oil station search, the user a may acquire the GPS chip in the target automobile corresponding to the vehicle-mounted computer to acquire the current location of the target user, and use the current location of the target user as the actual location of the target automobile corresponding to the target user.
After the current location is acquired, step S102 is executed.
In step S102, a historical oil station set searched by the historical user at the current location is obtained according to the current location, and part or all of the historical oil station set is added to the oil station recommendation list, where the original ranking in the oil station recommendation list may be ranked according to ranking manners such as fueling frequency and fueling distance.
Specifically, the historical oil station set searched by the historical user at the current position may be obtained by adding all the searched oil stations to the historical oil station set. When the original sequence is the refueling distance, the closer the refueling distance of a certain refueling station in the refueling station recommendation list is to the current position, the higher the sequence is, and on the contrary, the farther the refueling distance of the oil station is from the current position, the lower the sequence is; when the original ranking is the fueling frequency, the higher the fueling frequency of a certain fueling station in the fueling station recommendation list is, the higher the ranking is, and conversely, the lower the fueling frequency of a certain fueling station is, the lower the ranking is.
In the embodiment of the description, if the number of the oil station recommendation list is limited, if the number of the oil stations included in the oil station recommendation list is n at most, the historical oil station set includes m oil stations, and if m > n, at this time, n oil stations in the top ranking order from the m oil stations can be selected and added to the oil station recommendation list; if m < n, m oil stations can be added to the oil station recommendation list, wherein m and n are positive integers. In the following, n > m is taken as an example.
For example, taking a target user as a example, when a uses an on-vehicle computer to perform a fuel station search, a current location position is acquired through a corresponding target vehicle GPS chip, and all fuel stations searched by a history user at the point B are acquired as C1, C2, C3, C4, C5, and C6, so that C1, C2, C3, C4, C5, and C6 are added to a fuel station recommendation list.
After the oil station recommendation list is acquired, and if the relative value between the target oil station and the nearest oil station in the oil station recommendation list exceeds the set threshold, step S103 is executed.
Therefore, after the oil station recommendation list is obtained, before the relative value of the target oil station and the nearest oil station in the oil station recommendation list exceeds the set threshold value, the relative value of the target oil station and the nearest oil station needs to be obtained; when it is determined whether the relative value exceeds the set threshold, step S103 is executed if the relative value exceeds the set threshold.
In the embodiment of the present specification, the set threshold may be set according to actual conditions, or may be set manually or by a device, and the set threshold may be, for example, 5, 6, 8, 10, or the like.
Specifically, when the relative value is obtained, the number of times of selecting a target oil station by a target user in a historical position can be obtained, wherein the distance between the historical position and the current position is not more than a preset distance; and obtaining the relative value according to the selection times.
In the embodiment of the present specification, the preset distance may be set according to actual conditions, or may be set manually or by equipment, and the preset distance is usually a value not exceeding 500m, for example, 20m, 100m, and 150 m.
Specifically, when the number of selections is obtained, the number of selections of a target oil station, which is obtained by searching for the oil station in the historical position by the target user, may be obtained within a set time period. The set time period can be set according to actual conditions, and can also be set manually or by equipment. The set time period may be a time period closest to the current time, such as the last month, three months, six months, and the like, so that the matching degree of the selection times and the target user is higher. Of course, the target user can also be directly obtained to search the oil station in the historical position, and all times of the target oil station are selected as the selection times.
After the number of selections is obtained, when the relative value is obtained according to the number of selections, a cost function may be created, where the cost function may be a linear function, and in this case, the relative value may be represented by y, the number of selections is represented by x, and the cost function is y ═ kx, and the value of k is a value greater than 0, and in this case, y ═ x. Of course, the cost function may also be a nonlinear function, and the present specification is not particularly limited.
After the relative value is acquired, whether the relative value exceeds a set threshold value is judged, if yes, step S103 is executed to recommend the target oil station, and at this time, the target oil station may be displayed in a highlight manner, which may be displayed in a specific color on a map, or may be displayed in a pop-up window.
For example, when the set time period is 3 months, the preset distance is 150m, and the current position is the point B, based on the point B, a range with the distance from the point B not exceeding 150m is determined as a historical position, which is represented by B1, the selection times that the oil station search is performed by a in 3 months at the point B1 and the target oil station C2 is selected is 5, and the nearest oil station from the point B is C4, so that the nearest oil station C4 and the target oil station C2 are different oil stations.
When x is determined to be 5, if k is 1, the relative value is determined to be 5, and if the threshold is set to be 4, since 5>4, C2 is recommended and may be displayed in a pop-up window manner, so that C2 is displayed to target user a in a more striking manner.
The target oil station is the oil station selected by the target user in the historical position, and the relative value of the target oil station and the nearest oil station exceeds the set threshold value, so that compared with the nearest oil station, the relative value of the target oil station relative to the target user is higher, the matching between the target oil station and the user requirement is higher, and the accuracy of oil station recommendation is improved on the basis of higher matching degree between the target oil station and the user requirement.
In another embodiment of the present specification, after the relative value between the target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold, the oil station ranking in the oil station recommendation list is adjusted.
Specifically, if the latest oil station is ranked before the target oil station, the ranking of the target oil station and the latest oil station may be reversed when the ranking of the oil stations in the oil station recommendation list is adjusted, for example, if the latest oil station is ranked at position 1 and the target oil station is ranked at position 5, the adjusted target oil station is ranked at position 1 and the latest oil station is ranked at position 5.
Specifically, when the oil station ranking in the oil station recommendation list is adjusted, the ranking of the target oil station may be before the nearest oil station in the oil station recommendation list. If the nearest oil station is ranked at the 1 st position and the target oil station is ranked at the 5 th position, the adjusted target oil station is ranked at the 1 st position and the nearest oil station is ranked at the 2 nd position.
In another embodiment of the present disclosure, after the relative value between the target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold, the target oil station is displayed in the oil station recommendation list in a preset manner, where the preset manner may be in display manners such as font enlargement and color distinction, where the color distinction means that the display color of the target oil station in the oil station recommendation category is different from the display colors of other oil stations, for example, the display color of the other oil stations is yellow, and the display color of the target oil station may be a color different from yellow, such as green and red.
Specifically, the target oil stations can be ranked before the nearest oil station in the oil station recommendation list, and the target oil stations are displayed in the oil station recommendation list in a preset mode, so that the target oil stations in the oil station recommendation list are displayed more prominently to prompt a user, and the user experience is better.
The above one or at least one technical solution in the embodiments of the present application has at least the following technical effects:
based on the technical scheme, when the target user searches for the oil station, the oil station recommendation list is obtained according to the current position; if the relative value of the target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold value, recommending the target oil station; the target oil station is the oil station which is selected by the target user in history, and the relative value between the target oil station and the nearest oil station exceeds the set threshold value, so that the matching between the target oil station and the user requirement is higher, and the accuracy of oil station recommendation can be improved on the basis of higher matching degree between the target oil station and the user requirement.
In view of the foregoing, a method for recommending an oil station is provided in an embodiment of the present application, and a device for recommending an oil station is also provided in an embodiment of the present application, with reference to fig. 2, the device includes:
aposition obtaining unit 201, configured to obtain a current position of a target user when the target user performs oil station search;
the oil stationlist obtaining unit 202 is configured to obtain an oil station recommendation list according to the current position;
and the oilstation recommending unit 203 is configured to recommend a target oil station if the relative value between the target oil station and a nearest oil station in the oil station recommending list exceeds a set threshold, where the target oil station is an oil station historically selected by the target user, and the nearest oil station is an oil station nearest to the current location.
In an alternative embodiment, the apparatus further comprises:
and the relative value acquisition unit is used for acquiring the relative value of the target oil station and the nearest oil station before the relative value of the target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold value after acquiring the oil station recommendation list according to the current position.
In an optional implementation manner, the relative value obtaining unit is configured to obtain the number of times that the target user performs the oil station search in a historical location and selects the target oil station, where a distance between the historical location and the current location does not exceed a preset distance; and acquiring the relative value according to the selection times.
In an optional embodiment, the relative value obtaining unit is configured to obtain, within a set time period, the number of times that the target user performs the oil station search in the historical location and selects the target oil station.
In an alternative embodiment, the apparatus further comprises:
and the sequencing adjusting unit is used for adjusting the sequencing of the oil stations in the oil station recommendation list after the target oil station is recommended.
In an optional embodiment, the ranking adjusting unit ranks the target oil station before the nearest oil station in the oil station recommendation list.
In an alternative embodiment, the apparatus further comprises:
and the display unit is used for displaying the target oil station in the oil station recommendation list in a preset mode after the relative value of the target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold value.
Fig. 3 is a block diagram of anelectronic device 800 illustrating a method for recommending a fueling station according to an exemplary embodiment. For example, theelectronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3,electronic device 800 may include one or more of the following components: processingcomponent 802,memory 804,power component 806,multimedia component 808,audio component 810, input/presentation (I/O)interface 812,sensor component 814, andcommunication component 816.
Theprocessing component 802 generally controls overall operation of theelectronic device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. Theprocessing elements 802 may include one ormore processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, theprocessing component 802 can include one or more modules that facilitate interaction between theprocessing component 802 and other components. For example, theprocessing component 802 can include a multimedia module to facilitate interaction between themultimedia component 808 and theprocessing component 802.
Thememory 804 is configured to store various types of data to support operation at thedevice 800. Examples of such data include instructions for any application or method operating on theelectronic device 800, contact data, phonebook data, messages, pictures, videos, and so forth. Thememory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Thepower supply component 806 provides power to the various components of theelectronic device 800. Thepower components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for theelectronic device 800.
Themultimedia component 808 includes a screen that provides a presentation interface between theelectronic device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, themultimedia component 808 includes a front facing camera and/or a rear facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when thedevice 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
Theaudio component 810 is configured to present and/or input audio signals. For example, theaudio component 810 includes a Microphone (MIC) configured to receive external audio signals when theelectronic device 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in thememory 804 or transmitted via thecommunication component 816. In some embodiments, theaudio component 810 also includes a speaker for presenting audio signals.
The I/O interface 812 provides an interface between theprocessing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
Thesensor assembly 814 includes one or more sensors for providing various aspects of state assessment for theelectronic device 800. For example, thesensor assembly 814 may detect an open/closed state of thedevice 800, the relative positioning of components, such as a display and keypad of theelectronic device 800, thesensor assembly 814 may also detect a change in the position of theelectronic device 800 or a component of theelectronic device 800, the presence or absence of user contact with theelectronic device 800, orientation or acceleration/deceleration of theelectronic device 800, and a change in the temperature of theelectronic device 800.Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. Thesensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, thesensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
Thecommunication component 816 is configured to facilitate wired or wireless communication between theelectronic device 800 and other devices. Theelectronic device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, thecommunication component 816 receives a broadcast signal or broadcast associated information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, thecommunications component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, theelectronic device 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as thememory 804 comprising instructions, executable by theprocessor 820 of theelectronic device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
A non-transitory computer readable storage medium having instructions therein, which when executed by a processor of a mobile terminal, enable the mobile terminal to perform a method of recommending a fueling station, the method comprising:
when a target user searches an oil station, acquiring the current position of the target user;
acquiring an oil station recommendation list according to the current position;
and if the relative value of a target oil station and the nearest oil station in the oil station recommendation list exceeds a set threshold value, recommending the target oil station, wherein the target oil station is the oil station historically selected by the target user, and the nearest oil station is the oil station nearest to the current position.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is only limited by the appended claims
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.