CN117557011B - Method and device for measuring and calculating average distance of travel of highway - Google Patents

Method and device for measuring and calculating average distance of travel of highway Download PDF

Info

Publication number
CN117557011B
CN117557011B CN202410045602.2A CN202410045602A CN117557011B CN 117557011 B CN117557011 B CN 117557011B CN 202410045602 A CN202410045602 A CN 202410045602A CN 117557011 B CN117557011 B CN 117557011B
Authority
CN
China
Prior art keywords
travel
urban
national
area
routes
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.)
Active
Application number
CN202410045602.2A
Other languages
Chinese (zh)
Other versions
CN117557011A (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.)
China Academy of Transportation Sciences
Original Assignee
China Academy of Transportation Sciences
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 China Academy of Transportation Sciences filed Critical China Academy of Transportation Sciences
Priority to CN202410045602.2A priority Critical patent/CN117557011B/en
Publication of CN117557011A publication Critical patent/CN117557011A/en
Application granted granted Critical
Publication of CN117557011B publication Critical patent/CN117557011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions
    • G06F17/10Complex mathematical operations
    • G06F17/18Complex mathematical operations for evaluating statistical data, e.g. average values, frequency distributions, probability functions, regression analysis
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A30/00Adapting or protecting infrastructure or their operation
    • Y02A30/60Planning or developing urban green infrastructure

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Human Resources & Organizations (AREA)
  • Data Mining & Analysis (AREA)
  • Theoretical Computer Science (AREA)
  • Strategic Management (AREA)
  • Pure & Applied Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Operations Research (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Analysis (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Computational Mathematics (AREA)
  • Economics (AREA)
  • Quality & Reliability (AREA)
  • General Business, Economics & Management (AREA)
  • Educational Administration (AREA)
  • Bioinformatics & Computational Biology (AREA)
  • Probability & Statistics with Applications (AREA)
  • Development Economics (AREA)
  • Evolutionary Biology (AREA)
  • Game Theory and Decision Science (AREA)
  • Bioinformatics & Cheminformatics (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Tourism & Hospitality (AREA)
  • Algebra (AREA)
  • Marketing (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Navigation (AREA)

Abstract

The invention provides a method and a device for measuring and calculating average distance of travel of a highway, and relates to the technical field of statistics of travel of the highway. The method comprises the following steps: acquiring initial navigation data of a land map user in a target period; preprocessing the initial navigation data to obtain target navigation data; determining a plurality of road travel routes according to the target navigation data based on geographic information, and determining a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to each road travel route; and calculating the average distance between the national urban areas, the average distance between the national urban areas and the rural areas and the average distance between the national cities according to the travel routes of the national urban areas, the travel routes of the national urban areas and the travel routes between the national urban areas. Thus, the average distance of travel of the road of all social staff of different types in the country and each region is completely calculated, and the gap of the average distance of travel of the novel road travel mode in the industry statistics is filled.

Description

Method and device for measuring and calculating average distance of travel of highway
Technical Field
The invention relates to the technical field of highway travel statistics, in particular to a method and a device for measuring and calculating average distance of travel of a highway.
Background
At present, the cost of manpower and material resources for investigating the traditional resident travel is high, and the travel track of the vehicle is difficult to simulate and obtain, so that the resident travel characteristics cannot be accurately reflected; the travel investigation sample coverage area is relatively small, and different types of travel habits cannot be further depicted; moreover, the statistical objects of the statistical report form are road transportation means for business passenger transportation and vehicles operated on the road, the statistical caliber is small, and the travel amount generated by other new business transportation modes on the road, such as private cars, urban and rural buses, network buses and the like, is ignored, so that the statistical result cannot accurately reflect the actual national passenger transportation bearing level and the public travel demands.
Disclosure of Invention
In view of the above, the invention aims to overcome the defects in the prior art, and provides a measuring and calculating method and a measuring and calculating device for average distance of road travel, which are used for identifying road travel based on road properties, splitting the road travel of all social people into inter-city travel, urban and rural travel and urban travel according to geographic attributes of starting and ending points, and measuring and calculating the average distance of road travel of all social people of different types.
The invention provides the following technical scheme:
In a first aspect, the invention provides a method for measuring and calculating average distance of travel of a highway, which comprises the following steps: acquiring initial navigation data of a map user in a target period; preprocessing the initial navigation data to obtain target navigation data; determining a plurality of road travel routes according to the target navigation data based on geographic information, and determining a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to each road travel route; and calculating the average distance between the national urban areas, the average distance between the national urban areas and the rural areas and the average distance between the national cities according to the travel routes of the national urban areas, the travel routes of the national urban areas and the travel routes between the national urban areas.
In an embodiment, a plurality of road travel route distances are calculated according to longitude and latitude coordinates of each road travel route, and the road travel route distances comprise a plurality of national urban travel route distances, a plurality of national urban and rural travel route distances and a plurality of national inter-urban travel route distances; the method comprises the steps of respectively obtaining the national urban area travel routes, the national urban and rural travel routes, the national urban area travel number corresponding to the national inter-urban travel routes, the national urban and rural travel number and the national inter-urban travel number; based on total people of all urban traveling users, carrying out average weighting according to the travel route distance of all urban traveling routes and the corresponding total people of all urban traveling routes to obtain the average distance of all urban traveling routes; based on the total number of urban and rural travel users in the whole country, carrying out average weighting according to the travel route distance of each urban and rural travel in the whole country and the corresponding urban and rural travel number in the whole country to obtain the average distance between the urban and rural travel in the whole country; and based on the total number of the inter-urban travel users, carrying out average weighting according to the inter-urban travel route distances of all the countries and the corresponding inter-urban travel numbers to obtain the inter-urban average distance.
In one embodiment, the average distance between the same province and the same country and the same province are calculated according to the province of the starting point of the road travel route.
In one embodiment, determining provinces to which the starting points of the travel routes of the roads belong according to a target geographic information system; determining a plurality of travel routes in the same province area, a plurality of travel routes in the same province and village and a plurality of travel routes in the same province; determining travel route distances of the same province area and travel people of the same province area corresponding to the travel routes of the same province area, determining travel route distances of the same province and country corresponding to the travel routes of the same province and country and travel people of the same province and country, and determining travel route distances of the same province and travel people of the same province and city corresponding to the travel routes of the same province and city; based on the total number of travel users in the same province area, carrying out average weighting according to the travel route distance of each same province area and the travel number of the corresponding same province area to obtain the average distance between the same province areas; based on the total number of travel users in the same province and village, carrying out average weighting according to the travel route distance of each same province and village and the corresponding travel number of the same province and village to obtain the average transportation distance of the same province and village; and based on the total number of the inter-same-provincial travel users, carrying out average weighting according to each inter-same-provincial travel route distance and the corresponding inter-same-provincial travel number to obtain the inter-same-provincial average distance.
In an embodiment, first field data, second field data and third field data are determined, wherein the first field data is used for indicating longitude and latitude coordinates of a track, the second field data is used for indicating a track route, and the third field data is used for indicating the number of people going out; determining that the data record which does not comprise the first field data and/or the second field data and/or the third field data in the initial navigation data is missing data, and deleting the missing data to obtain first user navigation data; determining N repeated data which are the same as the first field data, the second field data and the third field data in the first user navigation data, and deleting N-1 repeated data to obtain second user navigation data; acquiring a plurality of track longitude and latitude coordinates in each first field data in the second user navigation data, deleting data records corresponding to the first field data with the same longitude and latitude coordinates, and obtaining third user navigation data; and acquiring a plurality of path roads in the second field data in the third user navigation data, deleting data records corresponding to the second field data with the same path roads, and obtaining the target navigation data.
In an embodiment, a plurality of user travel routes are obtained according to the target navigation data, and corresponding longitude and latitude coordinates of a plurality of users are determined according to the user travel routes; projecting the longitude and latitude coordinates and the road base map of the user to a first geographic information system to obtain a second geographic information system, and determining a plurality of road travel routes according to the user travel routes based on the second geographic information system; projecting the corresponding longitude and latitude coordinates of the outgoing routes of the plurality of users and the base map of the administrative region of the street in villages and towns to the second geographic information system to obtain the target geographic information system, and determining the region to which the starting point of each road route belongs and the region to which the ending point of each road route belongs according to the target geographic information system; and determining a plurality of national urban and rural travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes from the road travel routes according to the areas to which the starting points belong and the areas to which the ending points belong.
In an embodiment, according to the second geographic information system, whether at least two user output longitude and latitude coordinates are continuously located in the road base map or not in a plurality of user output longitude and latitude coordinates corresponding to each user travel route is respectively judged; if yes, determining the user travel route as the highway travel route.
In an embodiment, if the area to which the start point and the area to which the end point corresponding to the road travel route belong are both located in the same urban area, the road travel route is the national urban travel route; if the area of the starting point and the area of the ending point corresponding to the road travel route are located in the same grade and above cities and the area of the starting point and/or the area of the ending point are not located in urban areas, the road travel route is the national urban and rural travel route; and if the area of the starting point and the area of the ending point corresponding to the road travel route are located in cities with different levels and above, the road travel route is the national inter-city travel route.
In one embodiment, simulating a reference relationship between a traffic index and the same provincial area average distance, the same provincial rural average distance and the same provincial inter-average distance; obtaining supplementary distance data based on the reference relationship; and checking the average distance between the same province area, the same province and country average distance and the same province inter-average distance according to the supplementary distance data.
In a second aspect, the present invention provides a device for measuring and calculating average distance of travel of a highway, the device comprising:
the acquisition module is used for acquiring initial navigation data of the map user in a target period;
the processing module is used for preprocessing the initial navigation data to obtain target navigation data;
The determining module is used for determining a plurality of road travel routes according to the target navigation data based on geographic information, and determining a plurality of urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to each road travel route;
The calculation module is used for calculating the average distance between the national urban areas, the average distance between the national urban areas and the rural areas and the average distance between the national cities according to the travel routes of the national urban areas, the travel routes of the national urban areas and the rural travel routes of the national urban areas and the travel routes of the national inter-urban areas.
According to the method and the device for measuring and calculating the average distance of travel of the highway, initial navigation data of map users in a target period are obtained; preprocessing the initial navigation data to obtain target navigation data; determining a plurality of road travel routes according to the target navigation data based on geographic information, and determining a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to each road travel route; and calculating the average distance between the national urban areas, the average distance between the national urban areas and the rural areas and the average distance between the national cities according to the travel routes of the national urban areas, the travel routes of the national urban areas and the travel routes between the national urban areas. Therefore, based on the travel navigation data of the electronic map users, the average distance of travel of all social staff roads of different types in the whole country and each region is completely calculated, the average distance of travel among cities and villages and the average distance of travel among cities are included, the gap of the average distance of travel in novel travel modes such as private cars, network about cars, urban and rural buses and the like in the statistics of the industry is filled, and the characteristics of high positioning accuracy, strong objectivity of the navigation data, no manual intervention, large sample size and wide coverage of the navigation data are accurately grasped.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 shows a flow diagram of a method for measuring and calculating average distance of travel of a highway, which is provided by the invention;
Fig. 2 is another flow diagram of a method for measuring and calculating average distance of travel of a highway, which is provided by the invention;
FIG. 3 is a schematic flow chart of another method for measuring and calculating average distance of road travel according to the present invention;
FIG. 4 is a schematic flow chart of a method for measuring and calculating average distance of road travel according to the present invention;
fig. 5 shows a schematic structural diagram of a device for measuring and calculating average distance of road travel provided by the invention.
Description of main reference numerals:
500-measuring and calculating device for average distance of travel of highway; 501-an acquisition module; 502-a processing module; 503-a determination module; 504-calculation module.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
It will be understood that when an element is referred to as being "fixed to" another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being "connected" to another element, it can be directly connected to the other element or intervening elements may also be present. In contrast, when an element is referred to as being "directly on" another element, there are no intervening elements present. The terms "vertical," "horizontal," "left," "right," and the like are used herein for illustrative purposes only.
In the present invention, unless explicitly specified and limited otherwise, the terms "mounted," "connected," "secured," and the like are to be construed broadly, and may be, for example, fixedly connected, detachably connected, or integrally formed; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communicated with the inside of two elements or the interaction relationship of the two elements. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
Furthermore, the terms "first," "second," and the like, are used for descriptive purposes only and are not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include one or more such feature. In the description of the present invention, the meaning of "a plurality" is two or more, unless explicitly defined otherwise.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The terminology used in the description of the templates herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The term "and/or" as used herein includes any and all combinations of one or more of the associated listed items.
Example 1
The embodiment of the disclosure provides a measuring and calculating method for average distance of road travel, which is used for identifying road travel based on road properties, splitting the road travel of all social people into inter-city travel, urban and rural travel and urban travel according to geographic attributes of starting and ending points, and measuring and calculating the average distance of the road travel of all social people of different types.
Referring to fig. 1, the method for measuring and calculating the average distance of travel of the highway includes steps S101 to S104, and each step is described in detail below.
Step S101, initial navigation data of map users in a target period are acquired.
In this embodiment, initial navigation data in a target period requiring statistics is acquired from an electronic map. The electronic map may be a Goldmap or a hundred degree map, and in other embodiments, the electronic map is selected according to actual needs, which is not limited herein. Taking a Goldmap as an example, determining the city of the user by using Origin-Destination (OD) navigation Data, and evaluating whether the Data volume of the Goldmap is reasonable or not according to the population numbers of the resident cities issued by the statistical bureaus of all provinces and the market share of the Goldmap in the city, so as to prevent the loss of the total Data volume caused by storage, transmission and other reasons from affecting the accuracy of measuring and calculating the average distance.
It should be noted that when the initial navigation data is obtained from the electronic map, the basic navigation data of each user is analyzed, the basic navigation data of the same track route are integrated into one data record, and the number of users travelling through the track route is counted, so that one data record comprises one track route and the number of users travelling through the track route, and also comprises longitude and latitude coordinate points of the track route, and the initial navigation data consists of data records corresponding to different track routes. For example, if the existing base navigation data includes a track route/> , the base navigation data/> includes a track route/> , the base navigation data/> includes a track route/> , the base navigation data/> includes a track route/> , then the base navigation data/> and/> of the track route same as are integrated into the data record 1, where the data record 1 includes the track route/> , and 2 users traveling through the track route/> , the data record 1 further includes other data such as longitude and latitude coordinates of the track route/> ; and the basic navigation data/> corresponding to the track route/> and the basic navigation data/> corresponding to the track route/> are respectively integrated into the data record 2 and the data record 3; at the same time, the data records 1, 2, 3 are combined together into initial navigation data.
It is required to supplement that the basic navigation data of the electronic map is analyzed and integrated in advance to obtain the initial navigation data, so that the workload of subsequently identifying the road travel route and other travel routes is reduced, and the calculation of the subsequent average distance is facilitated.
Step S102, preprocessing the initial navigation data to obtain target navigation data.
In this embodiment, the initial navigation data is preprocessed, the initial navigation data is cleaned according to a data cleaning rule, and the deletion, repetition, potential positioning error, deletion and repair of the data record generating the GPS signal "drift" phenomenon and the like are processed.
Referring to fig. 2, in an embodiment, the preprocessing the initial navigation data to obtain target navigation data includes steps S1021 to S1025, which are described in detail below.
Step S1021, the first field data, the second field data, and the third field data are determined.
In this embodiment, three key fields are defined and each field data is acquired for cleaning the initial navigation data. For example, a track longitude and latitude coordinate field, a track route field, and a number of trips field may be defined. Specifically, the initial navigation data comprises a plurality of data records of each user, first field data, second field data and third field data in each data record are determined, the first field data is track coordinate data, the second field data is track route data, and the third field data is trip number data corresponding to a certain track route.
Step S1022, determining that the data record excluding the first field data and/or the second field data and/or the third field data in the initial navigation data is missing data, and deleting the missing data to obtain the first user navigation data.
In this embodiment, if a certain data record of the initial navigation data does not include the first field data and/or the second field data and/or the third field data, that is, if at least one of the track longitude and latitude coordinate data, the track route data and the number of people data in the data record is empty, determining that the data record is missing data, and deleting the missing data, so as to obtain the first user navigation data after deleting the missing data.
Step S1023, determining N repeated data which are the same in the first field data, the second field data and the third field data in the first user navigation data, and deleting N-1 repeated data to obtain second user navigation data.
In this embodiment, if the first field data, the second field data and the third field data in the N data records of the first user navigation data are all the same, that is, the track longitude and latitude coordinate data, the track route data and the number of people traveling in the plurality of data records are all the same, the N data records are repeated data, only one of the repeated data is reserved, and the remaining N-1 repeated data are deleted, so as to obtain the second user navigation data after deleting redundant repeated data. For example, if the first field data, the second field data and the third field data of the data record 1 are A, B, C respectively, the first field data, the second field data and the third field data of the data record 2 are A, B, C respectively, the first field data, the second field data and the third field data of the data record 3 are D, B, A respectively, and the first field data, the second field data and the third field data of the data record 4 are A, B, C respectively, it is known that the first field data, the second field data and the third field data of the data record 1, the data record 2 and the data record 4 are A, B, C respectively, and therefore, the data record 1, the data record 2 and the data record 4 are 3 pieces of repeated data, at this time, only any one piece of the 3 pieces of repeated data is reserved, and the remaining 2 pieces of repeated data are deleted.
Step S1024, obtaining the longitude and latitude coordinates of multiple tracks in the first field data in the second user navigation data, deleting the data records corresponding to the first field data with the same longitude and latitude coordinates, and obtaining the third user navigation data.
In this embodiment, a plurality of track longitude and latitude coordinates of each first field data in the second user navigation data are obtained, if the track longitude and latitude coordinates in each first field data are the same, it can be known that the track change corresponding to the first field data is unchanged or the data is wrong, and the effective navigation data cannot be obtained, so that the data record corresponding to the first field data is deleted, and the deleted third user navigation data are obtained.
Step S1025, obtaining a plurality of path roads in the second field data in the third user navigation data, deleting the data records corresponding to the second field data with the same path roads, and obtaining the target navigation data.
In this embodiment, a plurality of path roads of each second field data in the third user navigation data are obtained, and if the path roads of each second field data are the same, it is known that the track corresponding to the second field data is unchanged or the data is wrong, so that the data record corresponding to the second field data is deleted, and the deleted target navigation data are obtained.
Referring to fig. 1 again, step S103 determines a plurality of road travel routes according to the target navigation data based on the geographic information, and determines a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to each of the road travel routes.
In the present embodiment, the road travel route is identified based on the road geographic attribute of each route way road in the target navigation data, so that the national urban travel route, the national urban and rural travel route, and the national inter-urban travel route are divided based on the geographic administrative attributes of the start point and the end point of each road travel route.
Referring to fig. 3, in a specific embodiment, the determining a plurality of road travel routes according to the target navigation data based on the geographic information, determining a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to each road travel route, includes steps S1031 to S1034, and the following detailed description of each step is provided.
Step S1031, obtaining a plurality of user travel routes according to the target navigation data, and determining corresponding longitude and latitude coordinates of a plurality of users according to the user travel routes.
In this embodiment, a plurality of user travel routes are determined according to the second field data from the preprocessed target navigation data, the user travel routes at this time are all effective data, and a plurality of user travel longitude and latitude coordinates corresponding to each user travel route are determined according to the first field data.
Step S1032, projecting the longitude and latitude coordinates and the road base map of the user output to the first geographic information system to obtain a second geographic information system, and determining a plurality of road travel routes according to the user travel routes based on the second geographic information system.
In this embodiment, the longitude and latitude coordinates and the road base map of the plurality of user output routes are projected to the first geographic information system to obtain the second geographic information system, so that whether the user output routes are road output routes or not is identified through the second geographic information system.
In a specific embodiment, the determining, based on the second geographic information system, a plurality of road travel routes according to each of the user travel routes includes: according to the second geographic information system, judging whether at least two user output longitude and latitude coordinates exist in a plurality of user output longitude and latitude coordinates corresponding to each user travel route or not continuously located on the road base map; if yes, determining the user travel route as the highway travel route.
In the embodiment, judging whether at least two user output longitude and latitude coordinates are continuously located in a road base map or not in a plurality of user output longitude and latitude coordinates corresponding to each user travel route through a second geographic information system; if at least two user travel longitude and latitude coordinates are continuously located in the road base map in the plurality of user travel longitude and latitude coordinates corresponding to the user travel route, determining that the user travel route is the road travel route. For example, the user output longitude and latitude coordinates corresponding to the user travel route Y sequentially include , and when the user output longitude and latitude coordinates/> are located on the road base map, determining that the user travel route Y is a road travel route; if the user travel longitude and latitude coordinates corresponding to the user travel route Z sequentially include/> , only the user travel longitude and latitude coordinates/> are located on the road base map, and/> is not the continuous two user travel longitude and latitude coordinates, so that the user travel route Z is not the road travel route. It should be noted that, the highway includes expressways and provincial roads of common countries.
And step 1033, projecting the corresponding longitude and latitude coordinates of the plurality of user outgoing lines and the urban street administrative region base map to the second geographic information system to obtain the target geographic information system, and determining the region to which the starting point of each road outgoing line belongs and the region to which the ending point of each road outgoing line belongs according to the target geographic information system.
In this embodiment, the latitude and longitude coordinates of the road trip and the map of the urban street administrative region corresponding to the road trip are projected to the second geographic information system to be superimposed, so as to obtain the target geographic information system, which is used for judging the urban street administrative region to which the start point and the end point of the road trip respectively belong, that is, the region to which the start point belongs and the region to which the end point belongs. The town street administration area includes a town or street.
And step S1034, determining a plurality of national urban and rural travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes from the road travel routes according to the area to which each starting point belongs and the area to which each ending point belongs.
In this embodiment, the national urban travel route, the national urban and rural travel route and the national inter-urban travel route are divided by judging whether villages and towns or streets corresponding to the starting and stopping points of the road travel routes are located in the same city and urban area.
It should be noted that, the urban area includes urban areas and county areas of the cities above and above, the whole urban area is defined as an urban area according to the clear central urban area in the urban planning, and the rest of the urban areas are rural areas, namely non-urban areas.
For the county, along with the development of town, part of county and county level cities are subjected to administrative division adjustment of removing the town and changing the street, and the original town is brought into the urban management, so that the streets of the county and county level cities are divided into streets; other county-level administrative units not identified as urban areas are defined as counties according to the principle of administrative construction of " town" as the county treatment site; meanwhile, the principle of selecting the town with the administrative division code of the county (county city) arranged at the first place according to the rule of compiling the regional code for statistics and the urban and rural division code of the county statistical bureau county (county city) is defined as county.
In a specific embodiment, if the area to which the start point and the area to which the end point corresponding to the road travel route belong are both located in the same urban area, the road travel route is the national urban travel route; if the area of the starting point and the area of the ending point corresponding to the road travel route are located in the same city and the area of the starting point and/or the area of the ending point are not located in the urban area, the road travel route is the national urban and rural travel route; and if the area of the starting point and the area of the ending point corresponding to the road travel route are located in cities with different levels and above, the road travel route is the national inter-city travel route.
In this embodiment, if the area to which the start point and the end point corresponding to a road travel route belong are both located in the same urban area, that is, in the urban district or county of the same or more cities, the road travel route is a national urban travel route.
If the area to which the starting point and the area to which the end point belong are located in the same level and above cities, and the area to which the starting point belongs and/or the area to which the end point belongs are not located in urban areas, namely, at most one end of the area to which the starting point belongs and the area to which the end point belongs is located in urban jurisdiction or county, the road travel route is a national urban and rural travel route.
If the area of the starting point and the area of the ending point corresponding to the road travel route are located in different levels and above cities, the road travel route is a national inter-city travel route.
Referring again to fig. 1, step S104 calculates a national urban average distance, a national urban and rural average distance and a national inter-urban average distance according to each of the national urban travel routes, each of the national urban and rural travel routes and each of the national inter-urban travel routes.
In the embodiment, the calculation of the average distance between the urban and rural travel routes and the inter-urban travel routes is performed respectively, and the calculation can be used for reflecting the average distance between the social personnel and the road travel from different aspects.
Referring to fig. 4, in a specific embodiment, the calculation of the average inter-urban distance, the average inter-urban distance and the average inter-urban distance according to the urban travel routes, the urban travel routes and the inter-urban travel routes includes steps S1041 to S1045, and the following description will explain the steps.
Step S1041, calculating a plurality of road travel route distances according to longitude and latitude coordinates of each road travel route, where the plurality of road travel route distances includes a plurality of national urban travel route distances, a plurality of national urban and rural travel route distances, and a plurality of national inter-urban travel route distances.
In this embodiment, the road travel route distance is calculated for each road travel route according to the longitude and latitude coordinates of the road travel route, that is, the route distance is calculated for each national urban travel route, national urban and rural travel route and national inter-urban travel route, so as to obtain a plurality of national urban travel route distances, a plurality of national urban and rural travel route distances and a plurality of national inter-urban travel route distances. The calculation formula of the road travel route distance is , wherein d represents the road travel route distance, r is the earth radius,/> is the radian of the longitude coordinate of the starting point of the road travel route,/> is the radian of the latitude coordinate of the starting point of the road travel route,/> is the radian of the latitude coordinate of the ending point of the road travel route, and/> is the radian of the latitude coordinate of the ending point of the road travel route. The calculation formula of radian/> of the starting point longitude coordinate of the road trip route is/> starting point longitude coordinate, the calculation formula of radian/> of the starting point latitude coordinate of the road trip route is/> starting point latitude coordinate, the calculation formula of radian/> of the ending point longitude coordinate of the road trip route is/> ending point longitude coordinate, and the calculation formula of radian/> of the ending point latitude coordinate of the road trip route is/> ending point latitude coordinate. In other embodiments, the road trip route distance may also be calculated according to other formulas.
Step S1042, obtaining the national urban travel route, the national urban and rural travel route, the national urban travel number corresponding to the national inter-urban travel route, the national urban and rural travel number, and the national inter-urban travel number, respectively.
In this embodiment, the number of users corresponding to each national urban travel route, national urban and rural travel routes and national inter-urban travel routes is determined and used for calculation of the subsequent average distance between the two different urban travel routes.
Step S1043, based on total people of all urban traveling users, carrying out average weighting according to the travel route distance of all urban traveling routes and the corresponding urban traveling people to obtain the average distance between all urban traveling routes.
In this embodiment, the total number of urban travel users in the whole country, the urban travel route distance in the whole country, and the urban travel number/> in the whole country corresponding to the urban travel route distance/> in the whole country are obtained, and the calculation formula of the average distance/> in the whole country is/> />), where is the number of urban travel routes in the whole country.
It should be noted that, adding the total number of urban traveling users corresponding to each urban traveling route is performed to obtain total number of urban traveling users, for example, the total number of urban traveling users corresponding to urban traveling route/> is 2, the total number of urban traveling users corresponding to urban traveling route/> is 3, and the total number of urban traveling users corresponding to urban traveling route/> is 4, so that total number/> is 2+3+4=9.
Step S1044, based on the total number of urban and rural travel users in the whole country, carrying out average weighting according to the urban and rural travel route distance in the whole country and the corresponding urban and rural travel number in the whole country to obtain the average urban and rural distance in the whole country.
In this embodiment, the total number of urban and rural travel users in the whole country, the urban and rural travel route distance in the whole country, and the urban and rural travel number/> in the whole country corresponding to the urban and rural travel route distance/> in the whole country are obtained, and the calculation formula of the average urban and rural distance/> in the whole country is/> , wherein/> is the number of urban and rural travel routes in the whole country.
Note that, adding the total number of the national urban and rural travel users corresponding to each national urban and rural travel route to obtain the total number of the national urban and rural travel users, for example, the total number 1 of the national urban and rural travel users corresponding to the national urban and rural travel route/> , the total number 3 of the national urban and rural travel users corresponding to the national urban and rural travel route/> , and the total number 4 of the national urban and rural travel users corresponding to the national urban and rural travel route/> , the total number/> is 1+3+4=8.
Step S1045, based on total number of users traveling across the national city, carrying out average weighting according to the distance of each inter-national city travel route and the corresponding inter-national city travel number, so as to obtain the inter-national city average distance.
In this embodiment, the total number of the users in the intercity travel in the whole country, the intercity travel route distance in the whole country, and the intercity travel number/> corresponding to a certain intercity travel route distance/> in the whole country are obtained, and the calculation formula of the average intercity distance/> in the whole country is/> />), where/> is the number of intercity travel routes in the whole country.
It should be noted that, adding the inter-urban travel numbers corresponding to the inter-urban travel routes to obtain the total number of inter-urban travel users, for example, the number of inter-urban travel numbers corresponding to the inter-urban travel route/> is 2, the number of inter-urban travel numbers corresponding to the inter-urban travel route/> is 3, and the number of inter-urban travel numbers corresponding to the inter-urban travel route/> is 2, then the total number/> of inter-urban travel users is 2+3+2=7.
In a specific embodiment, the average distance between the same province and the same country and the same province are calculated according to the province of the starting point of the road travel route.
In this embodiment, the average distance between different provinces is calculated according to the provinces of the starting points of the road travel routes, so as to obtain more comprehensive traffic statistics data. In other embodiments, different types of average waypoints may also be calculated based on other geographic areas, enriching traffic data.
In one embodiment, determining provinces to which the starting points of the travel routes of the roads belong according to a target geographic information system; determining a plurality of travel routes in the same province area, a plurality of travel routes in the same province and village and a plurality of travel routes in the same province; determining travel route distances of the same province area and travel people of the same province area corresponding to the travel routes of the same province area, determining travel route distances of the same province and country corresponding to the travel routes of the same province and country and travel people of the same province and country, and determining travel route distances of the same province and travel people of the same province and city corresponding to the travel routes of the same province and city; based on the total number of travel users in the same province area, carrying out average weighting according to the travel route distance of each same province area and the travel number of the corresponding same province area to obtain the average distance between the same province areas; based on the total number of travel users in the same province and village, carrying out average weighting according to the travel route distance of each same province and village and the corresponding travel number of the same province and village to obtain the average transportation distance of the same province and village; and based on the total number of the inter-same-provincial travel users, carrying out average weighting according to each inter-same-provincial travel route distance and the corresponding inter-same-provincial travel number to obtain the inter-same-provincial average distance.
In the embodiment, firstly, determining the provinces of the starting points of the road travel routes according to a target geographic information system, namely determining the provinces of the national urban travel routes, the national urban and rural travel routes and the starting points of the national inter-urban travel routes; dividing travel routes in the same province area, the travel routes in the same province countryside and the travel routes in the same province inter-province according to the provinces to which each starting point belongs; and determining the same-provincial area travel route distance and the same-provincial area travel number corresponding to each same-provincial area travel route of the same provincial part, the same-provincial rural travel route distance and the same-provincial rural travel number corresponding to each same-provincial rural travel route, the same-provincial inter-city travel number corresponding to each same-provincial inter-city travel route, and the same-provincial inter-city travel route distance and the same-provincial inter-city travel number corresponding to each same-provincial rural travel route based on the national urban travel route distance, the national inter-city travel route distance and the national inter-city travel route number, the national urban travel number and the national inter-city travel number.
For example, the existing national urban user travel route is a province/> , the national urban user travel route corresponding to national urban user travel route/> is 2, the national urban user travel route/> is a province/> , the national urban user travel route corresponding to national urban user travel route is 5, the national urban user travel route/> is a province/> , and the national urban user travel route corresponding to national urban user travel route/> is 3, the same province travel routes of province/> are/> and/> , the same province number of province/> is 2+5=7, and the same province travel route of province/> is/> , and the same province of province/> is 3.
Further, the total number of travel users in the same province area, the travel route distance/> in the same province area and the travel number/> in the same province area, corresponding to the travel route in the same province area, of the province s to which the target belongs are obtained, and the calculation formula of the average distance/> in the same province area of the province s to which the target belongs is , wherein/> is the number of travel routes in the same province area.
Further, a total number of users traveling in the same province and countryside, a distance/> of travel routes in the same province and countryside, and a number/> of travel people in the same province and countryside, corresponding to the travel routes in the same province and countryside, of which the target belongs to the province, are obtained, and a calculation formula of average distance/> in the same province and countryside of the target belongs to the province is , wherein/> is the number of travel routes in the same province and countryside.
Further, a total number of inter-provincial travel users, a distance/> of inter-provincial travel routes and a number/> of inter-provincial travel routes corresponding to the inter-provincial travel routes of the same provincial are obtained, and a calculation formula of an inter-provincial average distance/> of the inter-provincial travel routes of the target belonging to the provincial s is , wherein/> is the number of inter-provincial travel routes of the same provincial.
In a specific embodiment, simulating a reference relationship between a traffic index and the same province area average distance, the same province countryside average distance and the same province inter-city average distance; obtaining supplementary distance data based on the reference relationship; and checking the average distance between the same province area, the same province and country average distance and the same province inter-average distance according to the supplementary distance data.
In this embodiment, the traffic index includes indexes of bus passenger traffic volume, bus route length, city built-up area, city population, and the like. And establishing a corresponding relation among the cities based on the traffic indexes of the cities, and carrying out data dimensionless processing on the traffic indexes based on a normalization method.
Further, the Matlab simulates the known average distance between the same province and district, the average distance between the same province and district and the reference relation between the average distance between the same province and district and the traffic index of the average distance between the same province and district, supplements various average distances of the provinces with less navigation data coverage rate based on the reference relation, and can mutually check the relation between the supplemented distance data and the average distance between the same province and district, the average distance between the same province and district and the average distance between the same province and district so as to ensure the accuracy of the average distance between the provinces.
According to the method for measuring and calculating the average distance between the road trips, initial navigation data of map users in a target period are obtained; preprocessing the initial navigation data to obtain target navigation data; determining a plurality of road travel routes according to the target navigation data based on geographic information, and determining a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to each road travel route; and calculating the average distance between the national urban areas, the average distance between the national urban areas and the rural areas and the average distance between the national cities according to the travel routes of the national urban areas, the travel routes of the national urban areas and the travel routes between the national urban areas. Therefore, based on the travel navigation data of the electronic map users, the average distance of travel of all social staff roads of different types in the whole country and each region is completely calculated, the average distance of travel among cities and villages and the average distance of travel among cities are included, the gap of the average distance of travel in novel travel modes such as private cars, network about cars, urban and rural buses and the like in the statistics of the industry is filled, and the characteristics of high positioning accuracy, strong objectivity of the navigation data, no manual intervention, large sample size and wide coverage of the navigation data are accurately grasped.
Example 2
In addition, referring to fig. 5, an embodiment of the disclosure provides a device 500 for measuring and calculating average distance of travel of a highway, where the device includes:
An obtaining module 501, configured to obtain initial navigation data of a map user during a target period;
the processing module 502 is configured to pre-process the initial navigation data to obtain target navigation data;
A determining module 503, configured to determine a plurality of road travel routes according to the target navigation data based on geographic information, and determine a plurality of national urban travel routes, a plurality of national urban and rural travel routes, and a plurality of national inter-urban travel routes according to each road travel route;
The calculating module 504 is configured to calculate a national urban average distance between cities and rural average distance between cities and an national inter-city average distance between cities according to the national urban travel route, the national urban and rural travel route and the national inter-city travel route.
Optionally, the calculating module 504 is further configured to calculate a plurality of road travel route distances according to longitude and latitude coordinates of each road travel route, where the plurality of road travel route distances includes a plurality of national urban travel route distances, a plurality of national urban and rural travel route distances, and a plurality of national inter-urban travel route distances; the method comprises the steps of respectively obtaining the national urban area travel routes, the national urban and rural travel routes, the national urban area travel number corresponding to the national inter-urban travel routes, the national urban and rural travel number and the national inter-urban travel number; based on total people of all urban traveling users, carrying out average weighting according to the travel route distance of all urban traveling routes and the corresponding total people of all urban traveling routes to obtain the average distance of all urban traveling routes; based on the total number of urban and rural travel users in the whole country, carrying out average weighting according to the travel route distance of each urban and rural travel in the whole country and the corresponding urban and rural travel number in the whole country to obtain the average distance between the urban and rural travel in the whole country; and based on the total number of the inter-urban travel users, carrying out average weighting according to the inter-urban travel route distances of all the countries and the corresponding inter-urban travel numbers to obtain the inter-urban average distance.
Optionally, the calculating module 504 is further configured to calculate an average distance between the same provinces, an average distance between the same provinces and the country, and an average distance between the same provinces according to the provinces to which the starting point of the road trip belongs.
Optionally, the calculating module 504 is further configured to determine, according to the target geographic information system, a province to which the starting point of each road trip route belongs; determining a plurality of travel routes in the same province area, a plurality of travel routes in the same province and village and a plurality of travel routes in the same province; determining travel route distances of the same province area and travel people of the same province area corresponding to the travel routes of the same province area, determining travel route distances of the same province and country corresponding to the travel routes of the same province and country and travel people of the same province and country, and determining travel route distances of the same province and travel people of the same province and city corresponding to the travel routes of the same province and city; based on the total number of travel users in the same province area, carrying out average weighting according to the travel route distance of each same province area and the travel number of the corresponding same province area to obtain the average distance between the same province areas; based on the total number of travel users in the same province and village, carrying out average weighting according to the travel route distance of each same province and village and the corresponding travel number of the same province and village to obtain the average transportation distance of the same province and village; and based on the total number of the inter-same-provincial travel users, carrying out average weighting according to each inter-same-provincial travel route distance and the corresponding inter-same-provincial travel number to obtain the inter-same-provincial average distance.
Optionally, the processing module 502 is further configured to determine first field data, second field data and third field data, where the first field data is used to indicate longitude and latitude coordinates of a track, the second field data is used to indicate a track route, and the third field data is used to indicate a number of people going out; determining that the data record which does not comprise the first field data and/or the second field data and/or the third field data in the initial navigation data is missing data, and deleting the missing data to obtain first user navigation data; determining N repeated data which are the same as the first field data, the second field data and the third field data in the first user navigation data, and deleting N-1 repeated data to obtain second user navigation data; acquiring a plurality of track longitude and latitude coordinates in each first field data in the second user navigation data, deleting data records corresponding to the first field data with the same longitude and latitude coordinates, and obtaining third user navigation data; and acquiring a plurality of path roads in the second field data in the third user navigation data, deleting data records corresponding to the second field data with the same path roads, and obtaining the target navigation data.
Optionally, the determining module 503 is further configured to obtain a plurality of user travel routes according to the target navigation data, and determine corresponding coordinates of longitude and latitude of a plurality of users according to the plurality of user travel routes; projecting the longitude and latitude coordinates and the road base map of the user to a first geographic information system to obtain a second geographic information system, and determining a plurality of road travel routes according to the user travel routes based on the second geographic information system; projecting the corresponding longitude and latitude coordinates of the outgoing routes of the plurality of users and the base map of the administrative region of the street in villages and towns to the second geographic information system to obtain the target geographic information system, and determining the region to which the starting point of each road route belongs and the region to which the ending point of each road route belongs according to the target geographic information system; and determining a plurality of national urban and rural travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes from the road travel routes according to the areas to which the starting points belong and the areas to which the ending points belong.
Optionally, the determining module 503 is further configured to determine, according to the second geographic information system, whether at least two user output longitude and latitude coordinates among the plurality of user output longitude and latitude coordinates corresponding to each user output route are located continuously on the road base map; if yes, determining the user travel route as the highway travel route.
Optionally, the determining module 503 is further configured to, if the area to which the start point and the area to which the end point corresponding to the road travel route belong are both located in the same urban area, determine that the road travel route is the national urban travel route; if the area of the starting point and the area of the ending point corresponding to the road travel route are located in the same grade and above cities and the area of the starting point and/or the area of the ending point are not located in urban areas, the road travel route is the national urban and rural travel route; and if the area of the starting point and the area of the ending point corresponding to the road travel route are located in cities with different levels and above, the road travel route is the national inter-city travel route.
Optionally, the calculating module 504 is further configured to simulate a reference relationship between a traffic index and the average distance between the same provinces, the average distance between the same provinces and the average distance between the same provinces; obtaining supplementary distance data based on the reference relationship; and checking the average distance between the same province area, the same province and country average distance and the same province inter-average distance according to the supplementary distance data.
The steps of the method for measuring and calculating the average distance of travel of the highway provided in embodiment 1 can be executed by the device provided in the embodiment of the present disclosure, and in order to avoid repetition, no description is repeated.
The device for measuring and calculating the average distance of travel of the highway provided by the embodiment acquires initial navigation data of map users in a target period; preprocessing the initial navigation data to obtain target navigation data; determining a plurality of road travel routes according to the target navigation data based on geographic information, and determining a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to each road travel route; and calculating the average distance between the national urban areas, the average distance between the national urban areas and the rural areas and the average distance between the national cities according to the travel routes of the national urban areas, the travel routes of the national urban areas and the travel routes between the national urban areas. Therefore, based on the travel navigation data of the electronic map users, the average distance of travel of all social staff roads of different types in the whole country and each region is completely calculated, the average distance of travel among cities and villages and the average distance of travel among cities are included, the gap of the average distance of travel in novel travel modes such as private cars, network about cars, urban and rural buses and the like in the statistics of the industry is filled, and the characteristics of high positioning accuracy, strong objectivity of the navigation data, no manual intervention, large sample size and wide coverage of the navigation data are accurately grasped.
Any particular values in all examples shown and described herein are to be construed as merely illustrative and not a limitation, and thus other examples of exemplary embodiments may have different values.
It should be noted that: like reference numerals and letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures.
The above examples merely represent a few embodiments of the present invention, which are described in more detail and are not to be construed as limiting the scope of the present invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention.

Claims (5)

1. The method for measuring and calculating the average distance between the road trips is characterized by comprising the following steps:
acquiring initial navigation data of a map user in a target period;
preprocessing the initial navigation data to obtain target navigation data;
Determining a plurality of road travel routes according to the target navigation data and the road base map based on a geographic information system, and determining a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to the areas of the start points and the end points of the road travel routes;
calculating the average distance between the national urban areas, the average distance between the national urban areas and the rural areas and the average distance between the national urban areas according to the travel routes of the national urban areas, the travel routes of the national urban areas and the travel routes between the national urban areas;
calculating the average distance between the same province area and the same province village and the average distance between the same province according to the province of the starting point of the road travel route;
Determining a city to which the map belongs through the origin-destination navigation data, and determining the map by combining the resident population number of the city to which the city belongs and the market share of each map software in the city to which the map belongs;
The preprocessing the initial navigation data to obtain target navigation data includes:
Determining first field data, second field data and third field data, wherein the first field data is used for indicating longitude and latitude coordinates of a track, the second field data is used for indicating a track route, and the third field data is used for indicating the number of people on a trip;
Determining that the data record which does not comprise the first field data and/or the second field data and/or the third field data in the initial navigation data is missing data, and deleting the missing data to obtain first user navigation data;
Determining N repeated data which are the same as the first field data, the second field data and the third field data in the first user navigation data, and deleting N-1 repeated data to obtain second user navigation data;
Acquiring a plurality of track longitude and latitude coordinates in each first field data in the second user navigation data, deleting data records corresponding to the first field data with the same longitude and latitude coordinates, and obtaining third user navigation data;
Acquiring a plurality of path roads in the second field data in the third user navigation data, deleting data records corresponding to the second field data with the same path roads, and obtaining the target navigation data;
The geographic information system is used for determining a plurality of road travel routes according to the target navigation data and a road base map, and determining a plurality of national urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to the area of the starting point and the area of the ending point of each road travel route, and the geographic information system comprises the following steps:
Acquiring a plurality of user travel routes according to the target navigation data, and determining corresponding longitude and latitude coordinates of a plurality of users according to the user travel routes;
projecting the longitude and latitude coordinates and the road base map of the user to a first geographic information system to obtain a second geographic information system, and determining a plurality of road travel routes according to the user travel routes based on the second geographic information system;
Projecting the corresponding longitude and latitude coordinates of the outgoing routes of the plurality of users and the base map of the administrative region of the street in villages and towns to the second geographic information system to obtain a target geographic information system, and determining the region of the starting point of each road route and the region of the ending point of each road route according to the target geographic information system;
Determining a plurality of national urban and rural travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes from a plurality of road travel routes according to the areas to which the starting points belong and the areas to which the ending points belong;
the determining, based on the second geographic information system, a plurality of road travel routes according to the travel routes of the users includes:
According to the second geographic information system, judging whether at least two user output longitude and latitude coordinates exist in a plurality of user output longitude and latitude coordinates corresponding to each user travel route or not continuously located on the road base map;
if yes, determining the user travel route as the highway travel route;
the determining a national urban travel route, a national urban and rural travel route and a national inter-urban travel route from the highway travel route according to the area of the starting point and the area of the ending point comprises the following steps:
if the area of the starting point and the area of the ending point corresponding to the road travel route are both located in the same urban area, the road travel route is the national urban travel route;
If the area of the starting point and the area of the ending point corresponding to the road travel route are located in the same grade and above cities and the area of the starting point and/or the area of the ending point are not located in urban areas, the road travel route is the national urban and rural travel route;
If the area of the starting point and the area of the ending point corresponding to the road travel route are located in different levels and above cities, the road travel route is the national inter-city travel route;
the urban area comprises urban areas and county areas of the cities at and above the level, the whole urban area is defined as an urban area according to a clear central urban area in urban planning, and the rest urban areas are rural areas, namely non-urban areas; dividing the streets of county and county level cities into streets; other county-level administrative units not identified as urban areas are defined as counties according to the principle of administrative construction of " town" as the county treatment site; meanwhile, the principle that county and county-level city administrative division codes are arranged in the first town is selected according to the rule of the code of the division for statistics and the code of the division of the city and the county-level city, and the rule of the code of the division of the county and the county-level city is defined as county;
the calculating the average distance between the same province area, the average distance between the same province and the country and the average distance between the same province according to the province of the starting point of the road travel route comprises the following steps:
Determining provinces of the starting points of the travel routes of the roads according to the target geographic information system;
determining a plurality of travel routes in the same province area, a plurality of travel routes in the same province and village and a plurality of travel routes in the same province;
Determining travel route distances of the same province area and travel people of the same province area corresponding to the travel routes of the same province area, determining travel route distances of the same province and country corresponding to the travel routes of the same province and country and travel people of the same province and country, and determining travel route distances of the same province and travel people of the same province and city corresponding to the travel routes of the same province and city;
Based on the total number of travel users in the same province area, carrying out average weighting according to the travel route distance of each same province area and the travel number of the corresponding same province area to obtain the average distance between the same province areas;
Based on the total number of travel users in the same province and village, carrying out average weighting according to the travel route distance of each same province and village and the corresponding travel number of the same province and village to obtain the average transportation distance of the same province and village;
And based on the total number of the inter-same-provincial travel users, carrying out average weighting according to each inter-same-provincial travel route distance and the corresponding inter-same-provincial travel number to obtain the inter-same-provincial average distance.
2. The method for measuring and calculating average distance between road trips according to claim 1, wherein said calculating average distance between national urban areas, average distance between national urban areas and average distance between national urban areas based on each of said national urban area trip routes, each of said national urban and rural trip routes and each of said national inter-urban trip routes comprises:
Calculating a plurality of road travel route distances according to longitude and latitude coordinates of each road travel route, wherein the road travel route distances comprise a plurality of national urban travel route distances, a plurality of national urban and rural travel route distances and a plurality of national inter-urban travel route distances;
The method comprises the steps of respectively obtaining the national urban area travel routes, the national urban and rural travel routes, the national urban area travel number corresponding to the national inter-urban travel routes, the national urban and rural travel number and the national inter-urban travel number;
Based on total people of all urban traveling users, carrying out average weighting according to the travel route distance of all urban traveling routes and the corresponding total people of all urban traveling routes to obtain the average distance of all urban traveling routes;
Based on the total number of urban and rural travel users in the whole country, carrying out average weighting according to the travel route distance of each urban and rural travel in the whole country and the corresponding urban and rural travel number in the whole country to obtain the average distance between the urban and rural travel in the whole country;
And based on the total number of the inter-urban travel users, carrying out average weighting according to the inter-urban travel route distances of all the countries and the corresponding inter-urban travel numbers to obtain the inter-urban average distance.
3. The method for measuring and calculating average distance of travel of a highway according to claim 1, wherein the preprocessing the initial navigation data to obtain target navigation data comprises:
Determining first field data, second field data and third field data, wherein the first field data is used for indicating longitude and latitude coordinates of a track, the second field data is used for indicating a track route, and the third field data is used for indicating the number of people on a trip;
Determining that the data record which does not comprise the first field data and/or the second field data and/or the third field data in the initial navigation data is missing data, and deleting the missing data to obtain first user navigation data;
Determining N repeated data which are the same as the first field data, the second field data and the third field data in the first user navigation data, and deleting N-1 repeated data to obtain second user navigation data;
Acquiring a plurality of track longitude and latitude coordinates in each first field data in the second user navigation data, deleting data records corresponding to the first field data with the same longitude and latitude coordinates, and obtaining third user navigation data;
And acquiring a plurality of path roads in the second field data in the third user navigation data, deleting data records corresponding to the second field data with the same path roads, and obtaining the target navigation data.
4. The method for measuring and calculating average distance of travel of a highway according to claim 1, wherein the method further comprises:
Simulating a reference relation between a traffic index and the same province area average distance, the same province village average distance and the same province inter-city average distance;
Obtaining supplementary distance data based on the reference relationship;
And checking the average distance between the same province area, the same province and country average distance and the same province inter-average distance according to the supplementary distance data.
5. A device for measuring and calculating average distance of travel of a highway, the device comprising:
the acquisition module is used for acquiring initial navigation data of the map user in a target period;
the processing module is used for preprocessing the initial navigation data to obtain target navigation data;
the determining module is used for determining a plurality of road travel routes according to the target navigation data and the road base map based on the geographic information system, and determining a plurality of urban travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes according to the area to which the starting point of each road travel route belongs and the area to which the end point of each road travel route belongs;
the calculation module is used for calculating the average distance between the national urban areas, the average distance between the national urban areas and the rural areas and the average distance between the national cities according to the travel routes of the national urban areas, the travel routes of the national urban areas and the rural travel routes of the national urban areas and the travel routes of the national inter-urban areas;
The calculation module is also used for calculating the average distance between the same province and district and the average distance between the same province and district according to the province to which the starting point of the road travel route belongs;
The acquisition module is further used for determining the city according to the origin-destination navigation data, and determining the map according to the resident population of the city and the market share of each map software in the city;
the determining module is further used for obtaining a plurality of user travel routes according to the target navigation data and determining corresponding longitude and latitude coordinates of a plurality of users according to the user travel routes; projecting the longitude and latitude coordinates and the road base map of the user to a first geographic information system to obtain a second geographic information system, and determining a plurality of road travel routes according to the user travel routes based on the second geographic information system; projecting the corresponding longitude and latitude coordinates of the outgoing routes of the plurality of users and the base map of the administrative region of the street in villages and towns to the second geographic information system to obtain a target geographic information system, and determining the region of the starting point of each road route and the region of the ending point of each road route according to the target geographic information system; determining a plurality of national urban and rural travel routes, a plurality of national urban and rural travel routes and a plurality of national inter-urban travel routes from a plurality of road travel routes according to the areas to which the starting points belong and the areas to which the ending points belong;
The determining module is further configured to determine, according to the second geographic information system, whether at least two user output longitude and latitude coordinates among the plurality of user output longitude and latitude coordinates corresponding to each user travel route are located continuously on the road base map; if yes, determining the user travel route as the highway travel route;
The determining module is further configured to, if the area to which the start point and the area to which the end point corresponding to the road travel route belong are both located in the same urban area, determine that the road travel route is the national urban travel route; if the area of the starting point and the area of the ending point corresponding to the road travel route are located in the same grade and above cities and the area of the starting point and/or the area of the ending point are not located in urban areas, the road travel route is the national urban and rural travel route; if the area of the starting point and the area of the ending point corresponding to the road travel route are located in different levels and above cities, the road travel route is the national inter-city travel route; the urban area comprises urban areas and county areas of the cities at and above the level, the whole urban area is defined as an urban area according to a definite central urban area in urban planning, and the rest urban areas are rural areas, namely non-urban areas; dividing the streets of county and county level cities into streets; other county-level administrative units not identified as urban areas are defined as counties according to the principle of administrative construction of " town" as the county treatment site; meanwhile, the principle that county and county-level city administrative division codes are arranged in the first town is selected according to the rule of the code of the division for statistics and the code of the division of the city and the county-level city, and the rule of the code of the division of the county and the county-level city is defined as county;
The calculation module is also used for determining provinces of the starting points of the travel routes of the roads according to the target geographic information system; determining a plurality of travel routes in the same province area, a plurality of travel routes in the same province and village and a plurality of travel routes in the same province; determining travel route distances of the same province area and travel people of the same province area corresponding to the travel routes of the same province area, determining travel route distances of the same province and country corresponding to the travel routes of the same province and country and travel people of the same province and country, and determining travel route distances of the same province and travel people of the same province and city corresponding to the travel routes of the same province and city; based on the total number of travel users in the same province area, carrying out average weighting according to the travel route distance of each same province area and the travel number of the corresponding same province area to obtain the average distance between the same province areas; based on the total number of travel users in the same province and village, carrying out average weighting according to the travel route distance of each same province and village and the corresponding travel number of the same province and village to obtain the average transportation distance of the same province and village; and based on the total number of the inter-same-provincial travel users, carrying out average weighting according to each inter-same-provincial travel route distance and the corresponding inter-same-provincial travel number to obtain the inter-same-provincial average distance.
CN202410045602.2A 2024-01-12 2024-01-12 Method and device for measuring and calculating average distance of travel of highway Active CN117557011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410045602.2A CN117557011B (en) 2024-01-12 2024-01-12 Method and device for measuring and calculating average distance of travel of highway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410045602.2A CN117557011B (en) 2024-01-12 2024-01-12 Method and device for measuring and calculating average distance of travel of highway

Publications (2)

Publication Number Publication Date
CN117557011A CN117557011A (en) 2024-02-13
CN117557011B true CN117557011B (en) 2024-04-16

Family

ID=89817078

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410045602.2A Active CN117557011B (en) 2024-01-12 2024-01-12 Method and device for measuring and calculating average distance of travel of highway

Country Status (1)

Country Link
CN (1) CN117557011B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2725567A1 (en) * 2008-12-23 2010-07-01 Tomtom International B.V. Navigation device and method for determining a route of travel
CN108921465A (en) * 2018-06-11 2018-11-30 华南理工大学 A kind of network of highways cargo transport index automation statistical method
CN112507624A (en) * 2020-12-15 2021-03-16 交通运输部公路科学研究所 Intercity highway trip mode identification model construction and identification method and device
CN116504050A (en) * 2022-09-27 2023-07-28 东南大学 Special event city partitioning method based on multi-mode public transport trip data
CN116720875A (en) * 2023-05-29 2023-09-08 协鑫电港云科技(海南)有限公司 Network contract vehicle and data processing method, storage medium and electronic equipment thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2725567A1 (en) * 2008-12-23 2010-07-01 Tomtom International B.V. Navigation device and method for determining a route of travel
CN108921465A (en) * 2018-06-11 2018-11-30 华南理工大学 A kind of network of highways cargo transport index automation statistical method
CN112507624A (en) * 2020-12-15 2021-03-16 交通运输部公路科学研究所 Intercity highway trip mode identification model construction and identification method and device
CN116504050A (en) * 2022-09-27 2023-07-28 东南大学 Special event city partitioning method based on multi-mode public transport trip data
CN116720875A (en) * 2023-05-29 2023-09-08 协鑫电港云科技(海南)有限公司 Network contract vehicle and data processing method, storage medium and electronic equipment thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
新时期陆路运输的定位与调整;江兴智;;运输经理世界;20100415(04);正文第78-81页 *

Also Published As

Publication number Publication date
CN117557011A (en) 2024-02-13

Similar Documents

Publication Publication Date Title
Tu et al. Exploring nonlinear effects of the built environment on ridesplitting: Evidence from Chengdu
Zhao et al. Uncovering the spatiotemporal patterns of CO2 emissions by taxis based on Individuals' daily travel
CN110298500B (en) Urban traffic track data set generation method based on taxi data and urban road network
Shu et al. Spatial disaggregation of carbon dioxide emissions from road traffic based on multiple linear regression model
Uno et al. Using bus probe data for analysis of travel time variability
US9291463B2 (en) Method of verifying or deriving attribute information of a digital transport network database using interpolation and probe traces
CN102595323B (en) Method for obtaining resident travel characteristic parameter based on mobile phone positioning data
Sultan et al. Extracting spatial patterns in bicycle routes from crowdsourced data
Tomasiello et al. Multi‐temporal transport network models for accessibility studies
CN108648453A (en) A method of traffic trip data portrait is carried out based on mobile phone location fresh information
Aston et al. Does transit mode influence the transit-orientation of urban development?–An empirical study
Raffler et al. Cycling investment expedience: Energy expenditure based Cost-Path Analysis of national census bicycle commuting data
Soe et al. Haversine formula and RPA algorithm for navigation system
Jonker et al. Modeling trip-length distribution of shopping center trips from GPS data
Coutts Multiple case studies of the influence of land-use type on the distribution of uses along urban river greenways
Yang et al. Spatially Varying Relation between Built Environment and Station‐Level Subway Passenger‐Distance
Mane et al. Influence of proximal land use and network characteristics on link travel time
Steenberghen et al. Support study on data collection and analysis of active modes use and infrastructure in Europe
Yang et al. Carbon dioxide emissions from commuter traffic in Xi'an, China
Orjuela et al. Conditions of territorial accessibility offered by the network of sustainable tourism routes that are part of the coffee cultural landscape-Colombia
CN117557011B (en) Method and device for measuring and calculating average distance of travel of highway
Petrescu Urban sprawl from Urban Atlas data: Romanian case study
Saghapour et al. Estimating public transport accessibility in metropolitan areas incorporating population density
Parcianello et al. Transportation: An overview from open data approach
CN114666738A (en) Territorial space planning method and system based on mobile phone signaling

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