Road management method and platform based on road network space, electronic equipment and medium
By calculating the distance between the target location and the end point of the road segment and the station number increment rule in the road network space, the station number in the highway network can be accurately determined, which solves the problems of large positioning error and untimely data update in the existing technology, and realizes efficient and accurate highway management.
Patent Information
- Application Number
- CN202511691175.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-18
- Publication Date
- 2026-03-03
AI Technical Summary
Existing technologies for locating station numbers in highway networks are inefficient, susceptible to environmental factors, and have large positioning errors. They are particularly difficult to meet the needs of refined management in complex or remote road networks, and the untimely updates of road network data lead to inaccurate positioning.
By obtaining the latitude and longitude coordinates of the target location in the road network space, calculating the distance between the target location and the end point of the road segment, and combining the rule of increasing/decreasing the end point station number, the target station number is accurately determined, and the target road segment, latitude and longitude coordinates and station number are displayed.
It enables the rapid and accurate determination of the latitude and longitude coordinates and corresponding station numbers of target locations within the road network space, improving the efficiency and precision of highway management and providing rich information support.
Smart Images

Figure CN121597775A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of highway management, specifically to a highway management method and platform based on road network space, electronic equipment, and computer-readable storage medium. Background Technology
[0002] In the field of highway transportation infrastructure construction and operation management, the accurate acquisition and correlation of location information is the core foundation for achieving efficient management, fault diagnosis, emergency response, and maintenance decision-making. With the continuous expansion of the highway network, a complex network system covering urban and rural areas and connecting regions has been formed. Against this backdrop, how to quickly and accurately locate any position within the road network and correlate it with the core indicator of highway management—the mileage marker—has become a critical issue that urgently needs to be addressed within the industry.
[0003] As a core location marker in highway construction and management, station numbers are typically set at certain intervals along the highway centerline, based on a specific starting point. They serve as crucial references for maintenance operations, accident handling, facility inspections, and other management activities. Traditional methods of highway location and station number acquisition primarily rely on manual inspections or pre-installed markers. Workers must carry paper maps or specialized equipment along the highway, comparing the site terrain with the map information to determine the target station number. This method is not only inefficient but also susceptible to environmental factors such as weather and terrain. In complex road networks or remote sections, positioning errors can often reach tens or even hundreds of meters, making it difficult to meet the needs of refined management.
[0004] With the development of Geographic Information System (GIS) and Global Positioning System (GPS) technologies, digital positioning methods have been gradually introduced into the field of highway management. Early digital solutions mostly used simple coordinate mapping methods, which involved overlaying GPS-acquired latitude and longitude coordinates onto the highway network layer. However, this method could only roughly mark the target location on the map and could not directly associate it with the corresponding station information. Some improved solutions attempted to solve this problem by establishing a linear mapping relationship between latitude and longitude coordinates and station numbers, but they ignored the complexity of the actual road alignment—highway routes are not completely straight but contain curves, slopes, and other complex alignments. Simple linear interpolation calculations would lead to a significant increase in station deviation, especially on road sections with small curve radii, where the positioning error could even exceed 100 meters, seriously affecting the accuracy of management decisions.
[0005] Furthermore, with the deepening advancement of the intelligent transportation concept, highway management systems are developing towards real-time and intelligent capabilities, placing higher demands on the speed and accuracy of location information acquisition. Existing technical solutions are prone to road segment identification errors in areas with multiple road intersections and complex road network topologies, leading to deviations in station determination. Simultaneously, some solutions fail to update and maintain road network data in a timely manner. When highway reconstruction or network adjustments occur, the mapping relationship between coordinates and station numbers cannot be updated synchronously, further exacerbating positioning inaccuracies. Therefore, developing a technical solution that can quickly and accurately convert the latitude and longitude coordinates of a target location into corresponding station numbers based on road network spatial characteristics, ensuring that every point in the road network has a unique spatial identifier and intuitively displaying relevant information, has become a key breakthrough for improving the efficiency and precision of highway management. Summary of the Invention
[0006] Therefore, it is necessary to provide a road management method and platform based on road network space, electronic equipment and computer-readable storage medium to achieve the technical effect of quickly and accurately determining the latitude and longitude coordinates and corresponding station numbers of target locations, thereby improving the efficiency and precision of road management.
[0007] In order to achieve the above-mentioned technical effects, in a first aspect, this application provides a highway management method based on road network space, including: obtaining the target location in the road network space and determining the target latitude and longitude coordinates corresponding to the target location; Based on the target's latitude and longitude coordinates, obtain the target road segment to which the target location belongs, and obtain the latitude and longitude coordinates and station numbers of the road segment's endpoints; The target distance between the target location and the endpoint of the road segment is calculated based on the target's latitude and longitude coordinates and the endpoint's latitude and longitude coordinates. The target station number corresponding to the target location is calculated based on the target distance and the endpoint station number. The target road segment, the target latitude and longitude coordinates, and the target station number are displayed.
[0008] In one possible embodiment, calculating the target distance between the target location and the road segment endpoint based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates includes: The `lineSliceAlong` method of `Turf.js` is called to obtain all vector road segment data between the target location and the road segment endpoint location from the road network space based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates. Call the length method in Truf.js to convert the data of each vector road segment into a LineString object; Calculate the length of each vector segment using the Haversine formula or the Vincenty formula. The target distance is obtained by summing the lengths of all the vector road segments.
[0009] In one possible embodiment, calculating the target station corresponding to the target location based on the target distance and the endpoint station includes: Obtain the chainage increment / decrement rules from the endpoint of the road segment to the target location; The increment / decrement amount of the target station number is determined according to the increment / decrement rule and the target distance; The target station number is calculated based on the endpoint station number and the increment / decrement amount.
[0010] In one possible embodiment, obtaining the target location in the road network space and determining the target latitude and longitude coordinates corresponding to the target location includes: Display a road map using a map engine, and in response to a mouse trigger event, obtain the mouse position coordinates corresponding to the mouse trigger event; The screen coordinate to latitude and longitude coordinate interface of the map engine is called to convert the mouse position coordinates into the target latitude and longitude coordinates.
[0011] In one possible embodiment, it further includes: Determine whether there is a first camera that corresponds to the target station number; If the first camera is present, display the monitoring footage from the first camera; If the first camera does not exist, obtain the target monitoring area based on the target latitude and longitude coordinates, and determine whether a second camera exists within the target monitoring area; If the second camera is present, display the monitoring footage from the second camera.
[0012] In one possible embodiment, it further includes: Determine whether there are road supporting facilities at the target location based on the target's latitude and longitude coordinates; If the highway infrastructure exists at the target location, the highway infrastructure will be displayed.
[0013] In one possible embodiment, the step of stating that the highway infrastructure exists at the target location further includes: The system acquires the surrounding cameras associated with the highway infrastructure and dynamically loads and displays the monitoring footage from those cameras.
[0014] Secondly, this application provides a highway management platform based on road network space, comprising: The latitude and longitude acquisition module is used to acquire the target location in the road network space and determine the target latitude and longitude coordinates corresponding to the target location; The road segment acquisition module is used to acquire the target road segment to which the target location belongs based on the target latitude and longitude coordinates, and to acquire the endpoint latitude and longitude coordinates and endpoint station numbers of the road segment endpoints; A station number acquisition module is used to calculate the target distance between the target location and the end point of the road segment based on the target latitude and longitude coordinates and the end point latitude and longitude coordinates, and to calculate the target station number corresponding to the target location based on the target distance and the end point station number; The display module is used to display the target road segment, the target latitude and longitude coordinates, and the target station number.
[0015] Thirdly, this application also provides an electronic device, including a memory and a processor, wherein, The memory is used to store programs; The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the road network space-based highway management method described in any of the above implementations.
[0016] Fourthly, this application also provides a computer-readable storage medium for storing a computer-readable program or instructions, which, when executed by a processor, can implement the steps in the road network space-based highway management method described in any of the above implementations.
[0017] The beneficial effects of this application are: Compared with related technologies, the highway management method and platform, electronic equipment, and computer-readable storage medium based on road network space provided in this application, after determining the target location in the road network space, further determine the target latitude and longitude coordinates corresponding to the target location. Then, based on the target latitude and longitude coordinates and the latitude and longitude boundaries of the areas where each road segment is located stored in the road network space, determine the target road segment to which the target location belongs. Then, obtain the endpoint latitude and longitude coordinates and endpoint station number of the road segment endpoint. By calculating the target distance between the target location and the road segment endpoint based on the target latitude and longitude coordinates and endpoint latitude and longitude coordinates, and then calculating the target station number corresponding to the target location based on the target distance and endpoint station number, the target road segment, target latitude and longitude coordinates, and target station number corresponding to the target location can be accurately determined and displayed. This achieves the technical effect of quickly and accurately determining the latitude and longitude coordinates and corresponding station number of the target location, improving the efficiency and refinement of highway management. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0019] Figure 1 This is a schematic flowchart of a road network space-based highway management method provided in one embodiment of this application; Figure 2 A schematic flowchart of a highway management method based on road network space, provided as another embodiment of this application; Figure 3 A schematic flowchart of a road network space-based highway management method provided in another embodiment of this application; Figure 4 This is a schematic diagram of the architecture of a highway management platform based on road network space provided in one embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in one embodiment of this application. Detailed Implementation
[0020] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.
[0021] In the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more. "And / or" describes the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.
[0022] The terms "first," "second," etc., used in the embodiments of this application are for descriptive purposes only and should not be construed as indicating or implying their relative importance or implicitly specifying the number of technical features indicated. Therefore, a technical feature defined with "first" or "second" may explicitly or implicitly include at least one of those features.
[0023] In this document, the term "embodiment" means that a particular feature, architecture, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.
[0024] This application provides a highway management method and platform based on road network space, an electronic device, and a computer-readable storage medium, which are described below.
[0025] Please refer to Figure 1 The highway management method based on road network space provided in this application includes: Step S101: Obtain the target location in the road network space and determine the target latitude and longitude coordinates corresponding to the target location.
[0026] In this step, the target location is the location where the user needs to view the latitude and longitude coordinates and station number. Specifically, in practical applications, a road map can be displayed on the display device using a map engine. The user triggers a mouse event on the displayed road map through interaction methods such as clicking or hovering the mouse for a long time. The mouse position coordinates corresponding to the mouse event are obtained, and then the map engine's screen coordinate to latitude and longitude coordinate conversion interface is called to convert the mouse position coordinates into the target latitude and longitude coordinates.
[0027] The map engine has integrated an SDK and completed initial configuration. When a mouse event is triggered, the screen coordinates (usually x and y pixel values, with the top-left corner of the container as the origin) of the mouse relative to the map container are obtained through the event object corresponding to the mouse position coordinates (such as JavaScript's MouseEvent). The map engine's screen coordinate to latitude / longitude coordinate conversion interface is called, passing in the screen coordinates x and y and current map state parameters (such as map zoom level, current view center point latitude and longitude, container size, etc.). Internally, the interface uses the map engine's projection algorithm (such as Mercator projection) to convert the screen pixel coordinates inversely to latitude / longitude coordinates in the geographic coordinate system. During the conversion, the coordinate mapping relationship is corrected based on the current map zoom level to eliminate the impact of view zoom on coordinate accuracy. After the interface call is completed, the conversion result is received through a callback function or return value. The result is then validated (e.g., latitude / longitude range validity check). Once the validation is successful, the target latitude / longitude coordinates corresponding to the target location are obtained.
[0028] Step S102: Based on the target latitude and longitude coordinates, obtain the target road segment to which the target location belongs, and obtain the latitude and longitude coordinates and station numbers of the endpoints of the target road segment.
[0029] In the road network space, all highways are pre-divided into multiple road segments. For each road segment, a corresponding latitude and longitude region is set according to its location, and a corresponding latitude and longitude boundary is set for each latitude and longitude region. In this step, the target latitude and longitude coordinates are compared with the preset latitude and longitude boundaries to determine the latitude and longitude region where the target latitude and longitude coordinates are located. Further, based on the latitude and longitude region where the target latitude and longitude coordinates are located, the target road segment to which the target location belongs can be determined. Further, based on pre-stored data, the pre-stored endpoint latitude and longitude coordinates and endpoint station numbers corresponding to the road segment endpoints are obtained. Here, the target road segment is a line segment structure, so it includes two endpoints. In this embodiment, either endpoint can be selected as the road segment endpoint, and its corresponding endpoint latitude and longitude coordinates and endpoint station numbers can be obtained. In some other embodiments of this application, for example, the endpoint with a smaller distance from the target location can be selected as the road segment endpoint, or the endpoint with a smaller / larger station number can be selected as the road segment endpoint, etc.
[0030] Step S103: Calculate the target distance between the target location and the end point of the road segment based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates.
[0031] In the road network space, vector data, stationing data, and latitude and longitude coordinate system data of the highway network are collected in advance. All highways are divided into multiple road segments, and road segments are associated with corresponding stationing information through node_id to form a structured road network database. At the same time, the integrated road network vector data is converted into GeoJSON format, containing geometric information, attribute information, and other data of each road segment element, and loaded into the layer of the front-end map engine.
[0032] In this step, after determining the target's latitude and longitude coordinates, the `lineSliceAlong` method of `Turf.js` is called to obtain all vector road segment data between the target location and the road segment endpoints from the road network space, based on the target's latitude and longitude coordinates and the endpoint's latitude and longitude coordinates. The `length` method of `Turf.js` is then called to convert each vector road segment data into a `LineString` object. The length of each vector road segment is calculated using the Haversine formula or the Vincenty formula. Finally, the target distance is obtained by summing all the vector road segment lengths.
[0033] Specifically, the `lineSliceAlong` function slices a new road segment along the complete road segment (LineString object) provided by the road network space, starting from the segment endpoint and extending to the target location. It then creates a new GeoJSON object based on this new segment (containing all vector road segment data between the target location and the segment endpoint). This new GeoJSON object only contains the geographic data from the original segment endpoint to the mouse hover point. Further, the `length` function first ensures that the new GeoJSON object is of type LineString or MultiLineString. If not, it converts it to a LineString object. Then, the `length` function iterates through each point in this LineString, calculating the distance between every two adjacent points. Since the Earth is a sphere, this embodiment uses the Haversine formula or Vincenty formula (distance = 2 × R × arcsin(√[sin...)). 2 (Δφ / 2)+cosφ1·cosφ2·sin 2 (Δλ / 2)]), R: Earth radius, Δφ: latitude difference, Δλ: longitude difference) calculate the length of each vector road segment. Finally, add up the calculated distances between all adjacent points to get the total length of the entire intercepted line segment, which is the target distance between the target location and the end point of the road segment.
[0034] Step S104: Calculate the target station number corresponding to the target location based on the target distance and the endpoint station number.
[0035] In the road network space, for any road segment, its station number gradually increases / decreases from one end to the other. Based on this, this step first obtains the station number increment / decrement rules from the road segment endpoint to the target location, including the gradual increase / decrease, the length of the unit distance, and the numerical increase / decrease per unit distance. Then, based on the increment / decrement rules and the target distance, the increment / decrement amount of the target station number is determined. Finally, the target station number is calculated based on the endpoint station number and the increment / decrement amount. For example, for a certain road segment, the station numbers of endpoints S and E are S=K0+000 and E=K50+000 respectively. Then the target station number corresponding to the target location is S+D / K or ED / K (D is the target distance, K is the unit length). For example, if D is the target distance from the target location to endpoint S, then the target station number is S+D / K. When D=1250 meters and K=1000 meters, the target station number is K0+000+1.250=K1+250. Another example is that if D is the target distance from the target location to endpoint E, then the target station number is SD / K, and the station number is K50+000-1.250=K48+750.
[0036] Step S105: Display the target road segment, target latitude and longitude coordinates, and target station number.
[0037] Compared with related technologies, the highway management method based on road network space provided in this application, after determining the target location in the road network space, further determines the target latitude and longitude coordinates corresponding to the target location. Then, based on the target latitude and longitude coordinates and the latitude and longitude boundaries of the areas where each road segment is located stored in the road network space, the target road segment to which the target location belongs is determined. Subsequently, the latitude and longitude coordinates and station numbers of the endpoints of the target road segment are obtained. By calculating the target distance between the target location and the endpoint of the road segment based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates, the target distance is calculated based on the target distance and the endpoint station number. Thus, the target road segment, target latitude and longitude coordinates, and target station number corresponding to the target location can be accurately determined and displayed. This achieves the technical effect of quickly and accurately determining the latitude and longitude coordinates and corresponding station numbers of the target location, thereby improving the efficiency and refinement of highway management.
[0038] Please refer to Figure 2 Another embodiment of this application also provides a highway management method based on road network space, including: Step S201: Obtain the target location in the road network space and determine the target latitude and longitude coordinates corresponding to the target location.
[0039] Step S202: Based on the target latitude and longitude coordinates, obtain the target road segment to which the target location belongs, and obtain the latitude and longitude coordinates and station numbers of the endpoints of the target road segment.
[0040] Step S203: Calculate the target distance between the target location and the end point of the road segment based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates.
[0041] Step S204: Calculate the target station number corresponding to the target location based on the target distance and the endpoint station number.
[0042] It is understood that steps S201 to S204 in this embodiment are largely the same as steps S101 to S104 in the previous embodiment. For details, please refer to the specific description in the previous embodiment.
[0043] Step S205: Determine whether there is a first camera that corresponds to the target station number. If yes, proceed to step S206; otherwise, proceed to step S207.
[0044] Specifically, multiple correspondences between station numbers and cameras are pre-stored in the road network space. In this step, a search is performed in the pre-stored correspondences to determine whether a first camera corresponding to the target station number exists. If it exists, step S206 is executed; otherwise, step S207 is executed.
[0045] Step S206: Display the target road segment, target latitude and longitude coordinates, target station number, and the monitoring screen of the first camera.
[0046] Step S207: Obtain the target shooting area based on the target latitude and longitude coordinates, and determine whether there is a second camera in the target monitoring area. If so, proceed to step S208.
[0047] Specifically, multiple cameras and their corresponding latitude and longitude coordinates are pre-stored in the road network space. In this step, a circle is drawn with the target latitude and longitude coordinates as the center and a preset radius to obtain the target monitoring area (or other methods can be used, such as extending a preset distance to both sides of the road based on the set target location). Based on the pre-stored camera latitude and longitude coordinates, it is determined whether there is a second camera in the target monitoring area. If there is a second camera, step S208 is executed.
[0048] Furthermore, if there are multiple second cameras in the target shooting area, a specific second camera can be selected to execute step S208 based on parameters such as the distance from the target location and the camera resolution.
[0049] Step S208: Display the target road segment, target latitude and longitude coordinates, target station number, and the monitoring screen of the second camera.
[0050] Compared with related technologies, the road management method based on road network space provided in this embodiment, on the basis of the aforementioned embodiments, additionally obtains the corresponding first or second camera according to the target station number and target latitude and longitude coordinates, and displays the monitoring images of the first or second camera, which allows command personnel to have a more comprehensive and efficient grasp of the road status at the target location, providing richer information support for maintenance management, emergency response and other work.
[0051] Please refer to Figure 3 Another embodiment of this application also provides a highway management method based on road network space, including: Step S301: Obtain the target location in the road network space and determine the target latitude and longitude coordinates corresponding to the target location.
[0052] Step S302: Based on the target latitude and longitude coordinates, obtain the target road segment to which the target location belongs, and obtain the latitude and longitude coordinates and station numbers of the endpoints of the target road segment.
[0053] Step S303: Calculate the target distance between the target location and the end point of the road segment based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates.
[0054] Step S304: Calculate the target station number corresponding to the target location based on the target distance and the endpoint station number.
[0055] It is understood that steps S301 to S304 in this embodiment are largely the same as steps S101 to S104 in the previous embodiment. For details, please refer to the specific description in the previous embodiment.
[0056] Step S305: Determine whether there are road supporting facilities at the target location based on the target's latitude and longitude coordinates. If there are road supporting facilities at the target location, display the road supporting facilities.
[0057] Specifically, highway supporting facilities include various highway-related information parameters such as toll stations, tunnels, service areas, bridges, and slopes. The latitude and longitude coordinates of these supporting facilities are pre-stored in the road network space. In this step, the target's latitude and longitude coordinates are compared with the pre-stored coordinates of the supporting facilities to determine if highway supporting facilities exist at the target location. If they do exist, the relevant information is displayed.
[0058] Furthermore, within the road network space, highway infrastructure data is stored in a JSON file named "zdss.json," where the `type` field distinguishes infrastructure types. When the front-end initializes the current page, it retrieves the "zdss.json" data using `axios.get` and stores it in a variable. When displaying information related to highway infrastructure, the data is reorganized based on different infrastructure types and subcategories within the pre-stored data, and different icons are set. For example, tunnels are distinguished as key tunnels and general tunnels, with key tunnels further differentiated into extra-long and extra-long tunnels. Toll stations are selected by default and displayed hierarchically.
[0059] Furthermore, in this embodiment, it is also possible to acquire pre-stored surrounding cameras associated with highway supporting facilities and display the monitoring images of the surrounding cameras.
[0060] Step S306: Display the target road segment, target latitude and longitude coordinates, and target station number.
[0061] Compared with related technologies, the road management method based on road network space provided in this embodiment, on the basis of the aforementioned embodiments, additionally determines whether there are road supporting facilities at the target location based on the target's latitude and longitude coordinates, and displays relevant data of road supporting facilities and monitoring images of associated surrounding cameras. This allows command personnel to have a more comprehensive and efficient grasp of the road supporting facilities at the target location, providing richer information support for maintenance management, emergency response and other work.
[0062] To better implement the road network space-based highway management method in the embodiments of this application, based on the road network space-based highway management method, correspondingly, as follows: Figure 4As shown in the illustration, this application also provides a highway management platform based on road network space, which includes: The latitude and longitude acquisition module 401 is used to acquire the target location in the road network space and determine the target latitude and longitude coordinates corresponding to the target location. The road segment acquisition module 402 is used to acquire the target road segment to which the target location belongs based on the target latitude and longitude coordinates, and to acquire the endpoint latitude and longitude coordinates and endpoint station numbers of the road segment endpoints; The station number acquisition module 403 is used to calculate the target distance between the target location and the end point of the road segment based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates, and to calculate the target station number corresponding to the target location based on the target distance and the endpoint station number. Display module 404 is used to display the target road segment, target latitude and longitude coordinates, and target station number.
[0063] The road management platform based on road network space provided in the above embodiments can realize the technical solutions described in the above embodiments of the road management method based on road network space. The specific implementation principles of each module or unit can be found in the corresponding content in the above embodiments of the road management method based on road network space, and will not be repeated here.
[0064] Please refer to Figure 5 This application also provides an electronic device 500. The electronic device 500 includes a processor 501, a memory 502, and a display 503. Figure 5 Only some components of the electronic device 500 are shown, but it should be understood that it is not required to implement all the components shown, and more or fewer components may be implemented instead.
[0065] In some embodiments, processor 501 may be a central processing unit (CPU), microprocessor, or other data processing chip, used to run program code stored in memory 502 or process data, such as the road management method based on road network space in this application.
[0066] In some embodiments, processor 501 may be a single server or a group of servers. The server group may be centralized or distributed. In some embodiments, processor 501 may be local or remote. In some embodiments, processor 501 may be implemented on a cloud platform. In one embodiment, the cloud platform may include a private cloud, public cloud, hybrid cloud, community cloud, distributed cloud, inter-cloud, multi-cloud, or any combination thereof.
[0067] In some embodiments, memory 502 may be an internal storage unit of electronic device 500, such as a hard disk or memory of electronic device 500. In other embodiments, memory 502 may also be an external storage device of electronic device 500, such as a plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, etc. equipped on electronic device 500.
[0068] Furthermore, the memory 502 may include both internal storage units of the electronic device 500 and external storage devices. The memory 502 is used to store application software and various types of data installed on the electronic device 500.
[0069] In some embodiments, display 503 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, or an OLED (Organic Light-Emitting Diode) touchscreen. Display 503 is used to display information from electronic device 500 and to display a visual user interface. Components 501-503 of electronic device 500 communicate with each other via a system bus.
[0070] In one embodiment, when processor 501 executes a road network space-based highway management program in memory 502, the following steps can be implemented: Obtain the target location in the road network space and determine the target latitude and longitude coordinates corresponding to the target location; Based on the target's latitude and longitude coordinates, obtain the target road segment to which the target location belongs, and obtain the latitude and longitude coordinates and station numbers of the road segment's endpoints; The target distance between the target location and the end point of the road segment is calculated based on the target's latitude and longitude coordinates and the endpoint's latitude and longitude coordinates. The target station corresponding to the target location is calculated based on the target distance and the endpoint station number. Displays the target road segment, target latitude and longitude coordinates, and target station number.
[0071] It should be understood that when the processor 501 executes the road network space-based highway management program in the memory 502, in addition to the functions mentioned above, it can also perform other functions, as detailed in the description of the corresponding method embodiments above.
[0072] Furthermore, this application does not specifically limit the type of electronic device 500 mentioned in the embodiments. Electronic device 500 can be a mobile phone, tablet computer, personal digital assistant (PDA), wearable device, laptop computer, or other portable electronic device. Exemplary embodiments of portable electronic devices include, but are not limited to, portable electronic devices running iOS, Android, Microsoft, or other operating systems. The aforementioned portable electronic device can also be other portable electronic devices, such as a laptop computer with a touch-sensitive surface (e.g., a touch panel). It should also be understood that in some other embodiments of this application, electronic device 500 may not be a portable electronic device, but rather a desktop computer with a touch-sensitive surface (e.g., a touch panel).
[0073] Accordingly, this application also provides a computer-readable storage medium for storing computer-readable programs or instructions. When the programs or instructions are executed by a processor, they can implement the steps or functions of the road management method based on road network space provided in the above-described method embodiments.
[0074] Those skilled in the art will understand that all or part of the processes of the methods described in the above embodiments can be implemented by a computer program instructing related hardware (such as a processor, controller, etc.), and the computer program can be stored in a computer-readable storage medium. The computer-readable storage medium may be a disk, optical disk, read-only memory, or random access memory, etc.
[0075] The above provides a detailed description of the highway management method, platform, electronic equipment, and storage medium based on road network space provided in this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A highway management method based on road network space, characterized in that, include: Obtain the target location in the road network space and determine the target latitude and longitude coordinates corresponding to the target location; Based on the target's latitude and longitude coordinates, obtain the target road segment to which the target location belongs, and obtain the latitude and longitude coordinates and station numbers of the road segment's endpoints; The target distance between the target location and the endpoint of the road segment is calculated based on the target's latitude and longitude coordinates and the endpoint's latitude and longitude coordinates. The target station number corresponding to the target location is calculated based on the target distance and the endpoint station number. The target road segment, the target latitude and longitude coordinates, and the target station number are displayed.
2. The highway management method based on road network space according to claim 1, characterized in that, The step of calculating the target distance between the target location and the road segment endpoint based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates includes: The `lineSliceAlong` method of `Turf.js` is called to obtain all vector road segment data between the target location and the road segment endpoint location from the road network space based on the target latitude and longitude coordinates and the endpoint latitude and longitude coordinates. Call the length method in Truf.js to convert the data of each vector road segment into a LineString object; Calculate the length of each vector segment using the Haversine formula or the Vincenty formula. The target distance is obtained by summing the lengths of all the vector road segments.
3. The highway management method based on road network space according to claim 1, characterized in that, The step of calculating the target station corresponding to the target location based on the target distance and the endpoint station includes: Obtain the chainage increment / decrement rules from the endpoint of the road segment to the target location; The increment / decrement amount of the target station number is determined according to the increment / decrement rule and the target distance; The target station number is calculated based on the endpoint station number and the increment / decrement amount.
4. The highway management method based on road network space according to claim 1, characterized in that, The step of obtaining the target location in the road network space and determining the target latitude and longitude coordinates corresponding to the target location includes: Display a road map using a map engine, and in response to a mouse trigger event, obtain the mouse position coordinates corresponding to the mouse trigger event; The screen coordinate to latitude and longitude coordinate interface of the map engine is called to convert the mouse position coordinates into the target latitude and longitude coordinates.
5. The highway management method based on road network space according to claim 1, characterized in that, Also includes: Determine whether there is a first camera that corresponds to the target station number; If the first camera is present, display the monitoring footage from the first camera; If the first camera does not exist, obtain the target monitoring area based on the target latitude and longitude coordinates, and determine whether a second camera exists within the target monitoring area; If the second camera is present, display the monitoring footage from the second camera.
6. The highway management method based on road network space according to claim 1, characterized in that, Also includes: Determine whether there are road supporting facilities at the target location based on the target's latitude and longitude coordinates; If the highway infrastructure exists at the target location, the highway infrastructure will be displayed.
7. The highway management method based on road network space according to claim 6, characterized in that, If the highway infrastructure exists at the target location, it also includes: The system acquires the surrounding cameras associated with the highway infrastructure and dynamically loads and displays the monitoring footage from those cameras.
8. A highway management platform based on road network space, characterized in that, include: The latitude and longitude acquisition module is used to acquire the target location in the road network space and determine the target latitude and longitude coordinates corresponding to the target location; The road segment acquisition module is used to acquire the target road segment to which the target location belongs based on the target latitude and longitude coordinates, and to acquire the endpoint latitude and longitude coordinates and endpoint station numbers of the road segment endpoints; A station number acquisition module is used to calculate the target distance between the target location and the end point of the road segment based on the target latitude and longitude coordinates and the end point latitude and longitude coordinates, and to calculate the target station number corresponding to the target location based on the target distance and the end point station number; The display module is used to display the target road segment, the target latitude and longitude coordinates, and the target station number.
9. An electronic device, characterized in that, Including memory and processor, among which, The memory is used to store programs; The processor, coupled to the memory, is used to execute the program stored in the memory to implement the steps in the road network space-based highway management method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, Used to store computer-readable programs or instructions, which, when executed by a processor, can implement the steps in the road network space-based highway management method according to any one of claims 1 to 7.