Summary of the invention
The first purpose of the application is to provide a kind of method of trip characteristics analysis, can be improved the accurate of OD identification
Degree improves the effect of route line network optimization.
In order to solve the above technical problems, the embodiment of the present application is achieved in that
In a first aspect, providing a kind of method of trip characteristics analysis, comprising:
Determine the current location of user;
Determine the current motion state of the user;
The current motion state of the current location and the user is sent to server, the server is used to be based on institute
Current motion state is stated, determines trip location type belonging to the current location, the trip location type includes trip
One of departure place, the destination of trip and transit point of trip.
Second aspect provides a kind of method of trip characteristics analysis, comprising:
Determine the current location of user;
Determine the current motion state of the user;
Based on the current motion state, trip location type belonging to the current location, the trip position are determined
Type includes one of the departure place of trip, the destination of trip and transit point of trip.
The third aspect provides a kind of client, comprising:
First determination unit determines the current location of user;
Second determination unit determines the current motion state of the user;
Transmit-Receive Unit sends the current motion state of the current location and the user, the server to server
For being based on the current motion state, trip location type belonging to the current location, the trip location type are determined
One of the destination of departure place, trip including appearance and the transit point of appearance.
Fourth aspect provides a kind of server, comprising:
First determination unit determines the current location of user;
Second determination unit determines the current motion state of the user;
Third determination unit is based on the current motion state, determines appearance position type belonging to the current location,
The trip location type includes one of the departure place of trip, the destination of trip and transit point of trip.
5th aspect, provides a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction uses described when executed
Processor executes following operation:
Determine the current location of user;
Determine the current motion state of the user;
The current motion state of the current location and the user is sent to server, the server is used to be based on institute
Current motion state is stated, determines trip location type belonging to the current location, the trip location type includes trip
One of departure place, the destination of trip and transit point of trip.
6th aspect, provides a kind of electronic equipment, comprising:
Processor;And
It is arranged to the memory of storage computer executable instructions, the executable instruction uses described when executed
Processor executes following operation:
Determine the current location of user;
Determine the current motion state of the user;
Based on the current motion state, trip location type belonging to the current location, the trip position are determined
Type includes one of the departure place of trip, the destination of trip and transit point of trip.
7th aspect, provides a kind of computer-readable medium, the computer-readable medium storage one or more journey
Sequence, one or more of programs when by include multiple application programs electronic equipment execute when so that electronic equipment execute with
Lower operation:
Determine the current location of user;
Determine the current motion state of the user;
The current motion state of the current location and the user is sent to server, the server is used to be based on institute
Current motion state is stated, determines trip location type belonging to the current location, the trip location type includes trip
One of departure place, the destination of trip and transit point of trip.
Eighth aspect provides a kind of computer-readable medium, the computer-readable medium storage one or more journey
Sequence, one or more of programs when by include multiple application programs electronic equipment execute when so that electronic equipment execute with
Lower operation:
Determine the current location of user;
Determine the current motion state of the user;
Based on the current motion state, trip location type belonging to the current location, the trip position are determined
Type includes one of the departure place of trip, the destination of trip and transit point of trip.
By the technical solution of above the application as it can be seen that the method that the trip characteristics of the embodiment of the present application are analyzed, is used determining
After the current location at family and the current motion state of user, the current location and current motion state are sent to server, is made
Server current motion state can be combined on the basis of current location, determine current location be the position OD or by way of
Point can be improved OD identification in conjunction with current motion state compared to the scheme for relying only on position report live data progress OD identification
Accuracy, and then improve the effect of route line network optimization.
Specific embodiment
In order to make those skilled in the art better understand the technical solutions in the application, below in conjunction with the application reality
The attached drawing in example is applied, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described implementation
Example is merely a part but not all of the embodiments of the present application.Based on the embodiment in the application, this field is common
The application protection all should belong in technical staff's every other embodiment obtained without creative efforts
Range.
Fig. 1 shows the method for the trip characteristics analysis of the application one embodiment.The method of Fig. 1 can be held by client
Row.As illustrated in FIG. 1, method includes:
S102 determines the current location of user.
It is understood that the current location of the currently used mobile terminal of user can be determined as using in S102
The current location at family.
The current location of mobile terminal can be determined as follows:
Mode one
The position of the base station of communication connection will be currently established with mobile terminal as the current location of mobile terminal.In movement
In communication network, a base station has multiple cells, and each cell has the cell ID ID of the unique identification cell, moves
Dynamic terminal can determine the current location of mobile terminal according to the cell ID of the cell at place.
Mode two
It is determined according to the signal passing time (Time Advance, TA) between mobile terminal and base station.Mobile terminal with
TA between base station can be measured, and can calculate the distance between mobile terminal and base station according to TA, by measurement with
The distance of 3 adjacent base stations of mobile terminal, the coordinate according to base station, it can calculate the current location of mobile terminal.
Mode three
It is determined based on global positioning system (Global Positioning System, GPS) positioning method.
S104 determines the current motion state of the user.
In S104, in the current motion state for determining user, working as mobile terminal used by a user can be determined
Preceding motion state;The current motion state of mobile terminal is determined as to the current motion state of user.Here motion state packet
It includes but is not limited to: is static, walk, run, driving, riding a bicycle, taking bus.
Optionally, in some embodiments, the current motion state for determining mobile terminal used by a user includes: to obtain
The facility information of mobile terminal;In the case where determining that mobile terminal is target class mobile terminal according to facility information, obtains and move
The movement state information stored in dynamic terminal, the movement state information are used to characterize the current motion state of mobile terminal;Root
According to movement state information, the current motion state of mobile terminal is determined.
It is understood that above-mentioned target class mobile terminal, which actually refers to mobile terminal, has been locally stored movement shape
The mobile terminal of state information, this kind of mobile terminal provide application programming interfaces (Application Programming
Interface, API) interface, client is by calling api interface that can get movement state information.Above-mentioned equipment letter
Breath for example may include device model and/or device systems.Device model is, for example, iphone5 and the above type, equipment system
System for example can be ios7 and system above version.
Further, it in the case where determining mobile terminal not according to facility information is target class mobile terminal, obtains and moves
The exercise data of dynamic terminal;According to exercise data, the current motion state of mobile terminal is determined.Here the fortune of mobile terminal is obtained
Dynamic data are actually the sensing data for obtaining mobile terminal system layer, such as obtain the acceleration gyroscope in mobile terminal
Data.
It should be noted that if mobile terminal is target class mobile terminal, but when acquisition movement state information, movement is eventually
The confidence level of return movement state is low confidence level while holding return movement status information, then can further obtain mobile whole
The exercise data at end determines the current motion state of mobile terminal later according to exercise data.
In some embodiments, it according to exercise data, determines the current motion state of mobile terminal, can be according to movement
Corresponding relationship between data, exercise data and motion state determines current motion state.It is to add with the exercise data got
The data instance of rate gyro is handled data after the data for getting acceleration gyroscope, is obtained mobile whole
The current kinetic speed at end.It is then based on the current motion state that current kinetic speed determines mobile terminal.
For example, can determine current fortune according to the corresponding relationship between current kinetic speed, movement velocity and motion state
Dynamic state.Corresponding relationship between movement velocity and motion state can be corresponding relationship shown in table 1.
Table 1
Motion state |
Movement velocity (km/h) |
It is static |
<2 |
Walking |
4 |
Running |
6 |
Cycling |
15 |
It takes bus |
20 |
It drives |
40 |
Alternatively, determining the current motion state of mobile terminal, comprising: according to exercise data and movement according to exercise data
State-detection model determines that the current motion state of mobile terminal, motion state detection model are based on historical movement data and go through
History motion state is trained and obtains.Here motion state detection model for example can be motion state classifier.
S106, the current motion state of the current location and the user is sent to server, and the server is used for
Based on the current motion state, determine that trip location type belonging to the current location, the trip location type include
One of the departure place of appearance, the destination of trip and transit point of trip.
For example, if the current motion state of user is to walk, run, ride a bicycle, take bus and drive
One of, then server judges current location for the transit point of trip.If the current motion state of user be it is static, take
Business device judge current location for go on a journey departure place or trip destination, server can according to user in this prior position it
The motion state of other positions afterwards determines that the current location is the departure place of trip or the destination of trip.
Fig. 2 shows the methods analyzed according to the trip characteristics of another embodiment of the application.It should be noted that from service
Interaction between the server and client side of device side description is identical as the description in Fig. 1 from client-side, to avoid repeating, herein
It repeats no more.
Method illustrated in fig. 2 can be executed by server.As illustrated in FIG. 2, method includes:
S202 determines the current location of user.
In S202, determine that the current location of user specifically can be the current location for receiving the user that client is sent.
S204 determines the current motion state of the user.
Optionally, in some embodiments, the current motion state for the user that client is sent, the user are received
Current motion state be the mobile terminal used by a user current motion state.
As an example, the current motion state of the mobile terminal is by the client according to the mobile terminal
Facility information determine that the mobile terminal is target class mobile terminal in the case where, according to the fortune stored in the mobile terminal
Dynamic status information determines that the movement state information is used to characterize the current motion state of the mobile terminal;Or,
The current motion state of the mobile terminal is determining the movement according to the facility information by the client
In the case that terminal is not target class mobile terminal, determined according to the exercise data of the mobile terminal.
S206 is based on the current motion state, determines trip location type belonging to the current location, the appearance
Location type includes one of the departure place occurred, the destination of trip and transit point of appearance.
Fig. 3 is the schematic flow chart according to the method for the appearance signature analysis of the specific embodiment of the application.Fig. 3
In by mobile terminal be mobile phone for.As illustrated in FIG. 3, method includes:
S302, client obtain facility information.
S304, client judge whether equipment is iphne5 and the above type, and are iso7 and system above version.
S306 determines mobile phone according to movement state information if so, client obtains the movement state information in mobile phone
Motion state.
For example, the movement state information of mobile phone can be directly acquired from the CMMotionActivity in mobile phone.
S308, if it is not, then client obtains the data of acceleration gyroscope.
S310, client identify the motion state of mobile phone according to the data and machine learning algorithm of acceleration gyroscope.
S312, user end to server send the current location of mobile phone.
Judge in the motion state of current position mobile phone as nonstatic state.
S314, user end to server send the motion state of mobile phone.
S316, server judge whether the motion state of current position mobile phone is nonstatic state.
S318, if so, determining that current location is the transit point of user's trip.
S320, if not, it is determined that current location is the departure place or destination of user's trip.
Below in conjunction with Fig. 4 detailed description according to the electronic equipment of the application one embodiment.With reference to Fig. 4, in hardware layer
Face, electronic equipment include processor, optionally, including internal bus, network interface, memory.Wherein, memory may include
Memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile deposit
Reservoir (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that it
Hardware required for his business.
Processor, network interface and memory can be connected with each other by internal bus, which can be industry
Standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect standard
(Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended
Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus,
Control bus etc..Only to be indicated with a four-headed arrow in Fig. 4, it is not intended that an only bus or one kind convenient for indicating
The bus of type.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer
Client is formed on face.Processor executes the program that memory is stored, and is specifically used for executing following operation:
Determine the current location of user;
Determine the current motion state of the user;
The current motion state of the current location and the user is sent to server, the server is used to be based on institute
Current motion state is stated, determines trip location type belonging to the current location, the trip location type includes trip
One of departure place, the destination of trip and transit point of trip.
It can be applied in processor disclosed in the above-mentioned embodiment illustrated in fig. 1 such as the application by the method for client executing,
Or it is realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.In the process of realization
In, each step of the above method can be complete by the integrated logic circuit of the hardware in processor or the instruction of software form
At.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU),
Network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processor, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are divided
Vertical door or transistor logic, discrete hardware components.It may be implemented or execute and is in the embodiment of the present application disclosed each
Method, step and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional place
Manage device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute
At, or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory,
This fields such as flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register maturation
In storage medium.The storage medium is located at memory, and processor reads the information in memory, completes above-mentioned side in conjunction with its hardware
The step of method.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of the application, for example patrol
Collect device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each patrol
Unit is collected, hardware or logical device are also possible to.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, which holds when by the electronic equipment including multiple application programs
When row, the method that the electronic equipment can be made to execute embodiment illustrated in fig. 1, and be specifically used for executing following methods:
Determine the current location of user;
Determine the current motion state of the user;
The current motion state of the current location and the user is sent to server, the server is used to be based on institute
Current motion state is stated, determines trip location type belonging to the current location, the trip location type includes trip
One of departure place, the destination of trip and transit point of trip.
Below in conjunction with Fig. 5 detailed description according to the electronic equipment of the application one embodiment.With reference to Fig. 5, in hardware layer
Face, electronic equipment include processor, optionally, including internal bus, network interface, memory.Wherein, memory may include
Memory, such as high-speed random access memory (Random-Access Memory, RAM), it is also possible to further include non-volatile deposit
Reservoir (non-volatile memory), for example, at least 1 magnetic disk storage etc..Certainly, which is also possible that it
Hardware required for his business.
Processor, network interface and memory can be connected with each other by internal bus, which can be industry
Standard architecture (Industry Standard Architecture, ISA) bus, Peripheral Component Interconnect standard
(Peripheral Component Interconnect, PCI) bus or expanding the industrial standard structure (Extended
Industry Standard Architecture, EISA) bus etc..The bus can be divided into address bus, data/address bus,
Control bus etc..Only to be indicated with a four-headed arrow in Fig. 5, it is not intended that an only bus or one kind convenient for indicating
The bus of type.
Memory, for storing program.Specifically, program may include program code, and said program code includes calculating
Machine operational order.Memory may include memory and nonvolatile memory, and provide instruction and data to processor.
Processor is from the then operation into memory of corresponding computer program is read in nonvolatile memory, in logical layer
Server is formed on face.Processor executes the program that memory is stored, and is specifically used for executing following operation:
Determine the current location of user;
Determine the current motion state of the user;
Based on the current motion state, trip location type belonging to the current location, the trip position are determined
Type includes one of the departure place of trip, the destination of trip and transit point of trip.
The method executed by server disclosed in the above-mentioned embodiment illustrated in fig. 2 such as the application can be applied in processor,
Or it is realized by processor.Processor may be a kind of IC chip, the processing capacity with signal.In the process of realization
In, each step of the above method can be complete by the integrated logic circuit of the hardware in processor or the instruction of software form
At.Above-mentioned processor can be general processor, including central processing unit (Central Processing Unit, CPU),
Network processing unit (Network Processor, NP) etc.;It can also be digital signal processor (Digital Signal
Processor, DSP), it is specific integrated circuit (Application Specific Integrated Circuit, ASIC), existing
Field programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device are divided
Vertical door or transistor logic, discrete hardware components.It may be implemented or execute and is in the embodiment of the present application disclosed each
Method, step and logic diagram.General processor can be microprocessor or the processor is also possible to any conventional place
Manage device etc..The step of method in conjunction with disclosed in the embodiment of the present application, can be embodied directly in hardware decoding processor and execute
At, or in decoding processor hardware and software module combination execute completion.Software module can be located at random access memory,
This fields such as flash memory, read-only memory, programmable read only memory or electrically erasable programmable memory, register maturation
In storage medium.The storage medium is located at memory, and processor reads the information in memory, completes above-mentioned side in conjunction with its hardware
The step of method.
Certainly, other than software realization mode, other implementations are not precluded in the electronic equipment of the application, for example patrol
Collect device or the mode of software and hardware combining etc., that is to say, that the executing subject of following process flow is not limited to each patrol
Unit is collected, hardware or logical device are also possible to.
The embodiment of the present application also proposed a kind of computer readable storage medium, the computer-readable recording medium storage one
A or multiple programs, the one or more program include instruction, which holds when by the electronic equipment including multiple application programs
When row, the method that the electronic equipment can be made to execute embodiment illustrated in fig. 2, and be specifically used for executing following methods:
Determine the current location of user;
Determine the current motion state of the user;
Based on the current motion state, trip location type belonging to the current location, the trip position are determined
Type includes one of the departure place of trip, the destination of trip and transit point of trip.
Fig. 6 is the structural schematic diagram of the client of one embodiment of the application.Referring to FIG. 6, in a kind of software implementation
In mode, client 600 can include: the first determination unit 61, the second determination unit 62 and Transmit-Receive Unit 63, wherein
First determination unit 61, determines the current location of user;
Second determination unit 62, determines the current motion state of the user;
Transmit-Receive Unit 63 sends the current motion state of the current location and the user, the service to server
Device is used to be based on the current motion state, determines trip location type belonging to the current location, the trip position class
Type includes one of the departure place occurred, the destination of trip and transit point of appearance.
The client of the embodiment of the present application, after the current motion state of the current location and user of determining user,
The current location and current motion state are sent to server, enables the server to combine on the basis of current location current
Movement determines that current location is the position OD or transit point, can be improved the accuracy of OD identification, and then improve route gauze
The effect of optimization.
Optionally, as one embodiment, the second determination unit 62:
Determine the current motion state of the mobile terminal used by a user;
The current motion state of the mobile terminal is determined as to the current motion state of the user.
Optionally, as one embodiment, the second determination unit 62:
Obtain the facility information of the mobile terminal;
In the case where determining that the mobile terminal is target class mobile terminal according to the facility information, the shifting is obtained
The movement state information stored in dynamic terminal, the movement state information are used to characterize the current kinetic shape of the mobile terminal
State;
According to the movement state information, the current motion state of the mobile terminal is determined.
Optionally, as one embodiment, the second determination unit 62:
In the case where determining the mobile terminal not according to the facility information is target class mobile terminal, described in acquisition
The exercise data of mobile terminal;
According to the exercise data, the current motion state of the mobile terminal is determined.
Optionally, as one embodiment, the second determination unit 62:
According to the exercise data and motion state detection model, the current motion state of the mobile terminal, institute are determined
Motion state detection model is stated to be based on historical movement data and the training of historical movement state and obtain.
The method that the client of the embodiment of the present application can also carry out client executing of the Fig. 1 into Fig. 3, and realize client
In the function of Fig. 1 to embodiment illustrated in fig. 3, details are not described herein.
Fig. 7 is the structural schematic diagram of the server of one embodiment of the application.Referring to FIG. 7, in a kind of software implementation
In mode, server 700 can include: the first determination unit 71, the second determination unit 72 and third determination unit 73, wherein
First determination unit 71, determines the current location of user;
Second determination unit 72, determines the current motion state of the user;
Third determination unit 73 is based on the current motion state, determines appearance position class belonging to the current location
Type, the trip location type include one of the departure place of trip, the destination of trip and transit point of trip.
The server of the embodiment of the present application, after the current motion state of the current location and user of determining user,
Based on the current location and current motion state, determine that current location is the position OD or transit point, it can be in current location
On the basis of combine current kinetic carry out OD identification, improve OD identification accuracy, and then improve route line network optimization effect.
Optionally, as one embodiment, the second determination unit 72:
The current motion state for the user that client is sent is received, the current motion state of the user is the use
The current motion state of mobile terminal used in family.
Optionally, as one embodiment, the current motion state of the mobile terminal is by the client according to institute
State mobile terminal facility information determine that the mobile terminal is target class mobile terminal in the case where, according to the mobile terminal
The movement state information of middle storage determines that the movement state information is used to characterize the current motion state of the mobile terminal;
Or,
The current motion state of the mobile terminal is determining the movement according to the facility information by the client
In the case that terminal is not target class mobile terminal, determined according to the exercise data of the mobile terminal.
The server of the embodiment of the present application can also carry out the method that server of the Fig. 1 into Fig. 3 executes, and realize server
In the function of Fig. 1 to embodiment illustrated in fig. 3, details are not described herein.
In short, being not intended to limit the protection scope of the application the foregoing is merely the preferred embodiment of the application.
Within the spirit and principles of this application, any modification, equivalent replacement, improvement and so on should be included in the application's
Within protection scope.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used
Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment
The combination of equipment.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability
It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap
Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want
There is also other identical elements in the process, method of element, commodity or equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality
For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method
Part explanation.