Summary of the invention
The object of the present invention is to provide a kind of method and devices of vehicle location, it is intended to which it is finer that solution carries out company side
The solution of the management of change makes the owner of cargo that can more fully trust transportation service.
On the one hand, the present invention provides a kind of method of vehicle location, the method includes the following steps:
The information of vehicles of driver's mobile terminal or car-mounted terminal is periodically received, and the information of vehicles is deposited
Storage is handled and is shown in network side;
Detection without sending the vehicle of the information of vehicles, and pass through cloud computing, big data frame to the vehicle
Information of vehicles is pre-processed, and is shown in the network side;
When receiving the information of vehicles of the vehicle, the pretreated information of vehicles is replaced;
It is compared, and is learnt with the pretreated information of vehicles according to the information of vehicles, be convenient for next round
Calculating.
Optionally, the information of vehicles of driver's mobile terminal or car-mounted terminal is periodically received, and to the information of vehicles
It stored, handled and is shown in network side, including:
Receive driver's title, driver's telephone number, the license plate number, vehicle position, the current shape of vehicle of each vehicle
Condition;After the information of vehicles is stored, handled, real-time position information is generated, and is positioning by third party's interface service
System provides figure layer and coordinate conversion etc. and supports;By real-time position information, in the display and presentation of different platform.
Optionally, including:Vehicle transport track is saved;Vehicle transport track is looked by designated time period
It askes;Vehicle track data is shown using third party's interface service.
Optionally, after detecting the vehicle without sending the information of vehicles, including:
When not receiving the information of vehicles of the vehicle for a long time, judge whether to pass through null zones;When sentencing
Break by null zones, not continue the pretreatment;When being judged as through null zones, sends and warn to server
It notifies breath, and notifies that the website nearest from the region is handled.
On the other hand, the present invention provides a kind of device of vehicle location, described device includes:
Storage unit is received, for periodically receiving the information of vehicles of driver's mobile terminal or car-mounted terminal, and to institute
Information of vehicles is stated to be stored, handled and shown in network side;
Vehicle unit is detected, for detecting the vehicle for not sending the information of vehicles, and passes through cloud computing, big data
Frame pre-processes the information of vehicles of the vehicle, and shows in the network side;
More new information element, it is described pretreated for replacing when receiving the information of vehicles of the vehicle
Information of vehicles;
Data unit is gone forward side by side for being compared according to the information of vehicles with the pretreated information of vehicles
Row study, convenient for the calculating of next round.
Optionally, the reception storage unit is also used to receive driver's title, the driver's telephone number, vehicle of each vehicle
Trade mark code, vehicle position, vehicle As-Is;After the information of vehicles is stored, handled, real time position letter is generated
Breath, and provide figure layer and coordinate conversion etc. by third party's interface service for positioning system and support;By real-time position information,
The display and presentation of different platform.
Optionally, the reception storage unit is also used to save vehicle transport track;Pass through designated time period pair
Vehicle transport track is inquired;Vehicle track data is shown using third party's interface service.
Optionally, the detection vehicle unit is also used to not receive the information of vehicles of the vehicle for a long time
When, judge whether to pass through null zones;When being judged as not by null zones, continue the pretreatment;Work as judgement
To send warning information to server, and notify that the website nearest from the region is handled by null zones.
The third aspect provides a kind of computer readable storage medium, which is characterized in that it, which is stored, is used for electronic data interchange
Computer program, wherein the computer program make computer execute first aspect provide the method.
Fourth aspect, provides a kind of computer program product, and the computer program product includes storing computer journey
The non-transient computer readable storage medium of sequence, the computer program are operable to that computer is made to execute first aspect offer
Method.
Implement the embodiment of the present invention, has the advantages that:Realize that independent vehicle location searches service system, this is
System, which can provide, in real time to be shown acknowledgement of consignment vehicle progress position, monitors, and carries out the functions such as return management to historical track;Pass through this
The implementation of system makes company management side, acknowledgement of consignment fleet side, owner of cargo side that can understand vehicle and cargo location in time, and may be used also
The information of vehicles for being in null zones vehicle to be pre-processed by the frame of cloud computing, big data;To make company
The management that can be more refined also makes the owner of cargo that can more fully trust transportation service.
Description and claims of this specification and term " first ", " second ", " third " and " in the attached drawing
Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it
Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be
System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list
Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments
Containing at least one embodiment of the present invention;Each position in the description occur the phrase might not each mean it is identical
Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion;Those skilled in the art explicitly and
Implicitly understand, embodiment described herein can be combined with other embodiments.
Since the position of vehicle and cargo can not be understood in time, thus the management that company side cannot be made more to be refined,
Also prevent owner of cargo side from constantly understanding cargo location;In order to solve above-mentioned phenomenon, it is therefore necessary to develop a kind of vehicle location
Method and device, so that the management that refine company can more, also makes the owner of cargo that can more fully trust transport clothes
Business.
The specific embodiment of the invention provides a kind of method of vehicle location, and this method is as shown in Figure 1, include following step
Suddenly:
In step s101, the information of vehicles of driver's mobile terminal or car-mounted terminal is periodically received, and vehicle is believed
Breath is stored, handled and is shown in network side.
In embodiments of the present invention;By driver's mobile terminal or car-mounted terminal, periodically automatically by wireless communication
Network or note system are sent, which can have itself wired, wireless telecom equipment, such as pass through 2G, 3G, 4G, LTE
Or NR network sends mail;Preferably, detection instruction is sent by 4G network, to improve transmitting efficiency;Server receives each
Driver's title of a vehicle, driver's telephone number, license plate number, vehicle position, vehicle As-Is;To information of vehicles into
After row storage, processing, real-time position information is generated, and provide figure layer and coordinate by third party's interface service for positioning system
Conversion etc. is supported;By real-time position information, in the display and presentation of different platform;Wherein information of vehicles includes some static numbers
According to, such as load-carrying, vehicle energy freight, cargo type of vehicle etc.;Also some dynamic datas, such as vehicle-state,
Cargo state data etc.;The content change of these data is less, but the enquiry frequency of data can quite frequently;In user query
When vehicle data, system carry out vehicle and goods matching, it will inquire the data;Vehicle seat, that is, all vehicles institute at various moments
Position.Vehicle can send once the location information of oneself for every 10 to 60 seconds to system, and at this moment system needs to set up each
General path of the vehicle in the operation of various time points.The data volume of this kind of data and its huge, but the real-time of data is wanted
Ask relatively high, this also have led to it is very huge to the data access amount of vehicle location in nearest 1 hour, and for 1 day even 1
The amount of access of data before week is just very low;It further include other sporadic datas, similar configuration item, regional number and province and district grade city, area
The storage of this non-structured data of data, can need to be stored in the way of data dictionary.
In order to improve the read or write speed of data, and support the scene of high concurrent, need exist for be using memory database
MemCache and Redis;MemCache is a freedom, opens source code, high-performance, distributed distributed memory target cache
System, itself does not have distributed function completely, so-called " distribution ", the realization for the client-side program that places one's entire reliance upon;
Redis is a kind of memory database product of Key-Value type, and complete entitled long-range dictionary services support storage character string, chain
Table, set, ordered set, the data of Hash table type are supported under simple transaction controlling, persistence control, distributed environment
Principal and subordinate's host between replicate etc.;In addition, redis-monitor can provide the load monitoring to Redis.
Data are more, are all stored in memory it is possible that the inadequate situation in space;Although memory database has plan
The data portion of preservation in memory is slightly moved on into main memory and carries out persistence, however, it is possible to do a few thing to optimize;Benefit
With caching hot spot data dispatching algorithm, hot spot data is classified, wherein determining that the not high data of amount of access can be from memory
It lifts down, is dumped in the database of general commercialization in database;Least recently used calculation can be used as operating system
Method (LRU);What the data in memory database were stored substantially according to the form of Key-Value, the life of good key value and cryptographic Hash
At can have higher promotion to system performance;For example the generation of key value character string is as small as possible etc.;It, can as lorry data
To generate " C:3666 " major key is as key value, wherein mark prefix of the C as lorry class;Because will appear " inquiry one in business
Determine all vehicle real-time position informations in range " this kind of demand unclear to region blur, and also amount of access is often bigger,
But the memory databases such as Redis are to the support of relational query and not perfect, it is therefore desirable to which opening relationships in systems helps
Inquiry;" region-lorry " one-to-many mapping table should be established in system, can not be looked into supplement with when memory database
Ask the deficiency of relation data.
Persistence periodically is carried out to data, i.e., by the storage such as non-thermal point data into general database, hot spot data is regular
It is synchronized with database;As lorry position etc., can arrange that database can be moved to according to the range data before present 1 day
In stored;And after cargo is transported to designated place, the queries of cargo can decline, at this moment can star cleaning,
Filter data policy;Cleaning pond can be set in memory, the mark of the cargo is just put into cleaning once cargo is successfully transported to
Chi Zhong is concentrated to some time point and is transferred in commercial data base to identifying corresponding cargo data in pond.
The system shows approach using HTML5 page format as information, and location information may be implemented in the aobvious of different platform
Show and present, can be used as that relatively independent subsystem is embedded into mobile phone terminal, PC management end is carried out using for precious whole industry of hauling goods
Business is provided which to support;System design considerations can provide steady and sustained location-based service in the environment of requesting compared with high concurrent, including
The collection of vehicle position information and the inquiry of location information, and infrastructural support is provided for next step big data analysis.
Vehicle transport track is saved, after driver opens the record carrier with GPS function carried, records carrier
It can check whether network service and positioning service open;If record carrier can be sent out automatically in the case where normal service is opened
It transmits data in server-side, server-side can will be in the transport track information preservation to database of the vehicle;Pass through specified time
Section inquires vehicle transport track;Vehicle track data is shown using third party's interface service;In track is shown, user
In third party's interface service, the dragging of vehicle transport track is carried out, the vehicle actual path from the overall situation can also be fast
Into, or the speed rapid examination vehicle transport track to double.
In step s 102, detection without send information of vehicles vehicle, and pass through cloud computing, big data frame to vehicle
Information of vehicles pre-processed, and network side show.
In embodiments of the present invention, logistics vehicles can usually reach the region of no network signal, cannot under this block region
Information of vehicles is sent in time to server, when not receiving the information of vehicles of vehicle for a long time, judges whether to pass through no signal
Region;When being judged as not by null zones, continues to pre-process, pre-process as using historical data and other vehicle rows
Method of the data by cloud computing is sailed, the track and position to logistics vehicles carry out budget, and virtual display effluent stream vehicle may
Track and present position;When being judged as through null zones, both vehicle had been for a long time all without network signal, for example,
Vehicle reaches no network signal region and does not have oil, vehicle damage etc., but not limited to this, cause logistics vehicles for a long time cannot
Null zones are outputed, send warning information to server, and notify that the website nearest from region is handled.
In step s 103, when receiving the information of vehicles of vehicle, pretreated information of vehicles is replaced.
In embodiments of the present invention, when vehicle driving is to the region for having signal, information of vehicles is uploaded to server automatically,
Actual vehicle information is replaced into pretreated information of vehicles, and storage data and display data are updated one by one.
In step S104, it is compared according to information of vehicles with pretreated information of vehicles, and learnt, under being convenient for
The calculating of one wheel.
In embodiments of the present invention, actual vehicle information and the information of vehicles pre-processed out are compared, and are learned
It practises, and the reason of analyze gap data, convenient for the calculating of next round, consequently facilitating server understands various do not sympathize in more detail
The error time that condition may cause, it is ensured that the gap of calculating each time and the difference of practical gap are smaller, improve the body of client
Test effect.
Technical solution through the invention realizes independent vehicle location and searches service system, which can provide in real time
Position is carried out to acknowledgement of consignment vehicle show, monitor, the return functions such as manage are carried out to historical track;By the implementation of this system,
Make company management side, acknowledgement of consignment fleet side, owner of cargo side that can understand vehicle and cargo location in time, and can also will be in no letter
The information of vehicles of number region vehicle is pre-processed by the frame of cloud computing, big data;It is more smart to make company that can carry out
The management of refinement also makes the owner of cargo that can more fully trust transportation service.
Referring to Fig.2, Fig. 2 provides a kind of device of vehicle location, device includes:
Storage unit 21 is received, for periodically receiving the information of vehicles of driver's mobile terminal or car-mounted terminal, and it is right
Information of vehicles is stored, handled and is shown in network side.
Optionally, storage unit 21 is received, is also used to receive driver's title, the driver's telephone number, license plate of each vehicle
Number, vehicle position, vehicle As-Is;After being stored, being handled to information of vehicles, real-time position information is generated, and
Figure layer and coordinate conversion etc. is provided by third party's interface service for positioning system to support;By real-time position information, in difference
The display and presentation of platform.
Optionally, storage unit 21 is received, is also used to save vehicle transport track;By designated time period to vehicle
Transport track inquired;Vehicle track data is shown using third party's interface service.
Vehicle unit 22 is detected, for detecting the vehicle for not sending information of vehicles, and passes through cloud computing, the frame of big data
Frame pre-processes the information of vehicles of vehicle, and shows in network side.
Optionally, vehicle unit 22 is detected, is also used to judge whether when not receiving the information of vehicles of vehicle for a long time
Pass through null zones;When being judged as not by null zones, continue to pre-process;Pass through dead space when being judged as
Domain sends warning information to server, and notifies that the website nearest from region is handled.
More new information element 23, for replacing pretreated information of vehicles when receiving the information of vehicles of vehicle.
Data unit 24 for being compared according to information of vehicles with pretreated information of vehicles, and is learnt,
Convenient for the calculating of next round.
In embodiments of the present invention, each unit of the device of the vehicle location of terminal can be by corresponding hardware or software unit
It realizes, each unit can be independent soft and hardware unit, also can integrate as a soft and hardware unit, herein not to limit
The present invention.
Fig. 3 shows the block diagram of the part-structure of terminal relevant to terminal provided in an embodiment of the present invention.With reference to figure
3, terminal includes:Radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, sensor 950, sound
Frequency circuit 960, Wireless Fidelity (Wireless Fidelity, WiFi) module 970, application processor AP980 and power supply
990 equal components.It, can be with it will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 3
Including perhaps combining certain components or different component layouts than illustrating more or fewer components.
It is specifically introduced below with reference to each component parts of the Fig. 3 to terminal:
Input unit 930 can be used for receiving the number or character information of input, and generate with the user setting of terminal with
And the related key signals input of function control.Specifically, input unit 930 may include touching display screen 933 and other inputs
Equipment 932.Input unit 930 can also include other input equipments 932.Specifically, other input equipments 932 may include but
One be not limited in physical button, function key (such as volume control button, switch key etc.), trace ball, mouse, operating stick etc.
Kind is a variety of.Wherein, the touching display screen 933, for detecting that user slides on the touching display screen 933
When operation, touch parameter collection is acquired, and notifies the fingerprint identification device 931 to carry out fingerprint collecting, and the touch-control is joined
Manifold is sent to the AP980;The fingerprint identification device 931 is sent for acquiring fingerprint image, and by the fingerprint image
To the AP980;The AP980, for being verified respectively to the touch parameter collection and the fingerprint image, Yi Ji
When the touch parameter collection and the fingerprint image are verified, more bio-identification operations are carried out.
AP980 is the control centre of terminal, using the various pieces of various interfaces and the entire terminal of connection, passes through fortune
Row executes the software program and/or module being stored in memory 920, and calls the data being stored in memory 920,
The various functions and processing data for executing terminal, to carry out integral monitoring to terminal.Optionally, AP980 may include one or
Multiple processing units;Optionally, AP980 can integrate application processor and modem processor, wherein application processor is main
Processing operation system, user interface and application program etc., modem processor mainly handle wireless communication.It is understood that
It is that above-mentioned modem processor can not also be integrated into AP980.
In addition, memory 920 may include high-speed random access memory, it can also include nonvolatile memory, example
Such as at least one disk memory, flush memory device or other volatile solid-state parts.
RF circuit 910 can be used for sending and receiving for information.In general, RF circuit 910 includes but is not limited to antenna, at least one
A amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..This
Outside, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Above-mentioned wireless communication can be used any logical
Beacon standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile
Communication, GSM), general packet radio service (General Packet Radio Service, GPRS), code it is point more
Location (Code Division Multiple Access, CDMA), wideband code division multiple access (Wideband Code Division
Multiple Access, WCDMA), long term evolution (Long Term Evolution, LTE), Email, short message service
(Short Messaging Service, SMS) etc..
Terminal may also include at least one sensor 950, such as optical sensor, motion sensor and other sensors.
Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to ambient light
Light and shade adjust the brightness of touching display screen, proximity sensor can when terminal is moved in one's ear, close touching display screen and/
Or backlight.As a kind of motion sensor, accelerometer sensor can detect (generally three axis) acceleration in all directions
Size can detect that size and the direction of gravity when static, can be used to identify terminal posture application (such as it is anxious accelerate, emergency brake
Vehicle, zig zag, sudden turn of events road, dependent game, magnetometer pose calibrating), Vibration identification correlation function (for example hit, tap) etc.;
The other sensors such as the gyroscope, barometer, hygrometer, thermometer, the infrared sensor that can also configure as terminal, herein not
It repeats again.
Voicefrequency circuit 960, loudspeaker 961, microphone 962 can provide the audio interface between user and terminal.Audio-frequency electric
Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960
Signal plays;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960
It is changed to audio data, then by after audio data broadcasting AP980 processing, such as another terminal is sent to through RF circuit 910, or
Person plays audio data to memory 920 to be further processed.
WiFi belongs to short range wireless transmission technology, and terminal can help user's transceiver electronics postal by WiFi module 970
Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 3 is shown
WiFi module 970, but it is understood that, and it is not belonging to must be configured into for terminal, it can according to need do not changing completely
Become in the range of the essence of invention and omits.
Terminal further includes the power supply 990 (such as battery) powered to all parts, and optionally, power supply can pass through power supply pipe
Reason system and AP980 are logically contiguous, to realize the function such as management charging, electric discharge and power managed by power-supply management system
Energy.
Although being not shown, terminal can also be including camera, bluetooth module, light compensating apparatus, light sensor etc., herein not
It repeats again.
In aforementioned embodiment shown in FIG. 1, the function of terminal can be based on the structure of the terminal in each step method process
It realizes.
As can be seen that through the embodiment of the present invention, terminal is distributed not by the recognition sequence to different bio-identifications
Same priority, and within the set time, the second application program as user starts is different from the type of the first application program,
It needs user to re-execute more bio-identification operations, avoids directly to different types of application program highest priority, influence
The problem of safety.
The embodiment of the present invention also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity
The computer program of subdata exchange, it is as any in recorded in above method embodiment which execute computer
A kind of some or all of the method for vehicle location step.
The embodiment of the present invention also provides a kind of computer program product, and the computer program product includes storing calculating
The non-transient computer readable storage medium of machine program, the computer program are operable to that computer is made to execute such as above-mentioned side
Some or all of the method for any vehicle location recorded in method embodiment step.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of
Combination of actions, but those skilled in the art should understand that, the present invention is not limited by the sequence of acts described because
According to the present invention, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know
It knows, embodiment described in this description belongs to alternative embodiment, and related actions and modules is not necessarily of the invention
It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment
Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way
It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of
Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can
To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual
Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit,
It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also be realized in the form of software program module.
If the integrated unit is realized in the form of software program module and sells or use as independent product
When, it can store in a computer-readable access to memory.Based on this understanding, technical solution of the present invention substantially or
Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products
Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment
(can be personal computer, server or network equipment etc.) executes all or part of each embodiment the method for the present invention
Step.And memory above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory
The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory
May include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English:
Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present invention has been described in detail above, specific case used herein to the principle of the present invention and
Embodiment is expounded, and the above description of the embodiment is only used to help understand the method for the present invention and its core ideas;
At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the present invention
There is change place, in conclusion the contents of this specification are not to be construed as limiting the invention.