CN110379028A - Punch card method, device, computer equipment and storage medium based on route recommendation - Google Patents

Punch card method, device, computer equipment and storage medium based on route recommendation Download PDF

Info

Publication number
CN110379028A
CN110379028A CN201910516567.7A CN201910516567A CN110379028A CN 110379028 A CN110379028 A CN 110379028A CN 201910516567 A CN201910516567 A CN 201910516567A CN 110379028 A CN110379028 A CN 110379028A
Authority
CN
China
Prior art keywords
card
little
traffic path
checking
punch
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.)
Granted
Application number
CN201910516567.7A
Other languages
Chinese (zh)
Other versions
CN110379028B (en
Inventor
陈琳琳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Technology Shenzhen Co Ltd
Original Assignee
Ping An Technology Shenzhen 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 Ping An Technology Shenzhen Co Ltd filed Critical Ping An Technology Shenzhen Co Ltd
Priority to CN201910516567.7A priority Critical patent/CN110379028B/en
Publication of CN110379028A publication Critical patent/CN110379028A/en
Application granted granted Critical
Publication of CN110379028B publication Critical patent/CN110379028B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/005Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00 with correlation of navigation data from several sources, e.g. map or contour matching
    • GPHYSICS
    • G07CHECKING-DEVICES
    • G07CTIME OR ATTENDANCE REGISTERS; REGISTERING OR INDICATING THE WORKING OF MACHINES; GENERATING RANDOM NUMBERS; VOTING OR LOTTERY APPARATUS; ARRANGEMENTS, SYSTEMS OR APPARATUS FOR CHECKING NOT PROVIDED FOR ELSEWHERE
    • G07C1/00Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people
    • G07C1/10Registering, indicating or recording the time of events or elapsed time, e.g. time-recorders for work people together with the recording, indicating or registering of other data, e.g. of signs of identity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/52Network services specially adapted for the location of the user terminal

Landscapes

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

Abstract

The invention discloses a kind of punch card method based on route recommendation, device, computer equipment and storage mediums;The request of checking card sent by obtaining client, request of checking card include identity and current location;Identity-based mark, obtains corresponding user type from preset User Information Database;According to user type, obtain at least one it is default check card a little, it is each default to check card a little including Punch Type;Position to be selected of checking card is determined according to each default Punch Type checked card a little;Based on current location and each position to be selected of checking card, at least one initial traffic path is obtained;It is chosen from initial traffic path and meets the traffic path composition target of preset condition and check card information, target information of checking card includes that target checks card and position and recommends traffic path;Guarantee user according to target check card position and recommend traffic path trip can check card on time, to improve the efficiency of user's clock in and out.

Description

Punch card method, device, computer equipment and storage medium based on route recommendation
Technical field
The present invention relates to data processing field more particularly to a kind of punch card methods based on route recommendation, device, computer Equipment and storage medium.
Background technique
With the continuous development of Internet technology, the movable attendance checking system based on mobile communication network and internet is constantly sent out It opens up and perfect.Many companies check card at present for the ease of employee, employee can be allowed to check card in such a way that multiple spot is checked card. Although carrying out attendance really in such a way that multiple spot is checked card makes employee's clock in and out become more convenient and efficient, due to more Point is checked card in the presence of the check card diversity and uncertainty in place, thus many employees can often because there are multiple places of checking card, And which can not accurately hold check card a little to carry out checking card can be more convenient, is more time saving, to give the clock in and out band of employee Great inconvenience is carried out.
Summary of the invention
The embodiment of the present invention provides a kind of punch card method, device, computer equipment and storage medium, with solve can not be punctual The problem of clock in and out.
A kind of punch card method based on route recommendation, comprising:
The request of checking card that client is sent is obtained, the request of checking card includes identity and current location;
Based on the identity, corresponding user type is obtained from preset User Information Database;
According to the user type, obtain at least one it is default check card a little, it is each described default to check card a little including class of checking card Type;
Position to be selected of checking card is determined according to each default Punch Type checked card a little;
Based on the current location and each position to be selected of checking card, at least one initial traffic path is obtained;
It is chosen from the initial traffic path and meets the traffic path composition target of preset condition and check card information, the mesh Mark check card information include target check card position and recommend traffic path.
A kind of punch-card device based on route recommendation, comprising:
Request of checking card module, for obtaining the request of checking card of client transmission, the request of checking card includes identity mark Knowledge and current location;
User type obtains module, for being based on the identity, the acquisition pair from preset User Information Database The user type answered;
Default check card obtains a module, for according to the user type, obtain at least one it is default check card a little, Mei Yisuo Stating default check card a little includes Punch Type;
Position determination module to be selected of checking card, it is to be selected for being determined according to each default Punch Type checked card a little It checks card position;
Initial traffic path obtains module, for being based on the current location and each position to be selected of checking card, obtains At least one initial traffic path;
Comprising modules are beaten for the traffic path composition target that selection meets preset condition from the initial traffic path Card information, the target check card information include target check card position and recommend traffic path.
A kind of computer equipment, including memory, processor and storage are in the memory and can be in the processing The computer program run on device, the processor realize above-mentioned checking card based on route recommendation when executing the computer program Method.
A kind of computer readable storage medium, the computer-readable recording medium storage have computer program, the meter Calculation machine program realizes the above-mentioned punch card method based on route recommendation when being executed by processor.
The above-mentioned punch card method based on route recommendation, device, computer equipment and storage medium, by obtaining client hair The request of checking card sent, request of checking card include identity and current location;Identity-based mark, from preset user information data Corresponding user type is obtained in library;According to user type, obtain at least one it is default check card a little, each default check card a little includes Punch Type;Position to be selected of checking card is determined according to each default Punch Type checked card a little;Based on current location and each to be selected It checks card position, obtains at least one initial traffic path;The traffic path for meeting preset condition is chosen from initial traffic path Composition target is checked card information, and target information of checking card includes that target checks card and position and recommends traffic path;According to the user class of user Type determine it is corresponding check card a little, checked card a little based on multiple and different, in real time obtain current location and it is each check card between a little at the beginning of Beginning traffic path sieves each initial traffic path then in conjunction with current travel time, trip distance or trip mode Choosing, to user recommend meet condition target check card position and recommend traffic path, guarantee user according to target check card position and Recommend traffic path trip that can check card on time, to improve the efficiency of user's clock in and out.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without any creative labor, can also be according to these attached drawings Obtain other attached drawings.
Fig. 1 is an application environment schematic diagram of the punch card method in one embodiment of the invention based on route recommendation;
Fig. 2 is an exemplary diagram of the punch card method in one embodiment of the invention based on route recommendation;
Fig. 3 is another exemplary diagram of the punch card method in one embodiment of the invention based on route recommendation;
Fig. 4 is another exemplary diagram of the punch card method in one embodiment of the invention based on route recommendation;
Fig. 5 is another exemplary diagram of the punch card method in one embodiment of the invention based on route recommendation;
Fig. 6 is another exemplary diagram of the punch card method in one embodiment of the invention based on route recommendation;
Fig. 7 is another exemplary diagram of the punch card method in one embodiment of the invention based on route recommendation;
Fig. 8 is a functional block diagram of the punch-card device in one embodiment of the invention based on route recommendation;
Fig. 9 is another functional block diagram of the punch-card device in one embodiment of the invention based on route recommendation;
Figure 10 is a schematic diagram of computer equipment in one embodiment of the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, every other implementation obtained by those of ordinary skill in the art without making creative efforts Example, shall fall within the protection scope of the present invention.
Punch card method provided in an embodiment of the present invention based on route recommendation, being somebody's turn to do the punch card method based on route recommendation can answer With in application environment as shown in Figure 1.Specifically, the punch card method based on route recommendation is somebody's turn to do to apply in beating based on route recommendation In card system, should punch card system based on route recommendation include client and server-side as shown in Figure 1, client and server-side It is communicated by network, being used to solve the problems, such as can not punctual clock in and out.Wherein, client is also known as user terminal, is Finger is corresponding with server-side, provides the program of local service for client.Client it is mountable but be not limited to various individual calculus On machine, laptop, smart phone, tablet computer and portable wearable device.Server-side can use independent server The either server cluster of multiple servers composition is realized.
In one embodiment, it as shown in Fig. 2, providing a kind of punch card method based on route recommendation, applies in this way It is illustrated, includes the following steps: for server-side in Fig. 1
S10: obtaining the request of checking card that client is sent, and request of checking card includes identity and current location.
Wherein, request of checking card is the request for checking card that user passes through that client is sent to server-side.Optionally, Triggering generates when request of checking card can enter a certain software of checking card, system or the webpage of client by user.In the present embodiment, Client can be computer end or mobile terminal.Identity refers to the mark for unique identification subscriber identity information.It can Selection of land, identity can represent the mark of subscriber identity information for phone number, work number, the ID card No. etc. of user.? In one specific embodiment, if user is checked card request by entering a certain software triggering of checking card of client, identity can be with It is corresponding with the log-on message that user logs in the software of checking card.Current location, which refers to, positions the physical location that user is currently located Acquired location information afterwards.Optionally, location information can be obtained directly by the automatic station-keeping system of client in real time, example Such as: GPS system.
S20: identity-based mark obtains corresponding user type from preset User Information Database.
Wherein, user type refers to classify to different user after resulting typonym.User in the present embodiment Refer mainly to in-company employee.Therefore, user can be carried out according to the work position of user, action or job site Classification obtains user type.Such as: user type can be divided into field personnel employee and internal or office work employee.In a specific embodiment, It, can be related to corresponding user type by the identity of each user in advance for the ease of confirming the user type of each user In the database for joining and being stored in server-side.After request is checked card in user's triggering, server-side can directly check card according to this and request institute The identity of carrying obtains the user type of user from database.
Preferably, it for the ease of differentiating different user types, can also be assigned for different user types corresponding unique Identification number.Such as: assigning field personnel employee identification number is 1, and assigning internal or office work employee identification number is 2.Further, in order to mention Coca accuracy of the user type of determination according to identity, need to identity to user and the association of corresponding user type Data are timed update, and the situation of mistake occurs in employee's type that avoiding the occurrence of causes to obtain because of the variation in post.
S30: according to user type, obtain at least one it is default check card a little, it is each default to check card a little including Punch Type.
Wherein, it presets to check card and a little refers to the preset place for carrying out clock in and out.Such as: default check card a little can be with For the area A office check card point, the area B office check card a little or the area C handle official business check card a little.It is corresponding extremely according to the acquisition of the user type of user It presets for few one and checks card a little.In a specific embodiment, matching is preset previously according to different user types A default corresponding associated storage of checking card, can be directly from number after the user type of user has been determined in the database of server-side Associated therewith preset is obtained according to library to check card a little.It is to be appreciated that a default difference of checking card corresponding to different user types, Each default check card a little includes Punch Type.
Wherein, Punch Type refers to user's mode of checking card on and off duty checked card.Optionally, Punch Type may include: Individual register check card, IC punched-card machine is checked card, is moved and is checked card or intelligent wireless is checked card.For example, Punch Type can be to pass through The intelligent wireless that connecting can effectively be checked card after a certain default specific WiFi to check card a little is checked card, can also be a certain to enter It is checked card behind the default specific region checked card a little by the movement that the punch card system of mobile terminal can effectively be checked card, Huo Zhexu Reach a certain fixation check card carry out fingerprint or recognition of face after just can be carried out the IC punched-card machine effectively checked card and check card.It needs Bright, each default check card a little all includes one or more corresponding Punch Types.
S40: position to be selected of checking card is determined according to each default Punch Type checked card a little.
Wherein, position to be selected of checking card refers to the position of specifically checking card that can carry out clock in and out.Specifically, previously according to each The default Punch Type checked card a little, default will check card a little be divided into need to arrive fixation check card the fixation a little checked card check card a little, with And the flowing that can all check card within a certain range is checked card a little.It in one embodiment, can be in advance a by Punch Type People register check card check card etc. to IC punched-card machine need to arrive it is fixed check card a little check card it is default check card a little check card to fixation it is related Connection, by Punch Type be move check card, default the checking card a little of can all checking card within a certain range such as wireless network is checked card It checks card with flowing a little associated;Server-side can directly know that this is preset and check card after the default Punch Type checked card a little has been determined Point, which belongs to fix to check card a little or flow, checks card a little.Then, then using third party's interface data to flowing is belonged to check card a little The default region of effectively checking card checked card a little is positioned, if to obtain default check card for belonging to and flowing and checking card a little and a little included Dry son is checked card a little;Finally by belong to it is fixed check card a little it is default check card a little, and belong to flow check card a little default and check card and be wrapped Several sons contained, which are checked card, is a little uniformly determined as position to be selected of checking card.
S50: based on current location and each position to be selected of checking card, at least one initial traffic path is obtained.
Wherein, initial traffic path refers to that current location reaches the route of each position to be selected of checking card.Optionally, initial trip Route can be current location reach a certain check card position used time shortest route or current location to be selected reach it is a certain to The shortest route of positional distance of checking card is selected, can also be that current location reaches the route of an a certain traffic least congestion to be selected of checking card Deng.It is to be appreciated that current location and each a little corresponding initial traffic path to be selected of checking card should be at least one.
Specifically, server-side has been after having determined position to be selected of checking card according to step S40, according to current location and it is each to It selects the geographical location between position of checking card to carry out route planning, obtains initial traffic path.It is alternatively possible to be connect by third party The mouth initial traffic path of data acquisition, such as Baidu map, Amap or Tencent's map etc..According to current location and each Position to be selected of checking card carries out route planning by third party's interface data, obtains initial traffic path.It should be noted that obtaining The each initial traffic path taken all includes travel time, trip distance and trip mode etc..
S60: it is chosen from initial traffic path and meets the traffic path composition target of preset condition and check card information, target is beaten Card information include target check card position and recommend traffic path.
Wherein, preset condition refers to that the preset initial traffic path to acquisition carries out the condition of route screening.Specifically Ground after user inputs corresponding preset condition information in customer terminal webpage preset condition screening frame, that is, produces preset condition. Optionally, preset condition can be at least one of default travel time, default trip distance or default trip mode etc..Example Such as: if preset condition was the default travel time less than 30 minutes, the travel time is chosen from initial traffic path less than 30 points The traffic path composition target of clock is checked card information.If preset condition is default trip distance less than 10 kilometers, from initial trip Traffic path composition target of the trip distance less than 10 kilometers is chosen in route to check card information.In one embodiment, user Corresponding preset condition information is inputted in the preset condition screening frame of customer terminal webpage in advance, after generating preset condition, client The preset condition is sent to server-side by end, and server-side screens initial traffic path, i.e., according to the preset condition of acquisition The traffic path composition target that preset condition can be obtained is checked card information.
Target check card information include target check card position and recommend traffic path.Wherein, target position of checking card refers to that satisfaction is pre- If the position of checking card of condition.Such as: if preset condition is the default travel time, target is checked card, and to be that the travel time is less than pre- for position If checking card position corresponding to the travel time.Similarly, traffic path is recommended to refer to the traffic path for meeting preset condition.It can manage Xie Di, target position of checking card should be at least one, and traffic path is recommended to should be at least one.
In the present embodiment, the request of checking card sent by acquisition client, request of checking card is including identity and currently Position;Identity-based mark, obtains corresponding user type from preset User Information Database;According to user type, obtain It takes at least one to preset to check card a little, each default check card a little includes Punch Type;According to each default Punch Type checked card a little Determine position to be selected of checking card;Based on current location and each position to be selected of checking card, at least one initial traffic path is obtained;From first It is chosen in beginning traffic path and meets the traffic path composition target of preset condition and check card information, target information of checking card includes that target is beaten Card position and recommendation traffic path;According to the user type of user determine it is corresponding check card a little, checked card a little based on multiple and different, Obtain current location and each initial traffic path checked card between a little in real time, then in conjunction with the current travel time, go on a journey away from From or trip mode each initial traffic path is screened, recommend the target for meeting condition to check card position and recommendation to user Traffic path, guarantee user according to target check card position and recommend traffic path trip can check card on time, to improve user The efficiency of clock in and out.
In one embodiment, as shown in figure 3, choosing the traffic path group for meeting preset condition from initial traffic path Check card after information at target, should punch card method based on route recommendation further include following steps:
S70: target information of checking card is sent to client.
Specifically, target information of checking card includes that target checks card and position and recommends traffic path, and server-side is from initial trip It is chosen in route to the traffic path composition target for meeting preset condition and is checked card after information, send visitor for target information of checking card Family end, for user according to target check card position and recommend traffic path carry out route selection.
S80: obtain client according to target check card information return route choose information.
Wherein, the target traffic path instruction generated that route chooses that information refers to that client clicks selection according to user is believed Breath.Specifically, client is after the target for receiving server-side return checks card information;User can be by customer terminal webpage to target Recommendation traffic path in information of checking card carries out route selection, to determine target traffic path, and then client is according to user's point The target traffic path for hitting selection generates route and chooses information, and route selection information is sent to server-side, service termination It receives the route that client returns and chooses information.
S90: information is chosen according to route and generates and sends route planning data to client, so that client is on display circle Route planning data are shown on face.
Wherein, route planning data refer to that server-side chooses information specific route data generated according to route.It can manage Xie Di, route planning data are also that the target traffic path finally chosen to user carries out data generated after route planning. Route planning data may include: the travel time, trip distance, route jam situation and it is corresponding be suitable for tool of going on a journey etc..Tool Body, after obtaining the route that client returns and choosing information, determine that the route chooses target traffic path corresponding to information, Then corresponding route planning data are generated by third party's interface data and is sent to client, and in the display interface of client Upper display route planning data facilitate user to be gone on a journey according to the route planning data of target traffic path and reach target and check card position It sets and is checked card on time.
In the present embodiment, by that traffic path will be recommended to be sent to client;And client is obtained according to recommending walking along the street out The route that line returns chooses information;Information is finally chosen according to route and generates and sends route planning data to client, so that Client in the display interface shows route planning data;Guarantee user according to target check card position and recommend go on a journey While route trip can check card on time, it is also convenient for user and is gone on a journey according to specific route planning data.
In one embodiment, as shown in figure 4, determining position to be selected of checking card according to each default Punch Type checked card a little, Specifically comprise the following steps:
S401: according to each default Punch Type checked card a little, it will preset to check card a little to be divided into fixing to check card and a little be beaten with flowing Stuck point.
Wherein, fixed check card a little refers to and just can be carried out checking card a little of effectively checking card in a certain specific position.Flowing, which is checked card, a little to be referred to What all can effectively be checked card in a certain setting range checks card a little.Specifically, according to each default Punch Type checked card a little, It default will check card a little to be divided into check card in the fixation that a specific position can check card and all may be used a little and in a certain setting range The flowing checked card is checked card a little.Specifically, the database that a classification chart of checking card is stored in server-side can be pre-established, Include in a classification chart of checking card all Punch Types and each Punch Type it is corresponding be fixed to check card a little or flow It checks card a little.Such as: individual is registered in advance in a classification chart of checking card check card with IC punched-card machine check card with it is fixed check card it is corresponding Association mobile will check card and check card corresponding be associated with wireless network and flowing.
It, can be by inquiring a classification chart of checking card after server-side determines each default Punch Type checked card a little It determines that this presets to check card a little to belong to fix to check card a little or flow to check card a little.Such as: if the Punch Type of the default point A that checks card is Movement is checked card, then by inquiring a classification chart of checking card, the default point A that checks card can be obtained and belong to fixed check card a little.
S402: according to each range of effectively checking card for flowing and checking card a little, determine that each son checked card a little that flows is checked card a little.
Wherein, the sub several positions of specifically checking card for a little referring to that flowing is checked card in a little of checking card.Specifically, it is checked card a little according to flowing It effectively checks card range, determines that each flowing check card son a little checks card a little can be by the automatic positioning function by third party's interface data It is able to achieve, such as Baidu map, Amap or Tencent's map etc..Server-side, which checks card the flowing, to be a little sent to third party and connects Then mouthful data determine several location points that the flowing is checked card in a little by the automatic positioning function of third party's interface data, most The location point for meeting range of effectively checking card is chosen from several location points afterwards, is determined as the son that the flowing is checked card a little and checks card a little. Such as: a certain flowing is checked card within the scope of 500 meters of the mansion Dian Wei xx, then is checked card effective range of checking card a little according to the flowing, really It a little can be the public transport of the north gate of the mansion xx, the south gate of the mansion xx and the mansion xx east gate mouth that the fixed flowing, which checks card that son a little checks card, It stands.
S403: by each fixation check card a little and it is each flow the son checked card a little and check card a little be determined as position to be selected of checking card.
Specifically, it checks card a little in conjunction with the fixation determined according to step S401, and each flowing determined according to step S402 The son checked card a little is checked card a little, and position to be selected of checking card can be obtained.
In the present embodiment, according to each default Punch Type checked card a little, default check card a little is divided into fixed check card a little It checks card a little with flowing;According to each range of effectively checking card for flowing and checking card a little, the son for determining that each on-fixed is checked card is checked card a little;It will Each fixation check card a little and it is each flow the son checked card a little and check card a little be determined as position to be selected of checking card;According to the class of checking card checked card a little Type, air exercise stuck point classified after determine again it is to be selected check card a little, to improve the accuracy and diversity to be selected checked card a little.
In one embodiment, as shown in figure 5, determining position to be selected of checking card according to each default Punch Type checked card a little Later, being somebody's turn to do the punch card method based on route recommendation further includes following steps:
S41: if current location it is any one it is to be selected check card in position, when detecting current time and whether meeting default check card Between.
After determining position to be selected of checking card according to each default Punch Type checked card a little, if passing through the automatic of client Positioning system gets current location and has been located in the checking card in range of any one position to be selected of checking card, then obtains current time, examines Survey whether current time meets default check card the time.Wherein, presetting the time of checking card refers to and preset is effectively checked card Commuter time.In a specific embodiment, the database of server-side has been stored with pre-set default check card the time. Such as: the default time of checking card may include: that working is checked card the time: 7:00~8:30, the work hours: 17:30~22:00.Service Whether end can directly check card the time according to the default of database purchase after obtaining current time, judge current time pre- If checking card in the time.If detecting, current time is checked card in the time default, judges that current time meets default check card the time. Conversely, if detecting, current time is not checked card in the time default, judges that current time is unsatisfactory for default check card the time.
S42: it checks card the time if current time meets to preset, judges whether the Punch Type of position to be selected of checking card is mobile It checks card.
Specifically, if according to step S41 judge to obtain current time meet it is default check card the time, obtain this and to be selected check card The Punch Type of position judges whether the Punch Type of the position to be selected of checking card is that movement is checked card.It specifically, can be by using text Word identification technology identifies the Punch Type of the position to be selected of checking card, thus judge the position to be selected of checking card Punch Type whether be Movement is checked card;Or string matching method is used, the Punch Type of the position to be selected of checking card and mobile check card are matched;If With success, then judge that the Punch Type of the position to be selected of checking card is checked card for movement;Conversely, then checking card to be non-moving.
S43: if the Punch Type of position to be selected of checking card is that movement is checked card, punching operation is executed.
If the Punch Type for judging to obtain position to be selected of checking card according to step S42 is checked card as movement, punching operation is executed.
Specifically, it checks card, can be deserved by record as movement if judging to obtain the Punch Type to be selected that set of checking card The information of checking card of preceding user executes punching operation, to carry out subsequent work attendance statistics management.Wherein, the information of checking card of record can be with Including time of checking card, user account etc., it is not construed as limiting herein.Additionally, the specific journey of checking card of triggering client can also be passed through Sequence executes punching operation.
In the present embodiment, if current location it is any one it is to be selected check card in position, detect whether current time meets It is default to check card the time;It checks card the time if current time meets to preset, judges whether the Punch Type of position to be selected of checking card is shifting It is dynamic to check card, if the Punch Type of position to be selected of checking card is that movement is checked card, executes punching operation, completes to check card, in working as user Front position it is any one it is to be selected check card in position and in the case that Punch Type is mobile checks card, it is another in client to be not required to user Outer execution punching operation, can be completed and check card, to improve the efficiency of checking card of user.
In one embodiment, as shown in fig. 6, choosing the traffic path composition for meeting preset condition from initial traffic path Target is checked card information, and target information of checking card includes that target checks card and position and recommends traffic path, is specifically comprised the following steps:
S601: each initial traffic path corresponding initial travel time is obtained.
Wherein, the initial travel time refers to the time corresponding to each initial traffic path.It is to be appreciated that different initially go out The initial travel time corresponding to walking along the street line is different.Specifically, due to by third party's data-interface obtain it is each it is initial go out All include the corresponding initial travel time in walking along the street line, therefore, can directly be obtained from each initial traffic path corresponding The initial travel time.
S602: the target travel time is determined according to current time and default time of checking card, is screened from initial traffic path The initial travel time is less than the traffic path of target travel time out, as recommendation traffic path.
Since the default time of checking card is a specific period.The default time of checking card includes checking card time point to most from earliest Evening checks card period at time point.Therefore, the target travel time refers to current time and default when checking card the latest of time of checking card Between point between period.Such as: if current time is 7:45, the default time of checking card is 7:00~8:30, default to check card the time Latest time point be 8:30;It is then 45 minutes according to current time and the default target travel time that the time determines of checking card.? In one specific embodiment, the database of server-side has been previously stored with default check card the time;Therefore after current time has been determined, The corresponding target travel time can be calculated directly according to the permission time point of current time and default time of checking card.It is preferred that Ground the time and default is come off duty since the database of the server-side pre-stored default time of checking card may include default working and check card It checks card the time, therefore, after getting current time, need to judge default corresponding to current time check card the time.Specifically, may be used It is the 00:00-12:00 corresponding default time of checking card to be set as going to work by current time by presetting a time range It checks card the time, is the 12:01-23:59 corresponding default time of checking card to be set as coming off duty checking card the time by current time.
Specifically, after determining the target travel time according to current time and default time of checking card, acquisition is each initially to go out The walking along the street line corresponding initial travel time, and the initial travel time of each initial traffic path and target travel time are carried out Compare one by one, finally screens the traffic path that the initial travel time is less than the target travel time as recommending walking along the street out Line.In this step, go out walking along the street less than the target travel time by filtering out the initial travel time from initial traffic path Line, as recommendation traffic path, it is ensured that user can carry out punctual clock in and out within the default time of checking card.
S603: determining and the corresponding position of checking card of traffic path recommended to be that target is checked card position, and by target check card position and Traffic path composition target is recommended to check card information.
Specifically, after having been determined according to step S602 and recommending traffic path, by this, recommendation traffic path is corresponding checks card Position is determined as target and checks card position, and then target is checked card and position and traffic path composition target is recommended to check card information.
In the present embodiment, each initial traffic path corresponding initial travel time is obtained;According to current time and in advance If the time of checking card determines the target travel time, the initial travel time is filtered out from initial traffic path less than the target travel time Traffic path, as recommend traffic path;It determines and the corresponding position of checking card of traffic path is recommended to be that target is checked card position, and will Target, which is checked card, position and recommends traffic path composition target to check card information;To ensure that each of user's acquisition recommends walking along the street out Line be all can reaching on the time check card the traffic path a little checked card.
In one embodiment, as shown in fig. 7, going out walking along the street choosing the recommendation for meeting preset condition from initial traffic path Before line, being somebody's turn to do the punch card method based on route recommendation further includes following steps:
S51: daily trip route is obtained, daily trip route includes the daily trip time.
Wherein, daily trip route refers to the route of the regular trip of user's clock in and out.Each daily trip route Including the daily trip time.The daily trip time refers to the daily trip route corresponding travel time.Daily trip route packet Include the daily traffic path of a working and a daily route of trip of coming off duty.Such as: daily traffic path of going to work is corresponding daily Travel time is 8:00, and the daily route of the trip corresponding daily trip time of coming off duty is 18:00.In one embodiment, day Normal traffic path is that obtained user goes out line frequency highest after carrying out real-time statistics to the history of user traffic path on and off duty Route.It is to be appreciated that daily trip route can with the difference of the selected traffic path on and off duty of user and in real time more Newly.
S52: judging whether current time and the trip time difference of daily trip time are less than time threshold, if the trip time difference is small In time threshold, then prompt of promptly checking card is issued.
Wherein, current time refers to the specific time point at current time, and current time can be obtained directly from client in real time It takes.The trip time difference refers to period of the current time between the daily trip time.Such as: it is daily if current time is 7:50 Travel time is 8:00, then the trip time difference between current time and daily trip time is 10 minutes.Time threshold refers in advance Setting is used to judge whether current time has been approached the period of daily trip time.Such as: time threshold can be set as 3 Minute, 5 minutes or 10 minutes etc., user can customized setting according to the actual situation.
Specifically, current time is obtained in real time, calculates current time and the trip time difference between the daily trip time, and will The trip time difference between current time and daily trip time is compared with time threshold, judges whether the trip time difference is less than Time threshold, if the trip time difference is less than time threshold, if illustrating, user goes to work or comes off duty according to the daily trip route Checking card may be late.So sending prompt of promptly checking card at this time, specifically, prompt of promptly checking card can be by text, voice Or the mode of at least one of flashing light embodies.
In the present embodiment, by obtaining daily trip route, daily trip route includes the daily trip time, and judgement is worked as Whether the trip time difference between preceding time and daily trip time is less than time threshold, if the trip time difference is less than time threshold, Prompt of promptly checking card is issued, user's trip is reminded according to daily trip route, further ensuring user can carry out on time up and down Class checks card.
It should be understood that the size of the serial number of each step is not meant that the order of the execution order in above-described embodiment, each process Execution sequence should be determined by its function and internal logic, the implementation process without coping with the embodiment of the present invention constitutes any limit It is fixed.
In one embodiment, a kind of punch-card device based on route recommendation is provided, it should the punch-card device based on route recommendation It is corresponded with the punch card method in above-described embodiment based on route recommendation.As shown in figure 8, should the dress of checking card based on route recommendation It sets and obtains module 20 including request module 10 of checking card, user type, a default acquisition module 30 of checking card, selects position of checking card true Cover half block 40, initial traffic path obtain module 50 and comprising modules 60.Detailed description are as follows for each functional module:
Request of checking card module 10, for obtaining the request of checking card of client transmission, the request of checking card includes identity Mark and current location;
User type obtains module 20, for being based on the identity, obtains from preset User Information Database Corresponding user type;
Default check card obtains a module 30, for according to the user type, obtain at least one it is default check card a little, it is each Default check card a little includes Punch Type;
Position determination module 40 to be selected of checking card, for according to each default Punch Type determination checked card a little to Select position of checking card;
Initial traffic path obtains module 50, for being based on the current location and each position to be selected of checking card, obtains Take at least one initial traffic path;
Comprising modules 60, for choosing the traffic path composition target for meeting preset condition from the initial traffic path It checks card information, target information of checking card includes that target checks card and position and recommends traffic path.
It is preferably based on the punch-card device of route recommendation further include:
Sending module 70, for target information of checking card to be sent to client;
Route choose data obtaining module 80, for obtain client according to target check card information return route choose letter Breath;
Generation module 90 generates and sends route planning data to client, so that objective for choosing information according to route Family end in the display interface shows route planning data.
Preferably, position determination module 40 to be selected of checking card includes:
Taxon, for according to each default Punch Type checked card a little, default check card a little to be divided into fixed check card a little It checks card a little with flowing;
Son is checked card a determination unit, for checking card range of effectively checking card a little according to each flowing, determines that each flow is beaten The son of stuck point is checked card a little;
Position units to be selected of checking card, for by each fixation check card a little and it is each flow the son checked card a little and check card a little be determined as Position to be selected of checking card.
It is preferably based on the punch-card device of route recommendation further include:
Detection module, for current location it is any one it is to be selected check card in position when, detection current time whether meet It is default to check card the time;
Judgment module, for judging the Punch Type of position to be selected of checking card when current time satisfaction is preset and checks card the time It whether is that movement is checked card;
It checks card module, when for the Punch Type in position to be selected of checking card being mobile check card, executes punching operation.
Preferably, comprising modules 60 include:
Initial travel time acquiring unit, for obtaining each initial traffic path corresponding initial travel time;
Screening unit, for determining the target travel time according to current time and default time of checking card, from initially walking along the street out Traffic path of the initial travel time less than the target travel time is filtered out in line, as recommendation traffic path;
Component units, for determining that recommending the corresponding position of checking card of traffic path is that target is checked card position, and target is beaten Card position and traffic path composition target is recommended to check card information.
It is preferably based on the punch-card device of route recommendation further include:
Daily trip route acquiring module, for obtaining daily trip route, when daily trip route includes daily trip Between;
Urgent module of checking card, for judging whether current time and the trip time difference of daily trip time are less than time threshold Value issues prompt of promptly checking card if the trip time difference is less than time threshold.
Specific restriction about the punch-card device based on route recommendation may refer to above for based on route recommendation The restriction of punch card method, details are not described herein.Modules in the above-mentioned punch-card device based on route recommendation can whole or portion Divide and is realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of computer equipment In processor in, can also be stored in a software form in the memory in computer equipment, in order to processor calling hold The corresponding operation of the above modules of row.
In one embodiment, a kind of computer equipment is provided, which can be server, internal junction Composition can be as shown in Figure 10.The computer equipment include by system bus connect processor, memory, network interface and Database.Wherein, the processor of the computer equipment is for providing calculating and control ability.The memory packet of the computer equipment Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The calculating The database of machine equipment is for storing the data that the punch card method based on route recommendation in above-described embodiment uses.The calculating The network interface of machine equipment is used to communicate with external terminal by network connection.When the computer program is executed by processor with Realize a kind of punch card method based on route recommendation.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor execute computer program when realize in above-described embodiment based on road The punch card method that line is recommended.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes the punch card method based on route recommendation in above-described embodiment when being executed by processor.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
It is apparent to those skilled in the art that for convenience of description and succinctly, only with above-mentioned each function Can unit, module division progress for example, in practical application, can according to need and by above-mentioned function distribution by different Functional unit, module are completed, i.e., the internal structure of described device is divided into different functional unit or module, more than completing The all or part of function of description.
Embodiment described above is merely illustrative of the technical solution of the present invention, rather than its limitations;Although referring to aforementioned reality Applying example, invention is explained in detail, those skilled in the art should understand that: it still can be to aforementioned each Technical solution documented by embodiment is modified or equivalent replacement of some of the technical features;And these are modified Or replacement, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution should all It is included within protection scope of the present invention.

Claims (10)

1. a kind of punch card method based on route recommendation characterized by comprising
The request of checking card that client is sent is obtained, the request of checking card includes identity and current location;
Based on the identity, corresponding user type is obtained from preset User Information Database;
According to the user type, obtain at least one it is default check card a little, it is each described default to check card a little including Punch Type;
Position to be selected of checking card is determined according to each default Punch Type checked card a little;
Based on the current location and each position to be selected of checking card, at least one initial traffic path is obtained;
It is chosen from the initial traffic path and meets the traffic path composition target of preset condition and check card information, the target is beaten Card information include target check card position and recommend traffic path.
2. as described in claim 1 based on the punch card method of route recommendation, which is characterized in that described from the initial trip The traffic path composition target that selection meets preset condition in route is checked card after information, the side of checking card based on route recommendation Method further include:
Target information of checking card is sent to the client;
Obtain the client according to the target check card information return route choose information;
Information, which is chosen, according to the route generates and sends route planning data to the client, so that the client is aobvious Show and the route planning data are shown on interface.
3. as described in claim 1 based on the punch card method of route recommendation, which is characterized in that described according to each described default The Punch Type checked card a little determines position to be selected of checking card, comprising:
According to each default Punch Type checked card a little, by it is described it is default check card a little to be divided into fixation and check card a little check card with flowing Point;
It is checked card effectively checking card range a little according to each flowing, the son for determining that each flowing is checked card a little is checked card a little;
By each fixation check card a little and it is each it is described flow the son checked card a little and check card a little be determined as position to be selected of checking card.
4. as described in claim 1 based on the punch card method of route recommendation, which is characterized in that described according to each described pre- After if the Punch Type checked card a little determines position to be selected of checking card, the punch card method based on route recommendation further include:
If the current location it is any one it is described it is to be selected check card in position, when detecting current time and whether meeting default check card Between;
It checks card the time if the current time meets described preset, judges that the Punch Type of the position to be selected of checking card is It is no to check card for movement;
If the Punch Type of the position to be selected of checking card is that movement is checked card, punching operation is executed.
5. as described in claim 1 based on the punch card method of route recommendation, which is characterized in that described initially to go out walking along the street from described It is chosen in line and meets the traffic path composition target of preset condition and check card information, target information of checking card includes that target is checked card position Set and recommend traffic path, comprising:
Obtain each initial traffic path corresponding initial travel time;
The target travel time is determined according to current time and the default time of checking card, and is filtered out from the initial traffic path The initial travel time is less than the traffic path of the target travel time, as recommendation traffic path;
It determines that the corresponding position of checking card of the recommendation traffic path is that target is checked card position, and the target is checked card position and institute It states and traffic path composition target is recommended to check card information.
6. as described in claim 1 based on the punch card method of route recommendation, which is characterized in that from the initial traffic path The traffic path composition target that middle selection meets preset condition is checked card before information, the punch card method based on route recommendation, Further include:
Daily trip route is obtained, the daily trip route includes the daily trip time;
Judge whether current time and the trip time difference of the daily trip time are less than time threshold, if the trip time difference is small In the time threshold, then prompt of promptly checking card is issued.
7. a kind of punch-card device based on route recommendation characterized by comprising
Request of checking card module, for obtain client transmission request of checking card, it is described check card request include identity with Current location;
User type obtains module, for being based on the identity, obtains from preset User Information Database corresponding User type;
Default check card obtains a module, for according to the user type, obtain at least one it is default check card a little, it is each described pre- If checking card a little includes Punch Type;
Position determination module to be selected of checking card, for determining to be selected check card according to each default Punch Type checked card a little Position;
Initial traffic path obtains module, for being based on the current location and each position to be selected of checking card, obtains at least One initial traffic path;
Comprising modules meet the traffic path composition target of preset condition and check card letter for choosing from the initial traffic path Breath, the target check card information include target check card position and recommend traffic path.
8. as claimed in claim 7 based on the punch-card device of route recommendation, which is characterized in that the beating based on route recommendation Card device further include:
Sending module, for target information of checking card to be sent to the client;
Route choose data obtaining module, for obtain the client according to the target check card information return route choose Information;
Generation module generates and sends route planning data to the client for choosing information according to the route, so that The client in the display interface shows the route planning data.
9. a kind of computer equipment, including memory, processor and storage are in the memory and can be in the processor The computer program of upper operation, which is characterized in that the processor realized when executing the computer program as claim 1 to Based on the punch card method of route recommendation described in 6 any one.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has computer program, and feature exists In realization checking card based on route recommendation as described in any one of claim 1 to 6 when the computer program is executed by processor Method.
CN201910516567.7A 2019-06-14 2019-06-14 Route recommendation-based card punching method and device, computer equipment and storage medium Active CN110379028B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910516567.7A CN110379028B (en) 2019-06-14 2019-06-14 Route recommendation-based card punching method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910516567.7A CN110379028B (en) 2019-06-14 2019-06-14 Route recommendation-based card punching method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110379028A true CN110379028A (en) 2019-10-25
CN110379028B CN110379028B (en) 2023-02-28

Family

ID=68248781

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910516567.7A Active CN110379028B (en) 2019-06-14 2019-06-14 Route recommendation-based card punching method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110379028B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064916A (en) * 2021-04-22 2021-07-02 中国平安财产保险股份有限公司 Abnormal card punching behavior monitoring method and device, computer equipment and storage medium
CN113984079A (en) * 2021-10-26 2022-01-28 沈阳美行科技有限公司 Route planning method and device for electric vehicle, electronic equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013080435A (en) * 2011-10-05 2013-05-02 Chugoku Electric Power Co Inc:The Attendance advance confirmation system
CN104200533A (en) * 2014-08-14 2014-12-10 宣颖骥 Card punching system and card punching method based on positioning service function
CN105184612A (en) * 2015-09-07 2015-12-23 广东欧珀移动通信有限公司 Route recommendation method and user terminal
CN106197450A (en) * 2016-07-06 2016-12-07 深圳市金立通信设备有限公司 A kind of navigation reminders method and terminal
CN106780816A (en) * 2017-01-16 2017-05-31 北京恒华伟业科技股份有限公司 A kind of work attendance punch card method and device
CN108154566A (en) * 2017-12-26 2018-06-12 北京邦邦共赢网络科技有限公司 A kind of method and apparatus intelligently checked card
CN108694457A (en) * 2017-04-07 2018-10-23 北京嘀嘀无限科技发展有限公司 The method and device of information recommendation

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013080435A (en) * 2011-10-05 2013-05-02 Chugoku Electric Power Co Inc:The Attendance advance confirmation system
CN104200533A (en) * 2014-08-14 2014-12-10 宣颖骥 Card punching system and card punching method based on positioning service function
CN105184612A (en) * 2015-09-07 2015-12-23 广东欧珀移动通信有限公司 Route recommendation method and user terminal
CN106197450A (en) * 2016-07-06 2016-12-07 深圳市金立通信设备有限公司 A kind of navigation reminders method and terminal
CN106780816A (en) * 2017-01-16 2017-05-31 北京恒华伟业科技股份有限公司 A kind of work attendance punch card method and device
CN108694457A (en) * 2017-04-07 2018-10-23 北京嘀嘀无限科技发展有限公司 The method and device of information recommendation
CN108154566A (en) * 2017-12-26 2018-06-12 北京邦邦共赢网络科技有限公司 A kind of method and apparatus intelligently checked card

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113064916A (en) * 2021-04-22 2021-07-02 中国平安财产保险股份有限公司 Abnormal card punching behavior monitoring method and device, computer equipment and storage medium
CN113064916B (en) * 2021-04-22 2023-09-05 中国平安财产保险股份有限公司 Monitoring method and device for abnormal card punching behavior, computer equipment and storage medium
CN113984079A (en) * 2021-10-26 2022-01-28 沈阳美行科技有限公司 Route planning method and device for electric vehicle, electronic equipment and storage medium
CN113984079B (en) * 2021-10-26 2024-04-19 沈阳美行科技股份有限公司 Route planning method and device for electric vehicle, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN110379028B (en) 2023-02-28

Similar Documents

Publication Publication Date Title
Bachir et al. Inferring dynamic origin-destination flows by transport mode using mobile phone data
US6587781B2 (en) Method and system for modeling and processing vehicular traffic data and information and applying thereof
US10156450B2 (en) System and method of navigation
CN109996193B (en) Short message sending method, device, system and equipment based on intelligent communication platform
US8671143B2 (en) Virtual badge, device and method
US9129230B2 (en) Virtual badge, device and method
US9818074B2 (en) Method and system to analyze time stamp location data to produce movement and idle segments
CN106462627A (en) Analyzing semantic places and related data from a plurality of location data reports
Wang et al. A big data approach for smart transportation management on bus network
CN109996186A (en) A kind of network coverage problem identification method and device, read/write memory medium
CN109767030A (en) Congestion in road detection method, device, computer equipment and storage medium
WO2015096400A1 (en) Bus planning method using mobile communication data mining
CN103822638B (en) The treating method and apparatus of customer position information
CN110849384A (en) Navigation route generation method and device, readable storage medium and computer equipment
CN110490608A (en) Methods of risk assessment, device, computer equipment and storage medium
CN110379028A (en) Punch card method, device, computer equipment and storage medium based on route recommendation
CN109936819A (en) It gets on the bus a recommended method, device and equipment
CN109416808A (en) Device and method for Order splitting
CN110276977A (en) A kind of bus station matching process, device, equipment and readable storage medium storing program for executing
CN110110243A (en) A kind of historical track destination prediction technique based on echo state network
CN109724587A (en) Dynamic route planing method, device and medium based on GPS
CN105159543B (en) It is a kind of that the method and apparatus of Map Services are provided
CN109618281A (en) A kind of recognition methods of high-speed rail cell and device
CN108573265B (en) People flow statistical method and statistical system
CN111639879A (en) Intelligent security personnel information management method, device and system, storage medium and server

Legal Events

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