Isochrone circle construction method, device, electronic device and storage medium
By determining multiple starting points and target points of isochronous circles in the target area, the driving time is obtained and the isochronous circle range is constructed, which solves the problem of insufficient accuracy and rationality in the construction of isochronous circles in the existing technology in the urban traffic environment. , achieving high-accuracy and high-precision isochronous circle construction, enhancing the applicability in the planning field.
Patent Information
- Application Number
- CN202410114996.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-01-26
AI Technical Summary
The existing isochronous circle construction methods have low accuracy and rationality in urban traffic environments, the buffer zone method is oversimplified, and the network analysis method fails to consider the real traffic environment, resulting in insufficient accuracy and is only suitable for analysis and research with low accuracy requirements. .
By determining multiple starting points and target points of the isochronous circle in the target area, the driving time between each target point and the starting point of the isochronous circle is obtained, the most suitable target point is determined, and the isochronous time is constructed on the raster layer. Circle range, using multi-threaded processing and network map service platform data acquisition to improve accuracy and precision.
It realizes the construction of isochronous circles with high accuracy, high rationality and high precision in urban traffic environment, enhances the applicability in the planning field, and can simultaneously construct the isochronous circle ranges of multiple isochronous circle starting points.
Smart Images

Figure CN117931976B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of geographic information planning technology, and in particular to an isochrone circle construction method, device, electronic device and storage medium. Background Art
[0002] An isochrone zone refers to a spatial range that can be reached within a certain period of time from a selected starting point. It is widely used in public service facility evaluation, transportation network assessment, etc.
[0003] The existing isochrone circle construction methods mainly include the buffer method and the network analysis method. The buffer method makes a homogeneous assumption about the environment around the starting point, and then uses the estimated reachable distance per unit time as a buffer to determine the scope of the isochrone circle. The network analysis method determines the scope of the isochrone circle by simulating the traffic network. This method uses the Dijkstra algorithm to solve the path based on the traffic network.
[0004] However, the buffer zone method oversimplifies the urban traffic environment and has low accuracy and rationality. Due to the difficulty in obtaining the traffic road network, the network analysis method fails to take into account the actual traffic environment and can only be used for analysis and research with lower precision requirements. Summary of the invention
[0005] In view of this, the embodiments of the present application provide an isochrone circle construction method, device, electronic device and storage medium to simultaneously construct isochrone circle ranges of multiple isochrone circle starting points, which not only has high accuracy, high rationality and high precision, but also enhances the applicability in the planning field.
[0006] In a first aspect, an embodiment of the present application provides a method for constructing an isochronous circle, comprising:
[0007] According to the input position setting operation for the target area, a plurality of isochronous circle starting points and a plurality of target points in the target area are determined, wherein the plurality of target points are position points in the target area other than the plurality of isochronous circle starting points;
[0008] According to each target point and the plurality of isochronous circle starting points, respectively obtaining the travel time between each target point and the plurality of isochronous circle starting points;
[0009] According to the driving time, determining a plurality of optimal target points corresponding to the starting points of each isochronous circle from the plurality of target points;
[0010] According to a plurality of optimum target points corresponding to the starting points of the isochronous circles, the isochronous circle range is constructed on the grid layer of the target area with the starting points of the isochronous circles as a reference.
[0011] In an optional implementation, determining multiple optimal target points corresponding to the starting points of each isochronous circle from the multiple target points according to the driving time includes:
[0012] According to the travel time, determining a first isochronous circle starting point corresponding to each target point from the multiple isochronous circle starting points;
[0013] According to the target points and the first isochronal circle starting point, a plurality of optimum target points corresponding to the isochronal circle starting points are determined from the plurality of target points.
[0014] In an optional implementation, the acquiring, based on each target point and the plurality of isochronous circle starting points, respectively the travel time between each target point and the plurality of isochronous circle starting points comprises:
[0015] According to the positions of the target points and the positions of the multiple isochronous circle starting points, respectively obtaining the longitude and latitude distances between the target points and the multiple isochronous circle starting points;
[0016] Determine at least two second isochronous circle starting points from the multiple isochronous circle starting points according to the longitude and latitude distances;
[0017] According to the positions of the target points and the positions of the at least two second isochronous circle starting points, the travel times between the target points and the at least two second isochronous circle starting points are respectively obtained.
[0018] In an optional implementation, the acquiring, according to the positions of the target points and the positions of the at least two second isochronous circle starting points, respectively the travel time between the target points and the at least two second isochronous circle starting points includes:
[0019] Sending a data acquisition request to a network map service platform, wherein the data acquisition request includes: the positions of the target points and the positions of the at least two second isochronous circle starting points;
[0020] The driving time between each target point and the at least two second isochronous circle starting points returned by the network map service platform is received.
[0021] In an optional embodiment, the method further comprises:
[0022] Set the operation according to the number of threads input to create multiple processing threads;
[0023] dividing the plurality of target points into a plurality of target point groups according to the number of the plurality of processing threads;
[0024] The step of obtaining the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points respectively includes:
[0025] Using each processing thread, according to the position of each target point in the target point group corresponding to each processing thread and the position of the multiple isochronous circle starting points, the driving time between each target point in the target point group corresponding to each processing thread and the multiple isochronous circle starting points is calculated respectively.
[0026] In an optional embodiment, the method further comprises:
[0027] Determine the target traveling tool according to the input traveling tool setting operation;
[0028] The step of obtaining the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points respectively includes:
[0029] According to the positions of the target points and the positions of the multiple isochronous circle starting points, the travel time taken by the target travel tool from the target points to the multiple isochronous circle starting points is respectively obtained.
[0030] In an optional implementation, the isochronous circle range is constructed on the grid layer of the target area based on the multiple optimal target points corresponding to the starting points of the isochronous circles and taking the starting points of the isochronous circles as references, including:
[0031] Perform interpolation analysis based on multiple optimal target points corresponding to the starting points of each isochronous circle to obtain the target range corresponding to the starting points of each isochronous circle;
[0032] According to the target range, the isochronous circle range is constructed on the grid layer of the target area with the starting points of each isochronous circle as a reference.
[0033] In an optional implementation, the isochronous circle range is constructed on the grid layer of the target area based on the multiple optimal target points corresponding to the starting points of the isochronous circles and taking the starting points of the isochronous circles as references, including:
[0034] According to the travel time between the starting points of each isochronous circle and the multiple optimal target points, a plurality of target optimal target points corresponding to the starting points of each isochronous circle within a plurality of preset time ranges are determined from the multiple optimal target points;
[0035] According to the multiple optimal target points, taking the starting points of each isochronous circle as a reference, isochronous circle ranges corresponding to the multiple preset time-consuming ranges are respectively constructed on the grid layer of the target area.
[0036] In an optional embodiment, the method further comprises:
[0037] Obtaining preset filling information corresponding to the plurality of preset time-consuming ranges;
[0038] According to the preset filling information, the isochronous circle ranges corresponding to the multiple preset time-consuming ranges are filled and rendered on the grid layer of the target area respectively.
[0039] In a second aspect, the embodiment of the present application further provides an isochronous circle construction device, comprising:
[0040] A determination module, configured to determine a plurality of isochronous circle starting points and a plurality of target points in the target area according to an input position setting operation for the target area, wherein the plurality of target points are position points in the target area other than the plurality of isochronous circle starting points;
[0041] An acquisition module, configured to acquire the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points;
[0042] The determination module is further used to determine, according to the driving time, a plurality of optimal target points corresponding to the starting points of each isochronous circle from the plurality of target points;
[0043] The processing module is used to construct the isochronous circle range on the grid layer of the target area based on the multiple most suitable target points corresponding to the starting points of each isochronous circle and taking the starting points of each isochronous circle as the reference.
[0044] In an optional implementation manner, the determining module is specifically configured to:
[0045] According to the travel time, determining a first isochronous circle starting point corresponding to each target point from the multiple isochronous circle starting points;
[0046] According to the target points and the first isochronal circle starting point, a plurality of optimum target points corresponding to the isochronal circle starting points are determined from the plurality of target points.
[0047] In an optional implementation manner, the acquisition module is specifically used to:
[0048] According to the positions of the target points and the positions of the multiple isochronous circle starting points, respectively obtaining the longitude and latitude distances between the target points and the multiple isochronous circle starting points;
[0049] Determine at least two second isochronous circle starting points from the multiple isochronous circle starting points according to the longitude and latitude distances;
[0050] According to the positions of the target points and the positions of the at least two second isochronous circle starting points, the travel times between the target points and the at least two second isochronous circle starting points are respectively obtained.
[0051] In an optional implementation manner, the acquisition module is specifically used to:
[0052] Sending a data acquisition request to a network map service platform, wherein the data acquisition request includes: the positions of the target points and the positions of the at least two second isochronous circle starting points;
[0053] The driving time between each target point and the at least two second isochronous circle starting points returned by the network map service platform is received.
[0054] In an optional implementation, the processing module is further used to:
[0055] Set the operation according to the number of threads input to create multiple processing threads;
[0056] dividing the plurality of target points into a plurality of target point groups according to the number of the plurality of processing threads;
[0057] The acquisition module is specifically used for:
[0058] Using each processing thread, according to the position of each target point in the target point group corresponding to each processing thread and the position of the multiple isochronous circle starting points, the driving time between each target point in the target point group corresponding to each processing thread and the multiple isochronous circle starting points is calculated respectively.
[0059] In an optional implementation manner, the determining module is further configured to:
[0060] Determine the target traveling tool according to the input traveling tool setting operation;
[0061] The acquisition module is specifically used for:
[0062] According to the positions of the target points and the positions of the multiple isochronous circle starting points, the travel time taken by the target travel tool from the target points to the multiple isochronous circle starting points is respectively obtained.
[0063] In an optional implementation manner, the processing module is specifically used to:
[0064] Perform interpolation analysis based on multiple optimal target points corresponding to the starting points of each isochronous circle to obtain the target range corresponding to the starting points of each isochronous circle;
[0065] According to the target range, the isochronous circle range is constructed on the grid layer of the target area with the starting points of each isochronous circle as a reference.
[0066] In an optional implementation manner, the processing module is specifically used to:
[0067] According to the travel time between the starting points of each isochronous circle and the multiple optimal target points, a plurality of target optimal target points corresponding to the starting points of each isochronous circle within a plurality of preset time ranges are determined from the multiple optimal target points;
[0068] According to the multiple optimal target points, taking the starting points of each isochronous circle as a reference, isochronous circle ranges corresponding to the multiple preset time-consuming ranges are respectively constructed on the grid layer of the target area.
[0069] In an optional implementation manner, the acquisition module is further used to:
[0070] Obtaining preset filling information corresponding to the plurality of preset time-consuming ranges;
[0071] The processing module is further used for:
[0072] According to the preset filling information, the isochronous circle ranges corresponding to the multiple preset time-consuming ranges are filled and rendered on the grid layer of the target area respectively.
[0073] In a third aspect, an embodiment of the present application further provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory through the bus, and the processor executes the machine-readable instructions to execute any one of the methods described in the first aspect.
[0074] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method described in any one of the first aspects is executed.
[0075] The present application provides a method, device, electronic device and storage medium for constructing isochrone circles, wherein the method includes: determining multiple isochrone circle starting points and multiple target points in the target area according to the input position setting operation for the target area, wherein the multiple target points are position points other than the multiple isochrone circle starting points in the target area, respectively obtaining the driving time between each target point and the multiple isochrone circle starting points according to each target point and the multiple isochrone circle starting points, determining multiple optimal target points corresponding to each isochrone circle starting point from the multiple target points according to the driving time, constructing the isochrone circle range on the grid layer of the target area according to the multiple optimal target points corresponding to each isochrone circle starting point and taking each isochrone circle starting point as the reference, thereby being able to construct the isochrone circle range of multiple isochrone circle starting points at the same time, which is not only highly accurate, rational and precise, but also enhances the applicability of the planning field. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0077] Figure 1 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 1 ;
[0078] Figure 2 Schematic diagram of the visual interface provided in the embodiment of the present application Figure 1 ;
[0079] Figure 3 Schematic diagram of the visual interface provided in the embodiment of the present application Figure 2 ;
[0080] Figure 4 Schematic diagram of the visual interface provided in the embodiment of the present application Figure 3 ;
[0081] Figure 5 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 2 ;
[0082] Figure 6 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 3 ;
[0083] Figure 7 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 4 ;
[0084] Figure 8 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 5 ;
[0085] Fig. 9 Schematic diagram of the visual interface provided in the embodiment of the present application Figure 4 ;
[0086] Fig.10 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 6 ;
[0087] Fig.11 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 7 ;
[0088] Fig.12 A schematic diagram of the isochrone circle range provided in an embodiment of the present application;
[0089] Fig.13 A schematic diagram of a specific isochrone circle construction method provided in an embodiment of the present application;
[0090] Fig.14 A schematic diagram of the structure of an isochrone circle construction device provided in an embodiment of the present application;
[0091] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0092] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0093] It should be noted that similar numbers and letters represent similar items in the following figures. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures. In addition, the terms "first", "second", "third", etc. are only used to distinguish the description and are not to be understood as indicating or implying relative importance.
[0094] The methods for constructing isochrone circles mainly include the buffer zone method and the network analysis method. However, the buffer zone method oversimplifies the urban traffic environment and has low accuracy and rationality. Due to the difficulty in obtaining the traffic road network, the network analysis method fails to take into account the actual traffic environment and can only be used for analysis and research with lower precision requirements.
[0095] Based on this, the present application provides an isochrone circle construction method, which can simultaneously construct isochrone circle ranges of multiple isochrone circle starting points, which is not only highly accurate, reasonable and precise, but also enhances the applicability in the planning field.
[0096] Figure 1 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 1 The execution subject of this embodiment may be an electronic device, such as a terminal or a computer.
[0097] like Figure 1 As shown, the method may include:
[0098] S101. Determine a plurality of isochronal circle starting points and a plurality of target points in the target area according to an input position setting operation for the target area.
[0099] The electronic device is provided with Geographic Information System (GIS) software, which provides a visual interface. The user can input a position setting operation for the target area through the visual interface. The position setting operation is used to set multiple isochrone circle starting points and multiple target points in the target area. The electronic device determines the multiple isochrone circle starting points and multiple target points in the target area according to the position setting operation, wherein the isochrone circle starting point is the reference position point of the isochrone circle, the isochrone circle can be understood as the spatial range that can be reached within a certain period of time from the isochrone circle starting point, and the multiple target points are the position points in the target area except the multiple isochrone circle starting points.
[0100] Among them, multiple isochrone circle starting points constitute an isochrone circle starting point set FA, and multiple target points constitute a target point set FB, wherein the target area can be sampled into rectangular pixels, and the center of each rectangular pixel is extracted as the target point to constitute the target point set FB.
[0101] Figure 2 Schematic diagram of the visual interface provided in the embodiment of the present application Figure 1 ,like Figure 2As shown, the visualization interface includes: a starting point set layer and a target point set layer. The user clicks the folder icon button on the right side of the starting point set layer to pop up a file selection interface. The file selection interface displays the search range, and the isochrone circle database .gdb can be selected. There are multiple starting point set options under the isochrone circle database .gdb, for example, the fishing net point in City A and the county town center. Select the county town center, that is, the starting point of the isochrone circle is the spatial position of the county town center of each county in City A.
[0102] Similarly, the user clicks the folder icon button on the right side of the target point set layer to pop up a file selection interface with multiple target point set options, for example, City A fishing net points and County Center. Select City A fishing net points, that is, the target point is City A fishing net points. City A fishing net points can be understood as the center point of the rectangular grid obtained by sampling at 500 meters with City A as the research scope.
[0103] S102, according to each target point and the multiple isochronous circle starting points, respectively obtaining the travel time between each target point and the multiple isochronous circle starting points.
[0104] The positions of multiple target points and the positions of multiple isochrone circle starting points are obtained, and the distance between each target point and the starting points of the multiple isochrone circles is calculated respectively according to the position of each target point and the positions of the starting points of the multiple isochrone circles. Then, the driving time between each target point and the starting points of the multiple isochrone circles is calculated according to the distance. The driving time is the estimated driving time from the target point to the starting point of the isochrone circle.
[0105] In some embodiments, based on the position setting operation, multiple isochrone circle starting points and multiple target points in the target area are determined, and the starting point set FA composed of the multiple isochrone circle starting points and the target point set FB composed of the multiple target points are stored in a database, wherein the longitude and latitude coordinates of the isochrone circle starting point in the starting point set FA are FA_G, and the longitude and latitude coordinates of the target point in the target point set FB are FB_G, and the longitude and latitude coordinates FA_G of the target point and the longitude and latitude coordinates FB_G of the isochrone circle starting point are obtained from the database.
[0106] S103, determining a plurality of optimal target points corresponding to the starting points of each isochronous circle from a plurality of target points according to the driving time.
[0107] Among them, the optimal target point is the target point that can be reached within a certain time from the starting point of each isochronous circle. According to the driving time between each target point and multiple isochronous circle starting points, the target point with the shortest driving time between the starting points of each isochronous circle is used as the optimal target point corresponding to the starting point of each isochronous circle, so as to determine multiple optimal target points corresponding to the starting points of each isochronous circle from multiple target points.
[0108] S104, constructing an isochronal circle range on a grid layer of the target area based on the multiple most suitable target points corresponding to the starting points of each isochronal circle and taking the starting points of each isochronal circle as a reference.
[0109] Among them, the raster layer of the target area can be understood as a map layer of the target area in raster format. Taking the starting point of each isochronous circle as a reference, a target range is constructed based on multiple optimal target points corresponding to the starting point of each isochronous circle, and the target range is mapped to the raster layer of the target area to construct an isochronous circle range corresponding to the starting point of each isochronous circle, wherein the driving time between the starting point of each isochronous circle to multiple optimal target points is within a certain time range.
[0110] It is worth noting that by running the isochrone circle construction program to execute steps S102-S104, the isochrone circle construction program can be integrated into the GIS software as a plug-in, and the isochrone circle construction program adds a starting point set layer input interface and a target point set layer input interface, and after inputting the location setting operation for the target area, the isochrone circle construction program obtains multiple isochrone circle starting points by calling the starting point set layer input interface, and obtains multiple target points by calling the target point set layer input interface. Thus, the isochrone circle construction program is integrated with the GIS software platform through secondary development, which improves the applicability of the isochrone circle construction program, reduces the use threshold of the isochrone circle construction program, and enables non-GIS professionals to use this technology.
[0111] In some embodiments, a data storage path setting operation can also be input, and a data storage path interface can be added to the isochrone circle construction program. After the isochrone circle range is completed on the raster layer of the target area, the data storage path interface can be called to save the raster layer of the target area completed to the target storage path corresponding to the data storage path setting operation.
[0112] In some embodiments, when the isochrone circle construction program is running, the target point number being processed, as well as the driving time and distance from the target point to the starting point of the isochrone circle can also be displayed on the running interface. Figure 3 Schematic diagram of the visual interface provided in the embodiment of the present application Figure 2 ,like Figure 3 As shown, taking the request for the 12th data as an example, it means that the 12th target point is being processed, the driving time from the target point to the starting point of the isochronous circle is 65.65 minutes, and the driving distance from the target point to the starting point of the isochronous circle is 76.2 meters.
[0113] After the isochrone circle construction program is run, vector data results can also be generated and displayed, including driving time, driving distance, driving cost, etc. Driving cost can be understood as the road toll from the target point to the starting point of the isochrone circle. Figure 4 Schematic diagram of the visual interface provided in the embodiment of the present application Figure 3,like Figure 4 As shown, taking the first vector data result as an example, the driving time from the target point to the starting point of the isochrone circle is 290.4 minutes, the driving distance is 308.127 meters, and the driving cost is 158 yuan.
[0114] In this embodiment, according to the input position setting operation for the target area, multiple isochronal circle starting points and multiple target points in the target area are determined, wherein the multiple target points are position points other than the multiple isochronal circle starting points in the target area, and according to each target point and the multiple isochronal circle starting points, the travel time between each target point and the multiple isochronal circle starting points is obtained respectively, and according to the travel time, multiple optimal target points corresponding to each isochronal circle starting point are determined from the multiple target points, and according to the multiple optimal target points corresponding to each isochronal circle starting point, the isochronal circle range is constructed on the grid layer of the target area with each isochronal circle starting point as the reference. Thus, the isochronal circle range of multiple isochronal circle starting points can be constructed at the same time, which is not only accurate, reasonable and precise, but also enhances the applicability of the planning field.
[0115] Figure 5 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 2 ,like Figure 5 As shown, in an optional embodiment, the above Figure 1 Step S103 in the method of determining, according to the driving time, a plurality of optimal target points corresponding to the starting points of each isochronous circle from a plurality of target points may include:
[0116] S201. Determine, according to the driving time, a first isochronous circle starting point corresponding to each target point from a plurality of isochronous circle starting points.
[0117] According to the driving time between each target point and multiple isochronous circle starting points, the isochronous circle starting point with the shortest driving time between each target point is determined from multiple isochronous circle starting points as the first isochronous circle starting point corresponding to each target point, wherein the first isochronous circle starting point is the highest reachability starting point FB_C_min for each target point.
[0118] S202: According to each target point and the starting point of the first isochronous circle, a plurality of optimal target points corresponding to each starting point of the isochronous circle are determined from a plurality of target points.
[0119] Each target point corresponds to at least one isochronal circle starting point. For each isochronal circle starting point, multiple optimal target points corresponding to each isochronal circle starting point can be determined from multiple target points.
[0120] Figure 6 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 3 ,like Figure 6 As shown, in an optional embodiment, the above Figure 1 Step S102 in the method of obtaining the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points may include:
[0121] S301. Calculate the longitude and latitude distances between each target point and the starting points of multiple isochrone circles according to the position of each target point and the positions of the starting points of multiple isochrone circles.
[0122] The position of each target point and the positions of the starting points of multiple isochronous circles are obtained, and the longitude and latitude distances between each target point and the starting points of multiple isochronous circles are calculated according to the position of each target point and the positions of the starting points of multiple isochronous circles.
[0123] In some embodiments, if the coordinate system where the starting point of the isochrone circle is located and / or the coordinate system where the target point is located is a non-geographic coordinate system, the Gaussian inverse calculation formula can be used to convert the plane rectangular coordinate system where the starting point of the isochrone circle is located and / or the plane rectangular coordinate system where the target point is located into a geographic coordinate system, and the position of the starting point of the isochrone circle and / or the position of the target point in the plane rectangular coordinate system is converted into the longitude and latitude coordinates in the geographic coordinate system, and then the longitude and latitude distance between the starting point of the isochrone circle and the target point is calculated based on the longitude and latitude coordinates of the starting point of the isochrone circle and the longitude and latitude coordinates of the target point using the Haversine formula.
[0124] S302: Determine at least two second isochronous circle starting points from a plurality of isochronous circle starting points according to the longitude and latitude distances.
[0125] According to the longitude and latitude distances, at least two second isochrone circle starting points are determined from multiple isochrone circle starting points whose longitude and latitude distances with each target point meet preset conditions, wherein the preset condition can be to take a preset number of isochrone circle starting points in order of longitude and latitude distances from short to long.
[0126] The preset number may be, for example, 3, that is, the isochronal circle starting point FA_1 with the shortest distance to each target point, the second shortest isochronal circle starting point FA_2, and the third shortest isochronal circle starting point FA_3.
[0127] S303: Obtain the travel time between each target point and the at least two second isochronous circle starting points according to the position of each target point and the positions of the at least two second isochronous circle starting points.
[0128] According to the position of each target point and the position of each second isochronous circle starting point, the driving distance between each target point and at least two second isochronous circle starting points is calculated, and according to the driving distance, the driving time between each target point and the second isochronous circle starting point is calculated.
[0129] Accordingly, the above Figure 5Step S201 in which, according to the travel time, a first isochronous circle starting point corresponding to each target point is determined from a plurality of isochronous circle starting points may include:
[0130] According to the travel time between each target point and at least two second isochronous circle starting points, the first isochronous circle starting point corresponding to each target point is determined from the at least two second isochronous circle starting points.
[0131] According to the driving time between each target point and at least two second isochronous circle starting points, the second isochronous circle starting point with the shortest driving time between the target point and the at least two second isochronous circle starting points is determined as the first isochronous circle starting point corresponding to the target point.
[0132] In this embodiment, due to factors such as terrain and traffic, the point with the shortest longitude and latitude distance between the target point and the starting point of the isochrone circle is not necessarily the point with the shortest driving distance. Therefore, on the basis of the longitude and latitude distance, the judgment of driving time is added to screen out the starting point of the first isochrone circle, thereby improving the accuracy of the construction of the isochrone circle.
[0133] In an optional embodiment, in the above Figure 6 Step S301 in which, according to the position of each target point and the positions of at least two second isochronous circle starting points, the travel time between each target point and at least two second isochronous circle starting points is calculated respectively may include:
[0134] A data acquisition request is sent to the network map service platform, and the travel time between each target point and at least two second isochronous circle starting points returned by the network map service platform is received.
[0135] A data acquisition request is sent to the network map service platform, wherein the data acquisition request includes: the location of each target point and the location of at least two second isochronous circle starting points. The network map service platform responds to the data acquisition request and returns the travel time between each target point and at least two second isochronous circle starting points.
[0136] In some embodiments, the network map service platform can respond to the data acquisition request and return a response data packet. The response data packet can be a JSON data packet. The JSON data packet can include the driving time, driving cost, driving distance, traffic status, navigation strategy, and taxi fare between each target point and at least two second isochronous circle starting points. Among them, the driving cost can be understood as the road toll under different navigation strategies from the target point to the second isochronous circle starting point, the navigation strategy can be understood as the navigation plan from the target point to the second isochronous circle starting point, and the traffic status can be understood as the traffic congestion from the target point to the second isochronous circle starting point.
[0137] It is worth noting that the key interface of the network map service platform (i.e., the path planning interface) can be called to send a data acquisition request to the network map service platform. The data acquisition request may include: the location of each target point, the location of at least two second isochronous circle starting points, driving strategy, travel mode, access identifier (i.e., key value), return value format and other information, wherein the driving strategy can be understood as the driving plan from the target point to the starting point of the second isochronous circle, wherein the driving strategy can be represented by corresponding code symbols, such as "10", "11"... "20", "10" can mean avoiding congestion, "11" can mean not taking the highway, and "20" can mean avoiding tolls. Travel modes can include, for example, cycling, driving, and walking.
[0138] The access identifier can be understood as the user identifier. The user can apply for the access identifier in advance on the network map service platform. After verifying the access identifier, the network map service platform can return a response data packet. The return value format can be understood as the format of the response data packet, such as JSON format and XML format.
[0139] The user can input the user ID through the visual interface, add the network map service platform key interface in the isochronous circle construction program, and the isochronous circle construction program calls the network map service platform key interface to obtain the user ID (ie, key).
[0140] In addition, since the online map service platform may limit the planned daily visits, if the daily visits exceed the limit, the online map service platform will be automatically blocked and automatically unblocked the next day. Therefore, it is necessary to add a separate judgment for this type of error. When the data acquisition request is successfully sent, the online map service platform returns a response data packet. If the data acquisition request fails to be sent, it is determined whether the reason for the failure is that the daily visits exceed the limit. If so, the isochronous circle construction program is terminated, that is, the response data packet is not returned. If not, in order to avoid the crash of the isochronous circle construction program, a response data packet is returned, and the driving time in the response data packet is set to a null value. It is worth noting that if the reason for the failure is not that the daily visits exceed the limit, it means that the target point may be in a special location such as the sea, island or deep mountain, that is, the target point cannot be reached.
[0141] Figure 7 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 4 ,like Figure 7 As shown, in an optional implementation, the method may further include:
[0142] S401. Create multiple processing threads according to the input thread quantity setting operation.
[0143] The user can input a thread quantity setting operation through the visual interface, and the thread quantity setting operation is used to set the number of processing threads. The electronic device creates multiple processing threads according to the thread quantity setting operation.
[0144] The user can input the thread number setting operation through the visual interface, add the thread number interface in the isochronous circle construction program, and the isochronous circle construction program calls the thread number interface to obtain the custom processing thread number.
[0145] S402: Divide the plurality of target points into a plurality of target point groups according to the number of the plurality of processing threads.
[0146] According to the number of multiple processing threads, multiple target points are divided into multiple target point groups. The number of target point groups is consistent with the number of processing threads. One target point group includes some target points among the multiple target points. If the number of processing threads is C, the target point set FB is divided according to the number of processing threads C to obtain C groups of target point groups.
[0147] Accordingly, the above Figure 1 Step S102 in the method of obtaining the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points may include:
[0148] S403, using each processing thread, according to the position of each target point in the target point group corresponding to each processing thread and the positions of multiple isochronous circle starting points, respectively calculate the travel time between each target point in the target point group corresponding to each processing thread and the multiple isochronous circle starting points.
[0149] Using each processing thread, according to the position of each target point in the target point group corresponding to each processing thread and the positions of multiple isochronous circle starting points, the driving time between each target point in the target point group corresponding to each processing thread and multiple isochronous circle starting points is calculated respectively.
[0150] Then, each processing thread is used to determine the optimal target point corresponding to the starting point of each isochronous circle from each target point in the target point group corresponding to each processing thread, and based on the optimal target point corresponding to the starting point of each isochronous circle and taking the starting point of each isochronous circle as the benchmark, the isochronous circle range is constructed on the raster layer of the target area.
[0151] That is to say, after waiting for each processing thread to complete the calculation, the return values of each processing thread (i.e., the optimal target point) are merged to obtain the optimal target point set FC and stored in the database, and the optimal target point set FC is obtained from the database. Taking the starting point of each isochronous circle as the reference, the isochronous circle range is constructed on the raster layer of the target area. The optimal target point set FC includes multiple optimal target points corresponding to the starting point of each isochronous circle.
[0152] In some embodiments, the above Figure 6 Step S301 in the method obtains the longitude and latitude distances between each target point and the starting points of multiple isochrone circles according to the position of each target point and the positions of multiple isochrone circles, including: using each processing thread to calculate the longitude and latitude distances between each target point in the target point group corresponding to each processing thread and the starting points of multiple isochrone circles according to the position of the target point in the target point group corresponding to each processing thread and the positions of multiple isochrone circles.
[0153] Above Figure 6 Step S302 in the method determines at least two second isochrone circle starting points from a plurality of isochrone circle starting points according to the longitude and latitude distances, including: using each processing thread to determine at least two second isochrone circle starting points from a plurality of isochrone circle starting points according to the longitude and latitude distances between each target point in the target point group corresponding to each processing thread and the plurality of isochrone circle starting points.
[0154] Above Figure 6 Step S303 in the method comprises: obtaining the travel time between the target point and the at least two starting points of the second isochronous circles according to the position of each target point and the position of at least two starting points of the second isochronous circles, including: obtaining the travel time between each target point in the target point group corresponding to each processing thread and the at least two starting points of the second isochronous circles according to the position of each target point and the position of at least two starting points of the second isochronous circles.
[0155] In some embodiments, the above Figure 7 Step S401 in the method of sending a data acquisition request to a network map service platform includes: using each processing thread to send a data acquisition request to the network map service platform, wherein the data acquisition request includes the position of the target point in the target point group corresponding to each processing thread and the position of at least two starting points of the second isochronous circles.
[0156] Above Figure 7 Step S402 in the step of receiving the driving time between each target point and at least two starting points of the second isochronous circles returned by the network map service platform includes: receiving the driving time between the target point in the target point group corresponding to each processing thread and at least two starting points of the second isochronous circles returned by the network map service platform.
[0157] It is worth noting that when setting the number of processing threads, the number of processing threads cannot be too high because the network map service platform has a limit on the upper limit of the query rate per second (QPS). If the QPS is 30, based on the standard of 5 accesses per thread per second, the maximum number of processing threads is 6.
[0158] In some embodiments, when the target point set FB is divided according to the number of processing threads, the division point position can be determined first, and then the generator function in Python can be used to divide the target point set FB into multiple segments of data (i.e., target point groups) according to the division point position, and the divided data is imported into each processing thread, and the network map service platform key interface (i.e., the preset path planning interface) is accessed respectively, that is, each processing thread calls the network map service platform key interface to send a data acquisition request to the network map service platform to obtain the driving time between the target point in the target point group corresponding to each processing thread and at least two starting points of the second isochronous circles.
[0159] In this embodiment, a multi-threaded calling method is adopted to greatly improve the running speed of the isochronous circle construction program, so that large-scale, high-precision isochronous circle construction can be completed within an acceptable time.
[0160] Figure 8 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 5 ,like Figure 8 As shown, in an optional implementation, the method may further include:
[0161] S501. Determine a target traveling tool according to an input traveling tool setting operation.
[0162] The user can input the driving tool setting operation through the visual interface. The driving tool setting operation is used to set the driving tool. The electronic device determines the target driving tool set by the driving tool setting operation according to the driving tool setting operation. The target driving tool can be, for example, driving, walking, cycling, etc.
[0163] Among them, the user can input the travel tool setting operation through the visual interface, add a travel mode selection interface in the isochrone circle construction program, and the isochrone circle construction program calls the travel mode selection interface to obtain the set target travel tool.
[0164] In some embodiments, since the network map service platform takes traffic conditions into consideration when planning the route, in actual planning, in order to construct the range of isochronous circles at different time points within a day, the program waiting time is also input, and the method for controlling the thread execution time (such as the time.sleep() method) is called to add a waiting time interface in the isochronous circle construction program. The isochronous circle construction program calls the waiting time interface to obtain the program waiting time, and starts running after the program waiting time, wherein the program waiting time is the waiting time of the isochronous circle construction program. In this way, users can specify the program waiting time by themselves so that the program can run within the expected time. For example, a program waiting time of 0 means that the program can run immediately without waiting.
[0165] Fig. 9 Schematic diagram of the visual interface provided in the embodiment of the present application Figure 4 ,like Fig. 9 As shown, the visualization interface includes: starting point set layer, target point set layer, travel mode, program waiting time (hours), number of threads, network map service platform key value (key), and output element. By clicking the starting point set layer and the target point set layer, the starting point and target point of the isochrone circle can be set. In the drop-down box of travel mode, the travel mode such as driving can be selected. In the program waiting time input box, the program waiting time such as 0 can be entered. In the number of threads input box, the number of processing threads such as 4 can be entered. In the network map service platform key input box, the key applied in advance in the network map service platform can be entered. Click the folder icon button on the right side of the output element to specify the data storage path.
[0166] Accordingly, step S102, based on each target point and the multiple isochronous circle starting points, respectively obtains the travel time between each target point and the multiple isochronous circle starting points, including:
[0167] S502: According to the position of each target point and the positions of the starting points of the multiple isochronous circles, respectively obtain the driving time consumed by the target driving tool from each target point to the starting points of the multiple isochronous circles.
[0168] According to the position of each target point and the positions of the starting points of the multiple isochronous circles, the travel time from each target point to the starting point of the isochronous circle using the target travel tool is calculated.
[0169] In some embodiments, based on the position of each target point and the position of multiple isochrone circle starting points, the longitude and latitude distances between each target point and the multiple isochrone circle starting points are calculated respectively, and based on the longitude and latitude distances, at least two second isochrone circle starting points are determined from the multiple isochrone circle starting points, and then a data acquisition request is sent to the network map service platform. The data acquisition request may include: the position of each target point, the position of at least two second isochrone circle starting points, and the identification of the target driving tool, and the driving time from each target point to at least two second isochrone circle starting points using the target driving tool returned by the network map service platform.
[0170] It is worth mentioning that the isochrone circle construction program has added a travel mode selection interface. By calling the travel mode selection interface to determine the set target driving tool, and based on the driving time, multiple optimal target points corresponding to the starting points of each isochrone circle are determined from multiple target points. Based on the multiple optimal target points corresponding to the starting points of each isochrone circle, and taking the starting points of each isochrone circle as the basis, the isochrone circle range corresponding to the target driving tool is constructed on the raster layer of the target area, and then the isochrone circle range under different travel modes can be constructed, which improves the flexibility of constructing the isochrone circle range.
[0171] Fig.10 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 6 ,like Fig.10 As shown, in an optional embodiment, the above Figure 1 Step S104 in the embodiment of the present invention, based on the multiple optimal target points corresponding to the starting points of each isochronous circle, and taking the starting points of each isochronous circle as a reference, constructing the isochronous circle range on the grid layer of the target area may include:
[0172] S601, performing interpolation analysis based on multiple optimal target points corresponding to the starting points of each isochronal circle to obtain the target range corresponding to the starting points of each isochronal circle.
[0173] For each isochronal circle starting point, interpolation analysis is performed based on multiple optimal target points corresponding to each isochronal circle starting point to obtain a target range corresponding to each isochronal circle starting point. The target range is a range formed by multiple optimal target points.
[0174] S602: According to the target range, the isochronal circle range is constructed on the grid layer of the target area with the starting point of each isochronal circle as a reference.
[0175] According to the target range, the target range is mapped to the raster layer of the target area with the starting point of each isochronous circle as the benchmark to construct the isochronous circle range, so that the isochronous circle range in raster format can be constructed.
[0176] In some embodiments, after waiting for each processing thread to complete the calculation, the return value of each processing thread (i.e., the optimal target point) is merged to obtain the optimal target point set FC and stored in the database, and the optimal target point set FC is obtained from the database. In order to retain the optimal target point set FC at the same time, the copy method (such as the CopyFeatures_management() method) in the Python site package (such as Arcpy) can be used to copy the optimal target point set FC to obtain FD. The driving distance, driving time, driving fee and other fields between the starting point of each isochrone circle and the optimal target point can also be added to the FD to generate vector data results for display, and then interpolation analysis is performed based on the multiple optimal target points in the FD to construct the isochrone circle range in a raster format.
[0177] In this embodiment, interpolation analysis is performed based on multiple optimal target points corresponding to the starting points of each isochronal circle to obtain the target range corresponding to the starting points of each isochronal circle. Based on the target range, the isochronal circle range is constructed on the grid layer of the target area with the starting points of each isochronal circle as the reference. Thus, the isochronal circle ranges of multiple isochronal circle starting points can be constructed at the same time, which is not only accurate, reasonable and precise, but also enhances the applicability of the planning field.
[0178] Fig.11 Schematic diagram of the process of constructing an isochronous circle provided in the embodiment of the present application Figure 7 ,like Fig.11As shown, in an optional implementation, step S104, based on a plurality of optimal target points corresponding to the starting points of each isochronous circle, and taking the starting points of each isochronous circle as a reference, constructing an isochronous circle range on a grid layer of the target area may include:
[0179] S701, according to the travel time between each isochronous circle starting point and multiple optimal target points, determine multiple target optimal target points corresponding to each isochronous circle starting point within multiple preset time ranges from the multiple optimal target points.
[0180] According to the driving time between each isochronous circle starting point and multiple optimal target points, multiple target optimal target points corresponding to each isochronous circle starting point within multiple preset time ranges are determined from the multiple optimal target points. That is to say, the driving time and the multiple preset time ranges are matched, and the optimal target point with the driving time within the preset time range is used as the target optimal target point of the isochronous circle starting point within the preset time range. For example, the driving time between the isochronous circle starting point and the optimal target point 1 is a, and a belongs to the preset time range 1. Then the isochronous circle starting point is the target optimal target point within the preset time range 1.
[0181] Among them, multiple preset time ranges may include, for example, 0-30 minutes, 30-60 minutes, 60-90 minutes, 90-120 minutes, and 120-400 minutes.
[0182] S702: Based on the multiple optimal target points and taking the starting points of each isochronous circle as a reference, construct multiple isochronous circle ranges corresponding to the preset time-consuming ranges on the grid layer of the target area.
[0183] According to multiple optimal target points corresponding to the starting points of each isochronous circle within each preset time range, the isochronous circle ranges corresponding to each preset time range are constructed on the raster layer of the target area with the starting points of each isochronous circle as the benchmark, that is, one preset time range corresponds to one isochronous circle range with the starting points of each isochronous circle as the benchmark.
[0184] In an optional embodiment, the method may further include:
[0185] S703: Obtain preset filling information corresponding to multiple preset time-consuming ranges.
[0186] S704: Fill and render the isochronous circle ranges corresponding to the plurality of preset time-consuming ranges on the grid layer of the target area according to the preset filling information.
[0187] A preset time-consuming range corresponds to a preset filling information, and the preset filling information may be, for example, graphic filling information, color matching filling information, and the like.
[0188] According to the preset filling information, the isochronous circle range corresponding to the preset time-consuming range is filled and rendered on the raster layer of the target area, wherein multiple color filling information constitute a color set, and the color set is mapped to the isochronous circle range corresponding to multiple preset time-consuming ranges, and the isochronous circle range is filled and rendered.
[0189] For example, for a preset time range 1 and a preset time range 2, the preset fill information corresponding to the preset time range 1 is red fill information, and the preset fill information corresponding to the preset time range 2 is yellow fill information, then the isochronous circle range corresponding to the preset time range 1 is rendered in red, and the isochronous circle range corresponding to the preset time range 2 is rendered in yellow; or, if the preset fill information corresponding to the preset time range 1 is diagonal fill information, and the preset fill information corresponding to the preset time range 2 is horizontal line fill information, then the isochronous circle range corresponding to the preset time range 1 is rendered in diagonal lines, and the isochronous circle range corresponding to the preset time range 2 is rendered in horizontal lines.
[0190] For example, the starting points of the isochrone circle are point A, point B and point C, and multiple preset time ranges include 0-30 minutes, 30-60 minutes, and 60-90 minutes. Fig.12 A schematic diagram of the isochronous circle range provided in the embodiment of the present application, such as Fig.12 As shown, point A, point B and point C have three isochrone ranges, which are the isochrone ranges corresponding to 0-30 minutes, 30-60 minutes and 60-90 minutes, respectively, and are filled with oblique lines, dots and horizontal lines, respectively.
[0191] In this embodiment, by designing preset filling information, the preset filling information is mapped to the isochronous circle range corresponding to the preset time range, so that the data content is expressed in a standardized manner, forming a standardized expression map, and visually distinguishing the isochronous circle ranges corresponding to different preset time ranges, thereby improving the visual effect.
[0192] Based on the above embodiment, this solution is exemplified by taking the example that the starting point set FA includes multiple isochronous circle starting points, the target point set FB includes multiple target points, and at least two second isochronous circle starting points are three second isochronous circle starting points. Fig.13 A schematic diagram of a specific isochrone circle construction method provided in an embodiment of the present application is shown in FIG. Fig.13 As shown, it includes the following steps:
[0193] S1. Data preprocessing: normalize the starting point and target point of the isochrone circle and import them into the database.
[0194] 1. Input the starting point set FA and the target point set FB.
[0195] 2. Determine whether the point set coordinate system is a geographic coordinate system.
[0196] 3. If yes, store FA and FB in the database.
[0197] 4. If not, convert the point location to the geographic coordinate system and then store it in a temporary workspace to reduce memory usage.
[0198] S2. Calling service: Split the FB according to the number of threads, and call the key interface of the network map service platform in units of threads.
[0199] 1. Read the latitude and longitude data FA_G of the starting point of the equal time circle in FA and the latitude and longitude data FB_G of the target point in FB from the database.
[0200] 2. Divide FB by the number of threads to obtain FB_G_C.
[0201] 3. Use the formula to calculate the longitude and latitude distance to obtain the three second isochrone circle starting points closest to the target point.
[0202] 4. Call the key interfaces of the network map service platform to obtain the driving time.
[0203] 5. Compare the travel time of the three second isochronous circle starting points closest to the target point.
[0204] 6. Take the starting point of the first isochronous circle with the shortest travel time among the three starting points of the second isochronous circle as the starting point of the first isochronous circle corresponding to the target point (that is, the point with the highest accessibility to the target point).
[0205] 7. Combine the return values of each thread to obtain multiple optimal target points corresponding to the starting point of each isochronous circle, and transfer them to the database to obtain FC.
[0206] S3: Process the returned data: merge the return values of each thread, write the returned results into new vector data, perform interpolation processing on them to form raster format data, design an isochrone color set, and map the color to the isochrone range, so as to express the data content in a planned manner.
[0207] 1. Copy FC to a new data set FD.
[0208] 2. Update the attributes of the target point in the database to FD.
[0209] Add fields such as driving distance, driving time, and driving cost in FD to generate vector data results for display.
[0210] 3. Perform interpolation analysis on FD to obtain the range of isochrone zones in raster format.
[0211] 4. Map the color set to the isochrone range in raster format.
[0212] S4: System integration: Conduct secondary development of the isochrone circle construction program so that it can be integrated into the GIS software as a GIS plug-in.
[0213] 1. Add the starting point set layer input interface.
[0214] 2. Add target point set layer input interface.
[0215] 3. Add travel mode selection interface.
[0216] 4. Add program waiting time interface.
[0217] 5. Add network map service platform key interface.
[0218] 6. Add thread number interface.
[0219] 7. Add data storage path interface.
[0220] 8. Build a visual window program through secondary development.
[0221] Based on the same inventive concept, an isochrone circle construction device corresponding to the isochrone circle construction method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned isochrone circle construction method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0222] Fig.14 This is a schematic diagram of the structure of an isochrone circle construction device provided in an embodiment of the present application, which can be integrated into an electronic device.
[0223] like Fig.14 As shown, the device may include:
[0224] A determination module 801 is used to determine a plurality of isochronous circle starting points and a plurality of target points in the target area according to the input position setting operation for the target area, wherein the plurality of target points are position points in the target area other than the plurality of isochronous circle starting points;
[0225] An acquisition module 802 is used to acquire the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points;
[0226] The determination module 801 is further used to determine a plurality of optimal target points corresponding to the starting points of each isochronous circle from a plurality of target points according to the travel time;
[0227] The processing module 803 is used to construct the isochronal circle range on the grid layer of the target area according to the multiple most suitable target points corresponding to the starting points of each isochronal circle and taking the starting points of each isochronal circle as the reference.
[0228] In an optional implementation manner, the determination module 801 is specifically configured to:
[0229] According to the travel time, the first isochronous circle starting point corresponding to each target point is determined from multiple isochronous circle starting points;
[0230] According to each target point and the starting point of the first isochronal circle, a plurality of optimum target points corresponding to each isochronal circle starting point are determined from the plurality of target points.
[0231] In an optional implementation, the acquisition module 802 is specifically configured to:
[0232] According to the position of each target point and the positions of the starting points of the multiple isochrone circles, the longitude and latitude distances between each target point and the starting points of the multiple isochrone circles are respectively obtained;
[0233] Determine at least two second isochronous circle starting points from the plurality of isochronous circle starting points according to the latitude and longitude distances;
[0234] According to the position of each target point and the position of at least two second isochronous circle starting points, the travel time between each target point and the at least two second isochronous circle starting points is obtained respectively.
[0235] In an optional implementation, the acquisition module 802 is specifically configured to:
[0236] Sending a data acquisition request to a network map service platform, wherein the data acquisition request includes: the location of each target point and the location of at least two second isochronous circle starting points;
[0237] Receive the travel time between each target point and at least two second isochronous circle starting points returned by the network map service platform.
[0238] In an optional implementation, the processing module 803 is further configured to:
[0239] Set the operation according to the number of threads input to create multiple processing threads;
[0240] According to the number of the multiple processing threads, the multiple target points are divided into multiple target point groups;
[0241] Get the module, specifically for:
[0242] Using each processing thread, according to the position of each target point in the target point group corresponding to each processing thread and the positions of multiple isochronous circle starting points, the driving time between each target point in the target point group corresponding to each processing thread and the multiple isochronous circle starting points is calculated respectively.
[0243] In an optional implementation, the determination module 801 is further configured to:
[0244] Determine the target traveling tool according to the input traveling tool setting operation;
[0245] Get the module, specifically for:
[0246] According to the position of each target point and the positions of the starting points of the multiple isochronous circles, the travel time consumed by using the target travel tool from each target point to the starting points of the multiple isochronous circles is obtained respectively.
[0247] In an optional implementation manner, the processing module 803 is specifically configured to:
[0248] Interpolation analysis is performed based on multiple optimal target points corresponding to the starting points of each isochronal circle to obtain the target range corresponding to the starting points of each isochronal circle;
[0249] According to the target range, the isochrone range is constructed on the raster layer of the target area with the starting point of each isochrone circle as the benchmark.
[0250] In an optional implementation manner, the processing module 803 is specifically configured to:
[0251] According to the travel time between the starting point of each isochronous circle and the multiple optimal target points, multiple target optimal target points corresponding to the starting points of each isochronous circle within multiple preset time ranges are determined from the multiple optimal target points;
[0252] According to multiple optimal target points, taking the starting point of each isochronous circle as a reference, multiple isochronous circle ranges corresponding to preset time-consuming ranges are constructed on the raster layer of the target area.
[0253] In an optional implementation, the acquisition module 802 is further configured to:
[0254] Obtain preset filling information corresponding to multiple preset time-consuming ranges;
[0255] The processing module 803 is further used for:
[0256] According to the preset filling information, the isochronous circle ranges corresponding to the multiple preset time-consuming ranges are filled and rendered on the raster layer of the target area respectively.
[0257] For descriptions of the processing flow of each module in the device and the interaction flow between each module, reference may be made to the relevant descriptions in the above method embodiment, which will not be described in detail here.
[0258] Fig.15 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application, such as Fig.15As shown, the device may include: a processor 901, a memory 902 and a bus 903. The memory 902 stores machine-readable instructions executable by the processor 901. When the electronic device is running, the processor 901 communicates with the memory 902 through the bus 903, and the processor 901 executes the machine-readable instructions to perform the above method.
[0259] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. The computer program is executed when a processor is running, and the processor executes the above method.
[0260] In the embodiment of the present application, the computer program can also execute other machine-readable instructions when run by the processor to execute other methods described in the embodiment. For the specific execution method steps and principles, please refer to the description of the embodiment, which will not be repeated here.
[0261] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of the devices or units can be electrical, mechanical or other forms.
[0262] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0263] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0264] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0265] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for constructing an isochronous circle, characterized in that: include: According to the input position setting operation for the target area, a plurality of isochronous circle starting points and a plurality of target points in the target area are determined, wherein the plurality of target points are position points in the target area except the plurality of isochronous circle starting points; According to each target point and the plurality of isochronous circle starting points, respectively obtaining the travel time between each target point and the plurality of isochronous circle starting points; According to the driving time, determining a plurality of optimal target points corresponding to the starting points of each isochronous circle from the plurality of target points; According to the multiple most suitable target points corresponding to the starting points of each isochronous circle, the isochronous circle range is constructed on the grid layer of the target area with the starting points of each isochronous circle as the reference; The step of obtaining the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points respectively includes: According to the positions of the target points and the positions of the multiple isochronous circle starting points, respectively obtaining the longitude and latitude distances between the target points and the multiple isochronous circle starting points; Determine at least two second isochronous circle starting points from the multiple isochronous circle starting points according to the longitude and latitude distances; According to the positions of the target points and the positions of the at least two second isochronous circle starting points, the travel times between the target points and the at least two second isochronous circle starting points are respectively obtained.
2. The method according to claim 1, characterized in that The step of determining, according to the driving time, a plurality of optimal target points corresponding to the starting points of each isochronous circle from the plurality of target points comprises: According to the travel time, determining a first isochronous circle starting point corresponding to each target point from the multiple isochronous circle starting points; According to the target points and the first isochronal circle starting point, a plurality of optimum target points corresponding to the isochronal circle starting points are determined from the plurality of target points.
3. The method according to claim 1, characterized in that The step of respectively obtaining the travel time between each target point and the at least two second isochronous circle starting points according to the positions of each target point and the positions of the at least two second isochronous circle starting points includes: Sending a data acquisition request to a network map service platform, wherein the data acquisition request includes: the positions of the target points and the positions of the at least two second isochronous circle starting points; The driving time between each target point and the at least two second isochronous circle starting points returned by the network map service platform is received.
4. The method according to claim 1, characterized in that: The method further comprises: Set the operation according to the number of threads input to create multiple processing threads; dividing the plurality of target points into a plurality of target point groups according to the number of the plurality of processing threads; The step of obtaining the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points respectively includes: Using each processing thread, according to the position of each target point in the target point group corresponding to each processing thread and the position of the multiple isochronous circle starting points, the driving time between each target point in the target point group corresponding to each processing thread and the multiple isochronous circle starting points is calculated respectively.
5. The method according to claim 1, characterized in that The method further comprises: Determine the target traveling tool according to the input traveling tool setting operation; The step of obtaining the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points respectively includes: According to the positions of the target points and the positions of the multiple isochronous circle starting points, the travel time taken by the target travel tool from the target points to the multiple isochronous circle starting points is respectively obtained.
6. The method according to claim 1, characterized in that The step of constructing an isochronous circle range on a grid layer of the target area based on the multiple optimal target points corresponding to the starting points of the isochronous circles and taking the starting points of the isochronous circles as a reference comprises: Perform interpolation analysis based on multiple optimal target points corresponding to the starting points of each isochronous circle to obtain the target range corresponding to the starting points of each isochronous circle; According to the target range, the isochronous circle range is constructed on the grid layer of the target area with the starting points of each isochronous circle as a reference.
7. The method according to claim 1, characterized in that The step of constructing an isochronous circle range on a grid layer of the target area based on the multiple optimal target points corresponding to the starting points of the isochronous circles and taking the starting points of the isochronous circles as a reference comprises: According to the travel time between the starting points of each isochronous circle and the multiple optimal target points, a plurality of target optimal target points corresponding to the starting points of each isochronous circle within a plurality of preset time ranges are determined from the multiple optimal target points; According to the multiple optimal target points, taking the starting points of each isochronous circle as a reference, isochronous circle ranges corresponding to the multiple preset time-consuming ranges are respectively constructed on the grid layer of the target area.
8. The method according to claim 7, characterized in that The method further comprises: Obtaining preset filling information corresponding to the plurality of preset time-consuming ranges; According to the preset filling information, the isochronous circle ranges corresponding to the multiple preset time-consuming ranges are filled and rendered on the grid layer of the target area respectively.
9. An isochronous circle construction device, characterized in that: include: A determination module, configured to determine a plurality of isochronous circle starting points and a plurality of target points in the target area according to an input position setting operation for the target area, wherein the plurality of target points are position points in the target area other than the plurality of isochronous circle starting points; An acquisition module, configured to acquire the travel time between each target point and the multiple isochronous circle starting points according to each target point and the multiple isochronous circle starting points; The determination module is further used to determine, according to the driving time, a plurality of optimal target points corresponding to the starting points of each isochronous circle from the plurality of target points; A processing module, configured to construct an isochronous circle range on a grid layer of the target area based on a plurality of optimal target points corresponding to the starting points of the isochronous circles and taking the starting points of the isochronous circles as references; The acquisition module is specifically used to obtain the longitude and latitude distances between each target point and the starting points of the multiple isochrone circles according to the positions of each target point and the positions of the multiple isochrone circles; determine at least two second isochrone circle starting points from the multiple isochrone circle starting points according to the longitude and latitude distances; and obtain the travel time between each target point and the at least two second isochrone circle starting points according to the positions of each target point and the positions of the at least two second isochrone circle starting points.
10. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and the processor executes the machine-readable instructions to perform the method described in any one of claims 1 to 8.
11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is executed.
Citation Information
Patent Citations
Traffic isochrone information generation method and device
CN106504523A
Traffic isochrone information generation method and device
CN111627208A
Traffic isochronous circle generation method and device, equipment and storage medium
CN113160557A
Traffic isochronous circle calculation method and system based on dual grid calculation
CN113656524A
Polar coordinate-based isochrone generation
US20030074132A1
