A kind of method and device by client request appointment business
Technical field
The present invention relates to field of information processing, more particularly to a kind of method by client request appointment business
And device.
Background technology
With developing rapidly for electronic technology and mobile network, smart mobile phone, personal digital assistant (Personal
Digital Assistant, abbreviation PDA) etc. client be widely used with its powerful function.Visitor
Family end can download abundant application software according to the instruction of user, can after being installed to these application software
So that the function of client is more powerful, operation more facilitates.
At present, the application software installed in client can provide the user various services, with client as use
As a example by what family provided is serviced with car, client indicates operation car to be served by software according to user, and presents
User service application interface, user can select subscription time in the interface, and use car place, client
Hold and give service provider corresponding server the information transfer that user selects, will be used by the corresponding server of service provider
The information of family selection is sent to vehicle service personnel, is reached in the subscription time that user selects by attendant
When, in-use automotive place provides the user and is serviced with car.Using above-mentioned technical proposal, when user is in subscription time
Certain time point before arrival is when being located at other places beyond car place, it is necessary to by a certain trip
Mode reaches this and uses car place by other places, may be due to each during user is reached with car place
Plant reason to shift to an earlier date in subscription time or delay in subscription time arrival car place, now, user will be caused
Prolonged wait or attendant wait for a long time, cause temporal waste;When attendant waits
During time course, it would be possible to leave and use car place, user is caused to obtain the problem serviced with car.
As can be seen here, at present, when client preengages various services, there is subscription time and determine that error is big,
The low problem of service acquisition efficiency.
The content of the invention
The embodiment of the present invention provides a kind of method and device by client request appointment business, is used to solve
In the prior art when client preengages various services, there is subscription time and determine that error is big, service acquisition effect
The low problem of rate.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
A kind of method by client request appointment business, including:Server receives containing for client transmission
The appointment business for having subscriber information is asked;Wherein, the subscriber information is at least included for characterizing
The initial position message of user's present position, for characterize user institute appointment business original position it is pre-
About positional information, and for characterizing user from the present position to the start bit of the appointment business
The trip mode information put;According to the trip mode information, calculate the user and be currently located position by described
Put the estimated time of the original position for reaching the appointment business;And according to the estimated time, it is determined that performing
The subscription time of the appointment business.
Optionally, according to the trip mode information, calculate the user and reached by the present position
The estimated time of the original position of the appointment business, specifically include:Invocation map instrument, obtains described working as
Preceding position reaches the programme path between the original position of the appointment business;Obtain the trip mode
The corresponding travel speed of information;According to the programme path for obtaining, and the corresponding row of the trip mode information
Speed is sailed, the estimated time that the user reaches the original position of the appointment business is calculated.
Optionally, when various trip modes are included in the trip mode information, the trip mode is obtained
The corresponding travel speed of information, specifically includes:For each section included in the programme path,
It is performed both by following operation:Obtain the trip mode in the section;And determine using the trip mode for obtaining described
When being travelled on section, the corresponding travel speed of trip mode of the acquisition;According to the programme path for obtaining,
And the corresponding travel speed of the trip mode information, calculate the user and reach rising for the appointment business
Beginning position estimated time, specifically include:For each section included in the programme path, hold
The following operation of row:The corresponding travel speed of trip mode according to the section, and the section length,
It is determined that the time used by the section using the trip mode;According to being determined by each section
The summation of the time for being used, determines that the user reaches when the estimating of original position of the appointment business
Between.
Further, methods described also includes:Obtain the present position and reach the appointment business
After programme path between original position, the programme path is sent to the client;And receive institute
State the customer position information that client sends in real time;When the customer position information sent according to the client,
When determining that the client deviates the programme path, invocation map instrument reacquires the customer location
The corresponding position of information to the original position of the appointment business programme path;And perform following steps:Root
According to the programme path for obtaining, and the corresponding travel speed of the trip mode information, calculate the user and arrive
Up to the estimated time of the original position of the appointment business.
Optionally, the first preset duration corresponding time point before the estimated time is obtained;And according to
The trip mode of user and the programme path, it is determined that obtain time point reach when the user position
Confidence ceases;Receive the customer position information that the client sends in real time;When the newest transmission of the client
When the customer position information matches with the positional information of the user for determining, by described in described receiving
The second preset duration corresponding time point after the time point of the customer position information of the newest transmission of client,
It is defined as performing the subscription time of the appointment business;Wherein, second preset duration is less than described first
Preset duration.
A kind of method by client request appointment business, including:Client obtains the reservation of user input
User profile;Wherein, the subscriber information is at least included for characterizing the first of user's present position
Beginning positional information, the reservation location information of the original position for characterizing user institute appointment business, and be used for
User is characterized from the present position to the trip mode information of the original position of the appointment business;Root
According to the subscriber information, generation appointment business request is sent to server;Notify the server according to
The trip mode information, the calculating user reaches the appointment business by the present position
Beginning position estimated time;And according to the estimated time, it is determined that performing the subscription time of the appointment business.
A kind of device by client request appointment business, including:Receiving unit, for receiving client
The request of the appointment business containing subscriber information for sending;Wherein, the subscriber information at least includes
Initial position message for characterizing user's present position, the starting for characterizing user institute appointment business
The reservation location information of position, and for characterizing user from the present position to the appointment business
Original position trip mode information;Computing unit, for according to the trip mode information, calculating institute
State the estimated time that user is reached the original position of the appointment business by the present position;During reservation
Between determining unit, for according to the estimated time, it is determined that performing the subscription time of the appointment business.
Optionally, the computing unit, specifically for:Invocation map instrument, obtain described in be currently located position
Put the programme path between the original position for reaching the appointment business;Obtain the trip mode information correspondence
Travel speed;According to the programme path for obtaining, and the corresponding travel speed of the trip mode information,
Calculate the estimated time that the user reaches the original position of the appointment business.
Optionally, when various trip modes are included in the trip mode information, the computing unit is obtained
The corresponding travel speed of the trip mode information, specifically for:For what is included in the programme path
Each section, is performed both by following operation:Obtain the trip mode in the section;And determine using going out for obtaining
When line mode is travelled on the section, the corresponding travel speed of trip mode of the acquisition;The calculating
Unit calculates described according to the programme path for obtaining, and the corresponding travel speed of the trip mode information
User reaches the estimated time of the original position of the appointment business, specifically includes:For the programme path
In each section for including, be performed both by following operation:The corresponding traveling of trip mode according to the section
Speed, and the section length, it is determined that the time used by the section using the trip mode;
According to the summation for being determined by the time that each section is used, determine that the user reaches the reservation
The estimated time of the original position of business.
Further, described device also includes processing unit, is used for:The present position is obtained to reach
After programme path between the original position of the appointment business, the programme path is sent to the visitor
Family end;And receive the customer position information that the client sends in real time;When what is sent according to the client
Customer position information, when determining that the client deviates the programme path, invocation map instrument is obtained again
Take the programme path of the corresponding position of the customer position information to the original position of the appointment business;And hold
Row following steps:According to the programme path for obtaining, and the corresponding travel speed of the trip mode information,
Calculate the estimated time that the user reaches the original position of the appointment business.
Optionally, the subscription time determining unit, specifically for:Obtained before the estimated time
First preset duration corresponding time point;And trip mode and the programme path according to user, it is determined that
The positional information of the user when reaching at the time point for obtaining;Receive the user that the client sends in real time
Positional information;The customer position information and the position of the user for determining when the newest transmission of the client
When putting information match, by the time point of the customer position information for receiving the newest transmission of the client
At the second preset duration corresponding time point afterwards, it is defined as performing the subscription time of the appointment business;Its
In, second preset duration is less than first preset duration.
A kind of device by client request appointment business, including:Acquiring unit, it is defeated for obtaining user
The subscriber information for entering;Wherein, the subscriber information at least includes being currently located for characterizing user
The initial position message of position, the reservation location information of the original position for characterizing user institute appointment business,
And for characterizing user from the present position to the trip side of the original position of the appointment business
Formula information;Generation unit, for according to the subscriber information, generation appointment business request to be sent to clothes
Business device;Notification unit, for notifying that the server, according to the trip mode information, calculates the user
The estimated time of the original position of the appointment business is reached by the present position;And according to described pre-
The time is estimated, it is determined that performing the subscription time of the appointment business.
In the embodiment of the present invention, server receives the subscriber information that client sends, and obtains the reservation
The starting of the present position of the user included in user profile, trip mode information, and appointment business
Position;Server according to the present position of the user of above-mentioned acquisition and the original position of appointment business, with
And trip mode information, you can determine that user reaches the subscription time of the original position of appointment business.Using this
Inventive technique scheme, includes trip mode information option in the interactive interface that client is provided, client can be with
According to the selection of user, by the trip mode information transfer to server, enable the server to combine trip side
Formula information, determines subscription time, compared to being in the prior art defined as into subscription time the time of user input,
Using the embodiment of the present invention can more objective and accurate calculating subscription time, effectively reduce acquisition service
Stand-by period, improve obtain service efficiency.
Brief description of the drawings
Fig. 1 is communication system architecture schematic diagram in the embodiment of the present invention;
Fig. 2 is the flow chart one in the embodiment of the present invention by client request appointment business;
Fig. 3 is the flowchart 2 in the embodiment of the present invention by client request appointment business;
Fig. 4 is the flow under concrete application scene in the embodiment of the present invention by client request appointment business
Figure;
Fig. 5 is the apparatus structure schematic diagram one in the embodiment of the present invention by client request appointment business;
Fig. 6 is the apparatus structure schematic diagram two in the embodiment of the present invention by client request appointment business.
Specific embodiment
In order to solve in the prior art client preengage various services when, there is subscription time and determine error
Greatly, the low problem of service acquisition efficiency.In the embodiment of the present invention, server receives the reservation that client sends
User profile, and the present position of the user included in the subscriber information is obtained, trip mode letter
Breath, and appointment business original position;Server according to the present position of the user of above-mentioned acquisition and
The original position of appointment business, and trip mode information, you can determine that user reaches the starting of appointment business
The subscription time of position.Using technical solution of the present invention, trip side is included in the interactive interface of client offer
Formula information option, client can according to the selection of user, by the trip mode information transfer to server,
Enable the server to combine trip mode information, subscription time is determined, compared in the prior art that user is defeated
The time for entering is defined as subscription time, being capable of more objective and accurate calculating reservation using the embodiment of the present invention
Time, the stand-by period of the service of acquisition is effectively reduced, improve the efficiency of the service of acquisition.
With reference to Figure of description, the embodiment of the present invention is described in further detail.
Refering to shown in Fig. 1, being communication system architecture schematic diagram in the embodiment of the present invention, wherein, the communication system
Server, and multiple client are included in system, wherein, client can respond the request of user, to clothes
Business device sends appointment business request, and the client can be athe portable client (such as mobile phone), it is also possible to
It is non-portable client (such as personal computer);Server is the reservation industry for being capable of the transmission of customer in response end
Business request, and the equipment for providing the user service, below including a server and one in communication system
As a example by client, the embodiment of the present invention is preferred embodiment described in detail with reference to accompanying drawing.
Embodiment one
Refering to shown in Fig. 2, in the embodiment of the present invention, server determines subscription time, and provides the user clothes
The method of business, including:
Step 200:Server receives the request of the appointment business containing subscriber information that client sends;
Wherein, the subscriber information at least includes the initial bit confidence for characterizing user's present position
Breath, the reservation location information of the original position for characterizing user institute appointment business, and for characterizing user
From the present position to the trip mode information of the original position of the appointment business.
In the embodiment of the present invention, client is presented interactive interface to user;And user is obtained in the interactive interface
The present position of middle input, the original position of appointment business, and trip mode information;Wherein, in advance
About the original position of business provides the place of business for user's request;Trip mode information can include without trailer
The dynamic vehicles (including self-driving, public transport), track traffic (including Tube and Train etc.) is ridden, walking
Etc. mode, client can be presented above-mentioned trip mode information option in the form of drop-down option menu, use
Family can select corresponding option in the drop-down option menu, and be defined as the option that user selects by client
The trip mode of user.
Optionally, client can be presented two input frames, respectively present position in interactive interface
The original position input frame of input frame and appointment business;Client is according to user's position input in this prior
The positional information being input into the original position input frame of frame and appointment business determines that the user's is currently located position
Put the original position with appointment business;Additionally, client can also be defeated in the input frame of position in acquisition user
After any one character for entering, network or searched and any one character phase from local map database
The geographical location information of matching, and the geographical position that above-mentioned lookup is obtained is presented in the form of drop-down options menu
Information, and the selection according to user in the drop-down option menu, determine present position and reservation industry
The original position of business, information input is carried out using this kind of mode, it is only necessary to user input fuzz locating information,
Client is accurate without user input by the Auto-matching precise position information related to the fuzz locating information
Positional information, improves the efficiency of user input information, also, is just known that this method avoid user fuzzy
Positional information, it is impossible to when being input into accurate location information, client cannot obtain accurate present position and
The original position of appointment business, ultimately resulting in client cannot determine the problem of subscription time.
Optionally, when client possesses positioning function, client can determine the client using positioning function
Present position is held as the present position of user, and the present position of the user is added automatically
Add in above-mentioned interactive interface, without user input positional information, improve the efficiency of user input information.
Optionally, client is by the present position of above-mentioned user, trip mode information and appointment business
Original position is sent to server as subscriber information, by server according to the subscriber information,
Determine the subscription time of user.
Further, can also be input into comprising sex input frame and age in the interactive interface that client is provided
Frame;Drop-down option menu can be included in the sex input frame and age input frame, client is used by obtaining
Selection of the family in the drop-down option menu, determines sex and the age of user;Or, above-mentioned sex input
Frame and age input frame can also be presented only in the form of input frame, not comprising Drop Down Menu Choices, client
According to the information that user is input into the input frame, sex and the age of user are determined;Client is by above-mentioned use
The sex at family and age are sent to server as subscriber information, are believed according to the subscriber by server
Breath, determines the subscription time of user.
In above process, client in its interactive interface for providing comprising trip mode information input frame,
Sex input frame and age input frame, user can be carried out defeated according to own situation in above-mentioned interactive interface
Enter, and by client according to the every terms of information of user input generate subscriber information, enable server according to
The subscriber information that user provides, draws the subscription time corresponding to the user, due to each user certainly
Body situation is different, and for different user, when being run in same routes, arrive at the destination duration used
Have differences, therefore, using above-mentioned technical proposal, server can be according to the age information of user and sex
Information, obtains more accurate subscription time.
Step 210:According to the trip mode information, calculate the user by the present position to
Up to the estimated time of the original position of the appointment business.
In the embodiment of the present invention, the trip mode information that server sends according to client can be calculated
The user reaches the estimated time during original position of appointment business.
Optionally, server determines the process of estimated time, including:Server calls map tool, obtains
To the programme path between the original position of appointment business, the map tool can be the present position
Store to the offline map of server local, or the Online Map that map server is provided;According to obtaining
The programme path for taking, and the corresponding travel speed of the trip mode information, calculate the user by described
Present position reaches the duration used by the original position of the appointment business, wherein, above-mentioned different trips
The corresponding travel speed of mode information can pre-set and store local;According to the user reaches
The time of present position, and the duration being calculated, calculate the user and reach the appointment business
Original position estimated time.
In above process, client by current time be defined as the user reach present position when
Between, current time and the duration sum being calculated are calculated, this and value are reached described pre- as the user
About estimated time of the original position of business, for example, current time (being designated as T1) user position is A,
The original position of appointment business is B, and it is S1 to calculate the distance between A and B, when the trip that user uses
Mode information is trip mode a, and uses trip mode a to reach the original position of the appointment business for even
Speed traveling when, if the corresponding travel speeds of trip mode a be v, user by A reach B used when
T=S1/v long, then estimated time T2 is (T1+T).
Further, initial position message can also be set to user other positions outside present position
The information put;Other positions outside the initial position message is user position described in current time
Information when, when terminal reaches the other positions, the time for reaching the other positions is sent to service
Device, by server calculate that the original position for reaching the appointment business by the other positions used when
It is long, and the time of the arrival other positions and the duration sum being calculated are calculated, by this and value
The estimated time of the original position of the appointment business is reached as the user, for example, appointment business rises
Beginning, position was B, and other positions are C, and time when user reaches C is T3, between calculating C and B
Distance is S2, when the trip mode information that user uses is trip mode a, and is reached using trip mode a
The original position of the appointment business at the uniform velocity travel when, if the corresponding travel speeds of trip mode a be v,
Then user reaches the duration T=S2/v that B is used by C, then estimated time T2 is (T3+T).
Optionally, the programme path that server will can also be obtained is sent to client, and the rule are confirmed by user
Draw whether route is feasible, and instruction user reaches the original position of appointment business according to the programme path.
Further, various trip modes can be included in trip mode information, server can be according to various
Trip mode voluntarily programme path, and the trip mode in each section in programme path is set;Or, clothes
Business device sends to client programme path, by user according to programme path, planning road is set in the client
The trip mode in each section included in line, and by client by each trip mode information pair of user
The section answered is sent to server, by server according to each corresponding section of trip mode information, is calculated
Estimated time.
Using above-mentioned technical proposal, when the trip mode of user's selection is different, servers' layout obtain by
Present position is also different to the route between the original position of appointment business, and user can be according to server
The programme path of transmission reaches the original position of appointment business, and special map tool, drop are started without user
The low load of client, improves Consumer's Experience;If also, user arrives according to the programme path of server
Up to the original position of reservation position, then the estimated time that server is calculated can be made more accurate, improved
User obtains the final efficiency asked and service.
In the embodiment of the present invention, trip mode of the trip mode packet containing diversified forms, server is not for
Trip mode, will obtain the different estimated times;Specifically:
The first trip mode, when the trip mode information be trackless automotive (such as public transport, from
Drive) when, server sends road condition information inquiry and asks to traffic information server;Taken according to traffic information
The traffic information response that business device is returned, each section included in programme path described in acquisition current time
Traffic information;Respectively according to the traffic information in each section, the trackless automotive is determined
In the travel speed in the section;And according to determine the trackless automotive each section row
Speed is sailed, the time that the trackless automotive is used by the section is determined;It is logical according to what is determined
The summation of each section institute use time is crossed, determines that the user reaches the original position of the appointment business
Estimated time.For example, if present position is A, the original position of appointment business is B, and user arrives
Time up to A is T1, and reaching B by A needs by section 1, section 2 and section 3, wherein, road
The length of section 1 is s1, the length in section 2 is s2, the length in section 3 is s3, the trackless motorized traffic
Travel speed of the instrument in section 1 is v1, and the travel speed in section 2 is v2, in the traveling in section 3
Speed is v3, then user is (s1/v1+s2/v2+s3/v3) by the duration T that A arrival B is used, and is estimated
Time T2 is (T1+T).
Using the technical scheme, server can combine the traffic information in each section, calculate pass through respectively
The duration that each section is used, compared to only rising by programme path length computation arrival appointment business
The beginning position method that uses duration, the estimated time that the embodiment of the present invention is calculated is more accurate, so that
Improve the accuracy of the subscription time for finally giving.
Optionally, server can also determine the motor-driven friendship of the trackless according to the traffic information in each section
Lead to travel speed of the instrument in each section, and according to the travel speed in each section, calculate the nothing
Rail automotive by present position to appointment business original position average speed;And according to
The programme path and the average speed being calculated, determine the estimated time.If for example, being currently located
Position is A, and the original position of appointment business is B, and the time that user reaches A is T1, and B is reached by A
Need by section 1, section 2 and section 3, wherein, traveling of the trackless automotive in section 1
Speed is v1, and the travel speed in section 2 is v2, and the travel speed in section 3 is v3, then without trailer
The average speed v of the dynamic vehicles is (v1+v2+v3)/3, and user reaches the duration T that B is used by A
It is (s1+s2+s3)/v, estimated time T2 is (T1+T).
Using the technical scheme, server can combine the traffic information in each section, calculate by planning
The duration that route is used, compared to the original position that appointment business is only reached by programme path length computation
The method of used duration, the estimated time that the embodiment of the present invention is calculated is more accurate, so as to improve
The accuracy of the subscription time for finally giving;Also, compared to the mode that above-mentioned pavement branch sections calculate the estimated time,
Embodiment of the present invention calculating process is more succinct, and the efficiency of subscription time is obtained so as to improve.
Optionally, server can also determine the trackless motorized traffic work according to each section of traffic information
Have the travel speed in each section, and the travel speed weight corresponding with its according to each section
Value, calculate the trackless automotive by present position to appointment business original position it is average
Speed;And according to the programme path and the average speed being calculated, determine the estimated time.Its
In, the weighted value in above-mentioned section can be default according to the length in the section, it is also possible to the road conditions letter according to section
Breath dynamic is set, and when such as road conditions are poorer, weighted value will be bigger.If for example, present position be A, in advance
About the original position of business is B, and the time that user reaches A is T1, and reaching B by A needs by section
1st, section 2 and section 3, wherein, the length in section 1 is s1, the length in section 2 is s2, section 3
Length be s3, and s1 > s2 > s3, travel speed of the trackless automotive in section 1 is v1,
Travel speed in section 2 is v2, and the travel speed in section 3 is v3, and the weighted value in section 1 is a1,
The weighted value in section 2 is a2, and the weighted value in section 3 is a3, and the weighted value is according to above-mentioned each section
Set by length, such as a1 > a2 > a3, then the average speed v of trackless automotive be
(a1*v1+a2*v2+a3*v3)/3, user is (s1+s2+s3) by the duration T that A arrival B is used
/ v, estimated time T2 are (T1+T).
Using the technical scheme, server can combine the traffic information in each section, be each section
Corresponding weighted value is assigned, the duration used by programme path is calculated, compared to only by programme path
Length computation reaches the method that the original position of appointment business uses duration, and the embodiment of the present invention is calculated
Estimated time it is more accurate, so as to improve the accuracy of the subscription time for finally giving;Also, compare
In the above-mentioned mode that the estimated time is calculated only in conjunction with traffic information, embodiment of the present invention calculating process more section
Learn, accuracy is higher.
Second trip mode, when trip mode information is walking or when riding, due to the trip mode
Travel speed is smaller with road conditions relevance, and age and sex to user are related, therefore, server can be with
According to the age of user information and user gender information that are included in subscriber information, user's correspondence is determined
Travel speed;And according to the programme path for obtaining travel speed corresponding with the user for determining, it is determined that
The user reaches the estimated time of the original position of the appointment business.
The third trip mode, when trip mode information is track vehicle, due to different time points rail
The departure interval of road traffic differs greatly, therefore, server can be according to user by present position
Time, and track vehicle travel speed, it is determined that the original position for reaching appointment business is estimated
Time.
Further, when trip mode information is track vehicle, because track vehicle may be deposited
In transfer situation, when transfer route is more long, the time that user reaches the original position of appointment business goes back and uses
The age at family is related to sex, therefore, server can be combined with considering age information and the sex letter of user
Breath, it is determined that reaching the estimated time of the original position of appointment business.
Using above-mentioned technical proposal, with reference to user's travel time point, the age information of user and gender information,
Determine that user reaches the estimated time of the original position of appointment business, calculate the reference factor of estimated time more
Overall scientific, so as to improve the accuracy of the estimated time being calculated, and then improves final acquisition
The accuracy of subscription time, improves the efficiency that user obtains server.
4th kind of trip mode, when the trip mode information is track vehicle and trackless motorized traffic work
When tool is combined, because the travel speed of track vehicle is constant, therefore, server can be with direct access
The corresponding travel speed of the track vehicle;Due to the travel speed and road conditions of trackless automotive
Correlation, therefore, server obtains the corresponding section of trackless automotive described in the programme path;
Each section for being included in the corresponding section of trackless automotive described in acquisition current time respectively
Traffic information;Respectively according to obtain described in each section traffic information, determine the motor-driven friendship of the trackless
Traveling degree of hastening of the logical instrument in the section;According to the trackless automotive in the motor-driven friendship in the road surface
The travel speed in logical corresponding each section of instrument, determines that the trackless automotive passes through the section
The duration for being used;And according to the track vehicle in the corresponding section of the track vehicle, with
And the travel speed of the track vehicle, determine that the track vehicle passes through the road vehicles
The duration that corresponding section is used;Calculate the trackless automotive for determining and pass through each section
The summation of used duration, and the track vehicle passes through the corresponding section institute of the road vehicles
The duration and value for using, according to described and value, determines that the user reaches the start bit of the appointment business
The estimated time put.
For example, if present position is A, the original position of appointment business is B, user reach A when
Between be T1, by A reach B need by section 1, section 2 and section 3, wherein, the length in section 1
For the length in s1, section 2 be s2, the length in section 3 be s3, section 1 uses track vehicle,
Section 2 and section 3 use trackless automotive, travel speed of the track vehicle in section 1
It is v1, travel speed of the trackless automotive in section 2 is v2, and the travel speed in section 3 is
V3, then user is s1/v1+s2/v2+s3/v3 by the duration T that A arrival B is used, and the estimated time, T2 was
(T1+T)。
Using the technical scheme, the trip mode that server can be combined according to various trip modes, it is determined that
User reaches the estimated time of the original position of the appointment business, and user can be gone out using various trip modes
OK, so as to increased the flexibility that user goes on a journey, Consumer's Experience is effectively increased.
Fifth procedure, when the trip mode information be track vehicle, trackless automotive,
And walking (or riding) is when being combined, for each section included in the programme path,
Perform following operation:Obtain the trip mode in the section;And determine using the trip mode for obtaining on the road
When being travelled in section, the corresponding travel speed of trip mode of the acquisition;For being included in the programme path
Each section, be performed both by following operation:The corresponding travel speed of trip mode according to the section,
And the length in the section, it is determined that the time used by the section using the trip mode;According to
The summation of the time that each section is used is determined by, determines that the user reaches the appointment business
Original position estimated time.
For example, if present position is A, the original position of appointment business is B, user reach A when
Between be T1, by A reach B need by section 1, section 2 and section 3, wherein, the length in section 1
For the length in s1, section 2 be s2, the length in section 3 be s3, section 1 uses track vehicle,
Section 2 uses trackless automotive, and section 3 uses manner of walking, and the track vehicle is in section
1 travel speed is v1, and travel speed of the trackless automotive in section 2 is v2, and user is in section
The travel speed of 3 walkings is v3, then user is by the duration T that A arrival B is used
S1/v1+s2/v2+s3/v3, estimated time T2 are (T1+T).
Using the technical scheme, the trip mode that server can be combined according to various trip modes, it is determined that
User reaches the estimated time of the original position of the appointment business, and user can be gone out using various trip modes
OK, so as to increased the flexibility that user goes on a journey, Consumer's Experience is effectively increased.
Step 220:According to the estimated time, it is determined that performing the subscription time of the appointment business.
In the embodiment of the present invention, server is according to the above-mentioned estimated time being calculated, you can it is determined that during reservation
Between.Optionally, the estimated time is defined as subscription time by server;Or, when server estimates this
Between before some time point be defined as subscription time.
Specifically, some time point before the estimated time to be defined as server the side of subscription time
Formula is included:Server obtains the first preset duration corresponding time point before the estimated time;And root
According to the trip mode and the programme path of user, it is determined that the acquisition time reach when user position
Confidence ceases;When the customer position information phase of the customer position information and the determination that the client sends
Meanwhile, when second after the time point for receiving the customer position information that the client sends is preset
At length corresponding time point, it is defined as performing the subscription time of the appointment business, wherein, described second presets
Duration is less than first preset duration.
For example, the estimated time is T2, the first preset duration is t1, and the second preset duration is t2, then in institute
The corresponding time point T4 of the first preset duration before stating the estimated time is (T2-t1), and client determines
When time point T4 is reached, user should in-position D;Client in real time sends out the positional information of user
Server is delivered to, when server determines the position as position D of user, server is obtained and receives client
The positional information of the user for sending is held for the time point T5 of position D, and is calculated second after time point T5
Time point after preset duration t2 is (T5+t2), and it is described pre- that (T5+t2) is defined as execution by server
The about subscription time of business.
Using the technical scheme, the time point before the time point that user is reached some place by server is true
It is set to subscription time, because the original position of a certain distance location appointment business is nearer, therefore, it is to avoid
User runs into special circumstances, it is necessary to expend the original position that longer time reaches appointment business, even exists
When subscription time is reached, the original position of user distance appointment business is still very remote, causes subscription time to miss
The larger problem of difference, improves user and obtains reliability of service;Also, server is by before the estimated time
Some at time point be defined as subscription time, it is to avoid when user reaches the original position of appointment business,
The problem of wait attendant may be stilled need, efficiency and reliability that user obtains service is improve.
Further, when server determines subscription time according to user's trip mode, will subscription time transmission
To the client for servicing offer personnel, service offer personnel can reach the appointment business in subscription time
Original position waits the user.
Further, server sends to client programme path, before user is referred to the programme path
Toward the original position of appointment business, but when user possesses the route voluntarily planned, and the road voluntarily planned
When line is different from the route of servers' layout, server can in the following way calculate subscription time:
First way:Client sends to server the route that user voluntarily plans;Server is according to this
The route voluntarily planned, with reference to trip mode information, the age information of user and gender information calculate user
Reach the subscription time of the original position of appointment business.
The second way:When user according to programme path after a segment distance is travelled, because cause specific deviates
During the programme path, server can receive the customer position information that the client sends in real time;When
According to the customer location, when determining that the client deviates the programme path, server calls map work
Tool, reacquires the programme path of original position of the customer location position to the appointment business;And root
According to the programme path for reacquiring, and the corresponding travel speed of the trip mode information, the use is calculated
Family reaches the estimated time of the original position of the appointment business, and is replaced with the estimated time recalculated
The estimated time being calculated before.
Using above-mentioned technical proposal, when server determines that user's travel route deviates programme path, server
Based on user's travel route overline programme path, and subscription time will be determined, it is ensured that what is finally obtained is pre-
The accuracy made an appointment, and ensure that user can reliably get required service.
Further, when server is received according to the customer location, determine that the client deviates the rule
When drawing route, can be sent to client and stop Service Notification, to notify that client can be with re-request service.
Embodiment two
Refering to shown in Fig. 3, in the embodiment of the present invention, the method that user passes through client appointment business, including:
Step 300:Client obtains the subscriber information of user input;Wherein, the subscriber letter
Breath at least includes the initial position message for characterizing user's present position, is preengage for characterizing user
The reservation location information of the original position of business, and for characterizing user from the present position to institute
State the trip mode information of the original position of appointment business.
In the embodiment of the present invention, client is presented interactive interface to user;And user is obtained in the interactive interface
The present position of middle input, the original position of appointment business, and trip mode information;Wherein, in advance
About the original position of business provides the place of business for user's request;Client can use drop-down option menu
Form above-mentioned trip mode information option is presented, user can select accordingly in the drop-down option menu
The option that user selects is defined as option, client the trip mode of user.
Optionally, client can be presented two input frames, respectively present position in interactive interface
The original position input frame of input frame and appointment business;Client is according to user's position input in this prior
The positional information being input into the original position input frame of frame and appointment business determines that the user's is currently located position
Put the original position with appointment business.
Optionally, when client possesses positioning function, client can determine the client using positioning function
Present position is held as the present position of user, and the present position of the user is added automatically
Add in above-mentioned interactive interface, without user input positional information, improve the efficiency of user input information.
Optionally, client is by the present position of above-mentioned user, trip mode information and appointment business
Original position is sent to server as subscriber information, by server according to the subscriber information,
Determine the subscription time of user.
Further, can also be input into comprising sex input frame and age in the interactive interface that client is provided
Frame;Drop-down option menu can be included in the sex input frame and age input frame, client is used by obtaining
Selection of the family in the drop-down option menu, determines sex and the age of user.
In above process, client in its interactive interface for providing comprising trip mode information input frame,
Sex input frame and age input frame, user can be carried out defeated according to own situation in above-mentioned interactive interface
Enter, and by client according to the every terms of information of user input generate subscriber information, enable server according to
The subscriber information that user provides, draws the subscription time corresponding to the user, due to each user certainly
Body situation is different, and for different user, when being run in same routes, arrive at the destination duration used
Have differences, therefore, using above-mentioned technical proposal, server can be according to the age information of user and sex
Information, obtains more accurate subscription time.
Step 310:According to the subscriber information, generation appointment business request is sent to server.
Step 320:The server is notified according to the trip mode information, the user is calculated by described
Present position reaches the estimated time of the original position of the appointment business;And during according to described estimating
Between, it is determined that performing the subscription time of the appointment business.
In the embodiment of the present invention, the programme path that server will can also be obtained is sent to client, by user
Confirm whether the programme path is feasible, and instruction user reaches the start bit of appointment business according to the programme path
Put.
Optionally, when the route that user voluntarily plans is different from the route of servers' layout, client will be used
The route that family is voluntarily planned is sent to server;The route that server is voluntarily planned according to this, with reference to trip side
Formula information, the age information of user and gender information, calculating user reach the pre- of the original position of appointment business
Make an appointment;Or, client is in real time sent to server customer position information;When server is according to
Customer location, when determining that the client deviates the programme path, invocation map instrument reacquires institute
State the programme path of customer location position to the original position of the appointment business;And according to the rule for reacquiring
Route, and the corresponding travel speed of the trip mode information are drawn, the user is calculated and is reached the reservation
The estimated time of the original position of business, and be calculated before being replaced it with the estimated time recalculated
Estimated time.
Embodiment three
Based on above-mentioned application scenarios, refering to shown in Fig. 4, with reference to concrete application scene, clothes are described in detail
Business device obtains the process of subscription time.
Step 401:Client sends to server the subscriber information of user input.
Step 402:Server obtains the trip mode information included in above-mentioned subscriber information, user's
The original position of present position and appointment business.
Step 403:Server is determined by the original position of the present position to the appointment business
Programme path, and the programme path is sent to the client.
Step 404:Server calculates the user according to the programme path, and trip mode information
Reach the estimated time of the original position of the appointment business.
Step 405:Client receives the programme path, and notifies that user travels according to the programme path;
And the positional information of user in real is sent to server.
Step 406:Server judges whether the user deviates the rule according to the positional information of the user
Route is drawn, if so, performing step 407;Otherwise, step 408 is performed.
Step 407:Server according to the positional information of recently received user, programme path again, and
The route of planning is sent to client;And according to the route planned again, the estimated time is recalculated,
Perform step 405.
Step 408:When server judges the positional information of recently received user and the position for precalculating
When information is identical, server sends to the client of service offer personnel and notifies, notifies that the service provides people
Member reaches the original position of appointment business.
In the embodiment of the present invention, the positional information for precalculating is to be determined according to estimated time and preset duration
Information.
Based on above-mentioned technical proposal, refering to shown in Fig. 5, the embodiment of the present invention provides one kind please by client
Ask the device of appointment business, including receiving unit 50, computing unit 51, and subscription time determining unit
52, wherein:
Receiving unit 50, the request of the appointment business containing subscriber information for receiving client transmission;
Wherein, the subscriber information at least includes the initial bit confidence for characterizing user's present position
Breath, the reservation location information of the original position for characterizing user institute appointment business, and for characterizing user
From the present position to the trip mode information of the original position of the appointment business;
Computing unit 51, is currently located for according to the trip mode information, calculating the user by described
Position reaches the estimated time of the original position of the appointment business;
Subscription time determining unit 52, for according to the estimated time, it is determined that performing the appointment business
Subscription time.
Wherein, the computing unit 51, specifically for:Invocation map instrument, obtain described in be currently located position
Put the programme path between the original position for reaching the appointment business;Obtain the trip mode information correspondence
Travel speed;According to the programme path for obtaining, and the corresponding travel speed of the trip mode information,
Calculate the estimated time that the user reaches the original position of the appointment business.
Optionally, when various trip modes are included in the trip mode information, the computing unit 51
The corresponding travel speed of the trip mode information is obtained, specifically for:Wrapped in the programme path
Each section for containing, is performed both by following operation:Obtain the trip mode in the section;And determine using acquisition
Trip mode when being travelled on the section, the corresponding travel speed of trip mode of the acquisition;
The computing unit 51 is according to the programme path for obtaining, and the corresponding row of the trip mode information
Speed is sailed, the estimated time that the user reaches the original position of the appointment business is calculated, specifically included:
For each section included in the programme path, following operation is performed both by:According to going out for the section
The corresponding travel speed of line mode, and the section length, it is determined that using the trip mode by should
The time that section is used;According to the summation for being determined by the time that each section is used, institute is determined
State the estimated time that user reaches the original position of the appointment business.
Optionally, the subscriber information also includes age of user information and user gender information;The meter
Unit 51 is calculated according to the programme path for obtaining, and the corresponding travel speed of the trip mode information, meter
When calculating the estimated time of the original position that the user reaches the appointment business, specifically for:When it is described go out
Line mode information is walking or when riding, according to age of user information and user gender information, it is determined that described
The corresponding travel speed of user;And according to the programme path for obtaining traveling speed corresponding with the user for determining
Degree, determines that the user reaches the estimated time of the original position of the appointment business.
Further, described device also includes processing unit 53, is used for:The present position is obtained to arrive
Up to after the programme path between the original position of the appointment business, the programme path is sent to described
Client;And receive the customer position information that the client sends in real time;Sent when according to the client
Customer position information, when determining that the client deviates the programme path, invocation map instrument, again
Obtain the programme path of the corresponding position of the customer position information to the original position of the appointment business;And
Perform following steps:According to the programme path for obtaining, and the corresponding travel speed of the trip mode information,
Calculate the estimated time that the user reaches the original position of the appointment business.
Optionally, the subscription time determining unit 52, specifically for:Obtained before the estimated time
The first preset duration corresponding time point;And trip mode and the programme path according to user, really
The positional information of the user when time point for being scheduled on acquisition reaches;Receive the use that the client sends in real time
Family positional information;When the customer position information of the newest transmission of the client is with the user's for determining
When positional information matches, by the time of the customer position information for receiving the newest transmission of the client
At the second preset duration corresponding time point after point, it is defined as performing the subscription time of the appointment business;
Wherein, second preset duration is less than first preset duration.
Based on above-mentioned technical proposal, refering to shown in Fig. 6, the embodiment of the present invention provides one kind please by client
The device of appointment business, including acquiring unit 60, generation unit 61, and notification unit 62 are asked, wherein:
Acquiring unit 60, the subscriber information for obtaining user input;Wherein, the subscriber letter
Breath at least includes the initial position message for characterizing user's present position, is preengage for characterizing user
The reservation location information of the original position of business, and for characterizing user from the present position to institute
State the trip mode information of the original position of appointment business;
Generation unit 61, for according to the subscriber information, generation appointment business request to be sent to service
Device;
Notification unit 62, for notifying that the server, according to the trip mode information, calculates the user
The estimated time of the original position of the appointment business is reached by the present position;And according to described pre-
The time is estimated, it is determined that performing the subscription time of the appointment business.
In sum, the subscriber information that client sends is received;Wherein, the subscriber information is extremely
Include the original position of the present position of user, trip mode information, and appointment business less;According to
The trip mode information, the calculating user reaches the appointment business by the present position
Beginning position estimated time;According to the estimated time, subscription time is determined.Using technical solution of the present invention,
Trip mode information option is included in the interactive interface that client is provided, client can be according to the choosing of user
Select, by the trip mode information transfer to server, enable the server to combine trip mode information, it is determined that
Subscription time, compared to being in the prior art defined as into subscription time the time of user input, using the present invention
Embodiment is obtained in that more objective and accurate subscription time, when effectively reducing the wait of the service of acquisition
Between, improve the efficiency of the service of acquisition.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or meter
Calculation machine program product.Therefore, the present invention can be using complete hardware embodiment, complete software embodiment or knot
Close the form of the embodiment in terms of software and hardware.And, the present invention can be used and wherein wrapped at one or more
Containing computer usable program code computer-usable storage medium (including but not limited to magnetic disk storage,
CD-ROM, optical memory etc.) on implement computer program product form.
The present invention is produced with reference to method according to embodiments of the present invention, equipment (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can by computer program instructions realize flow chart and
/ or block diagram in each flow and/or the flow in square frame and flow chart and/or block diagram and/
Or the combination of square frame.These computer program instructions to all-purpose computer, special-purpose computer, insertion can be provided
The processor of formula processor or other programmable data processing devices is producing a machine so that by calculating
The instruction of the computing device of machine or other programmable data processing devices is produced for realizing in flow chart one
The device of the function of being specified in individual flow or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or the treatment of other programmable datas to set
In the standby computer-readable memory for working in a specific way so that storage is in the computer-readable memory
Instruction produce include the manufacture of command device, the command device realization in one flow of flow chart or multiple
The function of being specified in one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices, made
Obtain and series of operation steps is performed on computer or other programmable devices to produce computer implemented place
Reason, so as to the instruction performed on computer or other programmable devices is provided for realizing in flow chart one
The step of function of being specified in flow or multiple one square frame of flow and/or block diagram or multiple square frames.
, but those skilled in the art once know base although preferred embodiments of the present invention have been described
This creative concept, then can make other change and modification to these embodiments.So, appended right will
Ask and be intended to be construed to include preferred embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out various changes and modification without de- to the embodiment of the present invention
From the spirit and scope of the embodiment of the present invention.So, if these modifications of the embodiment of the present invention and modification category
Within the scope of the claims in the present invention and its equivalent technologies, then the present invention be also intended to comprising these change and
Including modification.