CN106873014A - A kind of method of transportation and communication quantity in express statistic region - Google Patents

A kind of method of transportation and communication quantity in express statistic region Download PDF

Info

Publication number
CN106873014A
CN106873014A CN201710054281.2A CN201710054281A CN106873014A CN 106873014 A CN106873014 A CN 106873014A CN 201710054281 A CN201710054281 A CN 201710054281A CN 106873014 A CN106873014 A CN 106873014A
Authority
CN
China
Prior art keywords
region
grid
data
statistics
vehicle
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710054281.2A
Other languages
Chinese (zh)
Other versions
CN106873014B (en
Inventor
张永才
程磊
陈智宏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Thoroughfare Permanent Technology Co Ltd
Original Assignee
Beijing Thoroughfare Permanent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Thoroughfare Permanent Technology Co Ltd filed Critical Beijing Thoroughfare Permanent Technology Co Ltd
Priority to CN201710054281.2A priority Critical patent/CN106873014B/en
Publication of CN106873014A publication Critical patent/CN106873014A/en
Application granted granted Critical
Publication of CN106873014B publication Critical patent/CN106873014B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S19/00Satellite radio beacon positioning systems; Determining position, velocity or attitude using signals transmitted by such systems
    • G01S19/38Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system
    • G01S19/39Determining a navigation solution using signals transmitted by a satellite radio beacon positioning system the satellite radio beacon positioning system transmitting time-stamped messages, e.g. GPS [Global Positioning System], GLONASS [Global Orbiting Navigation Satellite System] or GALILEO
    • G01S19/42Determining position
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The method of transportation and communication quantity, belongs to vehicle satellite field of locating technology in a kind of express statistic region.Realize that the method inclusion region grid index file, satellite location data receive service module, the part of haulage vehicle range statistics service module three.First, the region for needing statistics is pre-processed, formation zone grid index file.Then, satellite location data receives storage services module and receives the haulage vehicle location data for sending in real time by Socke, and is sent to haulage vehicle range statistics service module.Next, haulage vehicle range statistics service module reading area grid index file, will receive the gps data received in service from satellite location data, match from region.After the method for the present invention, although have certain loss in statistical accuracy, but calculate haulage vehicle GPS point and which region belonged to only need to several cpu clock cycles and can just complete, calculating speed is substantially improved.

Description

A kind of method of transportation and communication quantity in express statistic region
Technical field
GPS (Global Position System) numbers are passed back according to road transport vehicle in real time the present invention relates to one kind According to the method for haulage vehicle quantity in express statistic region belongs to vehicle satellite field of locating technology.
Background technology
Vehicle satellite location technology be haulage vehicle by receiving GPS satellite-signal, position itself position Put, and the technology for being passed back positional information by mobile network.According to satellite location data, each region of real-time statistics in systems (such as administrative region, key area, hot spot region) interior quantity, in taxi management system, bus management system, harmful influence Had a wide range of applications in vehicle management system.Administrative region, key area, hot spot region are in GIS (Geographic Information System) in generally irregular polygon.In each application system, traditional mode is to get fortune After defeated vehicle GPS data, the category provided in a kind of a kind of PostGIS (open GIS platform) or ArcGIS (GIS platform) is called In regional determination function such as, judge GPS point whether in space polygon region.Judge that single GPS point is using this kind of mode It is no to be taken seldom in polygonal region, but when the quantity of haulage vehicle increases, and passes the increase of gps data frequency back, such as There are 6.67 ten thousand taxis Beijing, and each car returns a secondary data for average every 20 seconds, and gps data peak value is 1500/second, is sentenced The time whether which region a large amount of GPS points that break belong to is more and more long, and haulage vehicle quantity needs in each region of real-time statistics Time it is more and more long, cannot finally use.
In order to solve the above problems, taxi dynamic monitoring management platform is pre-processed to region, generates region Spatial index file.After haulage vehicle gps data is received, vehicle location mirror image is set up in internal memory, and according to gps data Matched with the spatial index being loaded into internal memory, vehicle fleet size in timing statistical regions.
The content of the invention
For the above-mentioned problems in the prior art, the present invention provides a kind of by setting up regional space index, significantly The method for shortening transportation and communication quantity in statistical regions.
To achieve the above object, the present invention uses following technical scheme.
A kind of method of transportation and communication quantity in express statistic region, realizes the method inclusion region grid index text Part, satellite location data receive service module, the part of haulage vehicle range statistics service module three.First, to needing statistics Region is pre-processed, formation zone grid index file.Then, satellite location data receives storage services module and passes through Socket (socket) receives the haulage vehicle location data for sending in real time, and is sent to haulage vehicle range statistics service mould Block.Next, haulage vehicle range statistics service module reading area grid index file, will receive clothes from satellite location data The gps data received in business, matches from region.Haulage vehicle affiliated area mirror image is set up in internal memory, regularly in region Data are counted, and are equipped with the inquiry request interface for providing external system to region haulage vehicle.
A kind of transportation and communication method in express statistic region, the method is comprised the following steps:
Step 1:Set up region grid index file.
Region grid index file stores the relation between the region of statistics and grid.Region grid index file is by city City's region zones are equidistant grid, and whether the midpoint of computation grid belongs to the region of statistics, record grid and the area for counting Relation between domain.Then by the relation between file record grid and region.The length of side of grid is according to city district area Determine with the precision for needing to reach, be set as 100 meters.The starting point of grid is set as the upper left angle point of city district, according to 100 meters Step-length, whole city district is divided into m and is multiplied by n grid, city district is rectangle, and the city district to the rectangle is carried out Divide, m is the length direction grid quantity of rectangle, n is the width grid quantity of rectangle.Multiply as Beijing is divided into 1800 With 1800 small grid, the step-length of grid is 100 meters.Call the withIn of postgis or arcgis in midpoint according to grid Function, judges whether grid midpoint belongs to the region of statistics, and the region for belonging to statistics then records the pass of grid and the region of statistics System.Grid and the relation in the region of statistics are built into region raster file storage.
Step 2:Realize gps data affiliated area discriminant function.
Whether GPS point data are judged in certain region, are first quickly to judge that gps data belongs to m and is multiplied by n grid Grid positions, then the determined property GPS point according to grid belong to that regional location of city district.By gps data Longitude subtracts city district upper left corner longitude, and city district upper left corner latitude subtracts the latitude of gps data, is respectively divided by step-length, After the data for obtaining are rounded, the coordinate of as affiliated grid.The area attribute data of taking-up respective coordinates, as gps data Area attribute.
Step 3:Realize that satellite location data receives storage service.
Satellite location data receive service start when, first-selection read vehicle, set up in internal memory license plate number, car number, The HashMap (realization of the Map interfaces based on Hash table) of vehicle satellite position and state.The key assignments of HashMap uses car plate Number.After receiving storage service startup, the satellite location data that haulage vehicle sends, real-time calling GPS numbers are received by Socket According to affiliated area discriminant function, the area attribute of the vehicle in modification HashMap.
Step 4:Realize range statistics service.
Need timing that HashMap vehicle datas are traveled through from internal memory according to statistics, count the vehicle fleet size that each region possesses. And realize externally providing REST inquiry request interfaces, sending zone quantity statistics data.
Compared with prior art, the present invention has following obvious advantage:
The mode of haulage vehicle quantity is to directly invoke sentencing for the GIS platforms such as postgis offer in existing statistical regions Disconnected GPS point whether the function in region, or system itself realize judge GPS point whether in polygonal region method.This Kind of method takes more, and when substantial amounts of gps data is processed, performance can not meet requirement of real-time.Actual measurement is proved, in treatment north During the gps data of 6.67 ten thousand, capital city taxi, system causes unavailable because mass data is calculated.Using the present invention Method after, although have certain loss in statistical accuracy, but calculate haulage vehicle GPS point belong to which region only need to it is several The individual cpu clock cycle can just complete, and calculating speed is substantially improved.By actual measurement, system statistics time under above-mentioned equal conditions Less than 1 second.
Brief description of the drawings
Fig. 1 region index Documents Logical schematic diagrames;
Fig. 2 region index file stores schematic diagram;
Fig. 3 range statistics effect data figures;
Specific embodiment
The present invention will be further described with reference to the accompanying drawings and detailed description.
Specific embodiment is by taking the administrative region statistics in Beijing's taxi dynamic operation monitoring with analysis platform as an example.
Beijing's taxi dynamic monitoring system is the management specially built for the management taxi of Beijing 6.67 ten thousand System.Main function is to show the real-time geographical locations of whole city's taxi, analyze bus dispatching rate by region or taxi company, look into Look for the single taxi of positioning, check that single taxi historical track, historical track are searched for generally.The system is by application service Device, GIS server, database server group into.Wherein database server is tide Godson 3B servers, 2 1.2GHz CPU, internal memory 32G, 1T storage.GIS server is tide Godson 3B servers, 2 CPU, 32G internal memories.Application server is wave Damp Godson 3B servers, 2 CPU, 32G internal memories, gps data processing forward server is tide FT server, 1 32 core 800MHzCPU, 8G internal memory.The key data of monitoring system is hired out, from the whole city 6.67 ten thousand that industry data center sends GPS data from taxi.Taxi GPS is sent by the mobile device on taxi, is sent 3-4 times within general one minute.System The gps data 1500 or so that system is received from industry data center is per second.
Method of the present invention is comprised the following steps:
Step 1 sets up region grid index file.
Step 1.1 sets administrative region of a city top left co-ordinate point, sets grid step-length.
Step 1.2 sets grid length and width so that grid covers whole administrative region of a city.
Step 1.3 calculates the midpoint of each grid successively, and record grid midpoint affiliated area, affiliated area uses one Character is represented.
Step 1.4 from left to right from top to bottom, the affiliated area of grid is represented during character writes file successively.
Step 2:Realize that gps data affiliated area judges service.
Step 2.1 reads grid index file, and raster data is saved in two bit arrays.
Step 2.2 receives the request of gps data region decision, parses gps data.
Longitude in gps data is subtracted upper left corner longitude by step 2.3, and upper left corner latitude subtracts GPS latitudes, is respectively divided by step It is long, obtain grid positions m, n.
Step 2.4 obtains the data of two-dimensional array m, n positions.
Step 2.5 returns to GPS affiliated area data.
Step 3:Realize that satellite location data receives storage service.
After step 3.1 service starts, the HashMap of vehicle is set up, using vehicle license plate as key.
Step 3.2 obtains vehicle data from SOCKET (socket), whether there is the vehicle in inspection HashMap, such as Fruit does not exist then puts into HashMap.
Step 3.3 calls gps data affiliated area to judge service, obtains the GPS point affiliated area.
Step 3.4 is updated in HashMap, vehicle affiliated area information.
Step 4:Realize range statistics service.
Step 4.1 receiving front-end browser obtains range statistics service request.
Step 4.2 travels through HashMap, according to range statistics quantity.
Step 4.3 builds the json data of range statistics quantity.
Step 4.4 return area statistical magnitude.
The design sketch of transportation and communication quantity is as shown in Figure 3 in express statistic region.Browser timing sends region system Meter request, after receiving the region quantity of background service return, is shown in system.

Claims (5)

1. in a kind of express statistic region transportation and communication quantity method, it is characterised in that:Realize the method inclusion region Grid index file, satellite location data receive service module, the part of haulage vehicle range statistics service module three;First, it is right The region of statistics is needed to be pre-processed, formation zone grid index file;Then, satellite location data receives storage service mould Block receives the haulage vehicle location data for sending in real time by Socket, and is sent to haulage vehicle range statistics service module; Next, haulage vehicle range statistics service module reading area grid index file, will receive service from satellite location data In the gps data that receives, matching is from region;Haulage vehicle affiliated area mirror image is set up in internal memory, regularly to number in region According to being counted, and it is equipped with the inquiry request interface for providing external system to region haulage vehicle;
The method is comprised the following steps:
Step 1:Set up region grid index file;
Region grid index file stores the relation between the region of statistics and grid;Region grid index file by city ground Domain is divided into equidistant grid, and whether the midpoint of computation grid belongs to the region of statistics, the region of record grid and statistics it Between relation;Then by the relation between file record grid and region;The length of side of grid is according to city district area and need The precision to be reached determination, is set as 100 meters;The starting point of grid is set as the upper left angle point of city district, according to 100 meters of step It is long, whole city district is divided into m and is multiplied by n grid, city district is rectangle, and the city district to the rectangle is drawn Point, m is the length direction grid quantity of rectangle, and n is the width grid quantity of rectangle;Call at midpoint according to grid The withIn functions of postgis or arcgis, judge whether grid midpoint belongs to the region of statistics, belong to the region of statistics then The relation in the region of record grid and statistics;Grid and the relation in the region of statistics are built into region raster file storage;
Step 2:Realize gps data affiliated area discriminant function;
Whether GPS point data are judged in certain region, are first quickly to judge the grid that gps data belongs to during m is multiplied by n grid Case is put, and then the determined property GPS point according to grid belongs to that regional location of city district;By the longitude of gps data City district upper left corner longitude is subtracted, city district upper left corner latitude subtracts the latitude of gps data, is respectively divided by step-length, obtains Data round after, the coordinate of as affiliated grid;Take out the area attribute data of respective coordinates, the as region of gps data Attribute;
Step 3:Realize that satellite location data receives storage service;
When satellite location data receives service startup, first-selection reads vehicle, and license plate number, car number, vehicle are set up in internal memory The HashMap (realization of the Map interfaces based on Hash table) of satellite position and state;The key assignments of HashMap uses license plate number;Connect Receive after storage service starts, the satellite location data that haulage vehicle sends is received by Socket, belonging to real-time calling gps data Region decision function, the area attribute of the vehicle in modification HashMap;
Step 4:Realize range statistics service;
Need timing that HashMap vehicle datas are traveled through from internal memory according to statistics, count the vehicle fleet size that each region possesses;And it is real REST inquiry request interfaces, sending zone quantity statistics data are now externally provided.
2. in a kind of express statistic region according to claim 1 transportation and communication quantity method, it is characterised in that:
Step 1 sets up region grid index file;
Step 1.1 sets administrative region of a city top left co-ordinate point, sets grid step-length;
Step 1.2 sets grid length and width so that grid covers whole administrative region of a city;
Step 1.3 calculates the midpoint of each grid successively, and record grid midpoint affiliated area, affiliated area uses a character Represent;
Step 1.4 from left to right from top to bottom, the affiliated area of grid is represented during character writes file successively.
3. in a kind of express statistic region according to claim 1 transportation and communication quantity method, it is characterised in that:
Step 2:Realize that gps data affiliated area judges service;
Step 2.1 reads grid index file, and raster data is saved in two bit arrays;
Step 2.2 receives the request of gps data region decision, parses gps data;
Longitude in gps data is subtracted upper left corner longitude by step 2.3, and upper left corner latitude subtracts GPS latitudes, is respectively divided by step-length, Obtain grid positions m, n;
Step 2.4 obtains the data of two-dimensional array m, n positions;
Step 2.5 returns to GPS affiliated area data.
4. in a kind of express statistic region according to claim 1 transportation and communication quantity method, it is characterised in that:
Step 3:Realize that satellite location data receives storage service;
After step 3.1 service starts, the HashMap of vehicle is set up, using vehicle license plate as key;
Step 3.2 obtains vehicle data from SOCKET (socket), whether there is the vehicle in inspection HashMap, if not In the presence of then putting into HashMap;
Step 3.3 calls gps data affiliated area to judge service, obtains the GPS point affiliated area;
Step 3.4 is updated in HashMap, vehicle affiliated area information.
5. in a kind of express statistic region according to claim 1 transportation and communication quantity method, it is characterised in that:
Step 4:Realize range statistics service;
Step 4.1 receiving front-end browser obtains range statistics service request;
Step 4.2 travels through HashMap, according to range statistics quantity;
Step 4.3 builds the json data of range statistics quantity;
Step 4.4 return area statistical magnitude.
CN201710054281.2A 2017-01-22 2017-01-22 A kind of method of transportation and communication quantity in express statistic region Active CN106873014B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710054281.2A CN106873014B (en) 2017-01-22 2017-01-22 A kind of method of transportation and communication quantity in express statistic region

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710054281.2A CN106873014B (en) 2017-01-22 2017-01-22 A kind of method of transportation and communication quantity in express statistic region

Publications (2)

Publication Number Publication Date
CN106873014A true CN106873014A (en) 2017-06-20
CN106873014B CN106873014B (en) 2019-05-28

Family

ID=59159204

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710054281.2A Active CN106873014B (en) 2017-01-22 2017-01-22 A kind of method of transportation and communication quantity in express statistic region

Country Status (1)

Country Link
CN (1) CN106873014B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110009411A (en) * 2019-03-29 2019-07-12 广东邮电职业技术学院 Ads on Vehicles control method, device, equipment and system based on area attribute
CN112907954A (en) * 2021-01-28 2021-06-04 广州国交润万交通信息有限公司 Two-passenger one-dangerous vehicle monitoring method and system based on road section management
CN114155701A (en) * 2022-02-07 2022-03-08 北京快成科技有限公司 Method, device, medium and equipment for automatically queuing vehicles in network freight platform

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301863A (en) * 2013-07-19 2015-01-21 中兴通讯股份有限公司 Device and method for positioning
CN104574103A (en) * 2014-12-28 2015-04-29 苏州亚安智能科技有限公司 Electronic service platform with automatic demand screening function
CN105188030A (en) * 2015-08-21 2015-12-23 北京拓明科技有限公司 Geographic grid mapping method of mobile network data

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104301863A (en) * 2013-07-19 2015-01-21 中兴通讯股份有限公司 Device and method for positioning
CN104574103A (en) * 2014-12-28 2015-04-29 苏州亚安智能科技有限公司 Electronic service platform with automatic demand screening function
CN105188030A (en) * 2015-08-21 2015-12-23 北京拓明科技有限公司 Geographic grid mapping method of mobile network data

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110009411A (en) * 2019-03-29 2019-07-12 广东邮电职业技术学院 Ads on Vehicles control method, device, equipment and system based on area attribute
CN110009411B (en) * 2019-03-29 2021-09-07 广东邮电职业技术学院 Vehicle-mounted advertisement control method, device, equipment and system based on regional attributes
CN112907954A (en) * 2021-01-28 2021-06-04 广州国交润万交通信息有限公司 Two-passenger one-dangerous vehicle monitoring method and system based on road section management
CN112907954B (en) * 2021-01-28 2022-05-17 广州国交润万交通信息有限公司 Two-passenger one-dangerous vehicle monitoring method and system based on road section management
CN114155701A (en) * 2022-02-07 2022-03-08 北京快成科技有限公司 Method, device, medium and equipment for automatically queuing vehicles in network freight platform

Also Published As

Publication number Publication date
CN106873014B (en) 2019-05-28

Similar Documents

Publication Publication Date Title
US10735893B2 (en) Cacheable geographic pages
CN106461752B (en) Adaptive location
CN104750799A (en) Method for recognizing construction land type rapidly based on address resolution data
CN106779882B (en) Advertisement acquisition method and device and user terminal
CN106873014A (en) A kind of method of transportation and communication quantity in express statistic region
CN103971507A (en) Taxi calling method, platform and system
US20120040692A1 (en) Movement distance falsification preventing system and method
CN104751312B (en) A kind of logistics information of freight source active obtaining system and method based on LBS
Hora et al. Estimation of Origin-Destination matrices under Automatic Fare Collection: the case study of Porto transportation system
CN105025101A (en) Hand-drawn map-based intelligent guide and navigation system of Android system
CN101615207A (en) A kind of method of obtaining bus stations with bus-waiting and bus-IC-card-holding passengers
KR20090116526A (en) Logistics information system using position information of logistics vehicle
CN114613151B (en) Truck OD determination method, system, equipment and storage medium
CN105025100A (en) IOS system-based hand-drawn map intelligent guide and navigation system
CN104967733A (en) Traffic data acquiring and analyzing system based on smart phone applications
CN104024801A (en) Method and system for navigation using bounded geograhic regions
CN102868718A (en) Method for dynamic multi-information-source integration in marine environment
CN107395680A (en) Shop group's information push and output intent and device, equipment
CN107622467B (en) Commuting travel mode extraction method and device
Duan et al. Comprehending and analyzing multiday trip-chaining patterns of freight vehicles using a multiscale method with prolonged trajectory data
CN112639410B (en) Method for verifying a sensor in a sensor network and sensor network
Berzina et al. The model of automation and extension of tourism economic impact assessment in specific regions
US20140310126A1 (en) System and Method for Performing a Wager Using a Mobile Phone
CN113869715A (en) Site grouping method, home site determining method, device and computer equipment
CN102572694A (en) Positioning system, mobile phone and positioning method

Legal Events

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