CN111223386A - Electronic map lamp marking method, terminal and storage medium - Google Patents

Electronic map lamp marking method, terminal and storage medium Download PDF

Info

Publication number
CN111223386A
CN111223386A CN202010051953.6A CN202010051953A CN111223386A CN 111223386 A CN111223386 A CN 111223386A CN 202010051953 A CN202010051953 A CN 202010051953A CN 111223386 A CN111223386 A CN 111223386A
Authority
CN
China
Prior art keywords
labeling
lamp
marking
electronic map
end point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010051953.6A
Other languages
Chinese (zh)
Inventor
陈克峰
张兆龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Zk-Link Technology Co ltd
Original Assignee
Shenzhen Zk-Link Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Zk-Link Technology Co ltd filed Critical Shenzhen Zk-Link Technology Co ltd
Priority to CN202010051953.6A priority Critical patent/CN111223386A/en
Publication of CN111223386A publication Critical patent/CN111223386A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09BEDUCATIONAL OR DEMONSTRATION APPLIANCES; APPLIANCES FOR TEACHING, OR COMMUNICATING WITH, THE BLIND, DEAF OR MUTE; MODELS; PLANETARIA; GLOBES; MAPS; DIAGRAMS
    • G09B29/00Maps; Plans; Charts; Diagrams, e.g. route diagram
    • G09B29/003Maps
    • G09B29/006Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes
    • G09B29/007Representation of non-cartographic information on maps, e.g. population distribution, wind direction, radiation levels, air and sea routes using computer methods

Abstract

The invention discloses an electronic map lamp marking method, which comprises the following steps: when the lamp marking operation on the electronic map is detected, a marking path corresponding to the lamp marking operation is obtained; determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path; and respectively marking the lamps at corresponding marking positions, wherein the identification information corresponding to the lamps at different marking positions is different. The invention also discloses a terminal and a computer readable storage medium. According to the invention, by acquiring the marking path and marking each lamp at the corresponding marking position according to the marking path and the lamp data, multi-point automatic batch marking of the lamps of the electronic map at a single road section or multiple road sections is realized, the workload of a user is reduced, and the operation efficiency and the intellectualization are improved.

Description

Electronic map lamp marking method, terminal and storage medium
Technical Field
The invention relates to the technical field of computers, in particular to an electronic map lamp labeling method, a terminal and a storage medium.
Background
With the development of urban modernization, the number of street lamps is continuously increased, and the lamps are difficult to access to a network platform and to be marked on an electronic map. The current electronic map lamp labeling needs to be manually labeled on an electronic map one by one. Therefore, the existing technology easily causes the marking operation of the electronic map lamp to be complex, the workload is large, the efficiency is low, the intellectualization is lacked, and the operability of the user is not high.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide an electronic map lamp labeling method, a terminal and a computer readable storage medium, and aims to solve the technical problem that the labeling of the existing electronic map lamp needs to be manually labeled one by one.
In order to achieve the above object, the present invention provides a method for labeling an electronic map lamp, comprising the steps of:
when the lamp marking operation on the electronic map is detected, a marking path corresponding to the lamp marking operation is obtained;
determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path;
and respectively marking the lamps at corresponding marking positions, wherein the identification information corresponding to the lamps at different marking positions is different.
Optionally, the step of determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path includes:
acquiring the total length of the labeling path;
determining the spacing distance of each lamp according to the total length of the labeling path and the number of the lamps;
and determining the labeling position of each lamp according to the interval distance and the starting end point and the end point of the labeling path.
Optionally, the position at each interval of the interval distance from the starting end point is a marked position of one lamp.
Optionally, the step of determining the labeling position of each lamp according to the separation distance and the starting end point and the ending end point of the labeling path further includes:
the marking path comprises a plurality of sections, and when the sections are not on the same straight line, the starting end point is determined as the marking position of the lamp;
and sequentially determining a next marking position according to the determined previous marking position, the spacing distance and the residual length of the road section where the previous marking position is located until the next marking position is the end point so as to determine the marking position of each lamp.
Optionally, the step of determining a next labeling position according to the determined previous labeling position, the spacing distance, and the remaining length of the road segment where the previous labeling position is located in sequence includes:
acquiring a bending end point of the connection between the road section where the previous marked position is located and the next road section;
determining the remaining length of the road section where the previous marking position is located according to the determined previous marking position and the bending end point;
when the residual length is smaller than the spacing distance, determining the next marking position according to the difference value between the spacing distance and the residual length and the bending end point;
and after the determined next labeling position is updated to the previous labeling position, returning to the step of acquiring the bending end point of the connection between the road section where the previous labeling position is located and the next road section.
Optionally, after the step of labeling the lamps at the corresponding labeling positions, the method further includes:
acquiring identification information corresponding to each lamp;
and binding the identification information and the corresponding marking position.
Optionally, after the step of labeling the lamps at the corresponding labeling positions, the method further includes:
and after receiving fault information of the entity lamp, displaying a fault identifier of the corresponding fault lamp on the electronic map according to the fault information, wherein the fault information of the entity lamp is the fault information sent by the entity lamp at the geographical position corresponding to the electronic map.
Optionally, the step of displaying the fault identifier of the corresponding faulty lamp on the electronic map according to the fault information includes:
determining a fault position on the electronic map according to the fault information;
determining a corresponding fault lamp according to the fault position;
and displaying the fault identification of the fault lamp on the electronic map.
In order to achieve the above object, the present invention further provides a terminal, where the terminal includes a memory, a processor, and an electronic map lamp labeling program stored in the memory and capable of running on the processor, and when the electronic map lamp labeling program of the terminal is executed by the processor, the steps of the electronic map lamp labeling method of the terminal are implemented.
In addition, the invention also provides a computer readable storage medium, wherein the computer readable storage medium stores an electronic map lamp labeling program of the terminal device, and when the electronic map lamp labeling program of the terminal device is executed by a processor, the electronic map lamp labeling program of the terminal device realizes the steps of the electronic map lamp labeling method of the terminal device.
The embodiment of the invention provides an electronic map lamp labeling method, a terminal and a computer readable storage medium, wherein the method comprises the following steps: when the lamp marking operation on the electronic map is detected, a marking path corresponding to the lamp marking operation is obtained; determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path; and respectively marking the lamps at corresponding marking positions, wherein the identification information corresponding to the lamps at different marking positions is different. According to the invention, a user only needs to draw a marking path and set the number of lamps on the electronic map, so that the multi-point batch marking at equal intervals of the lamps on a single road section or a plurality of road sections of the electronic map can be realized, the display of marking points on the electronic map is more uniform, the workload of the user is reduced, and the operation efficiency and the intellectualization are improved.
Drawings
Fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a method for labeling an electronic map lamp according to the present invention;
FIG. 3 is a schematic flow chart of a second embodiment of a method for labeling an electronic map lamp according to the present invention;
FIG. 4 is a schematic flow chart of a third embodiment of a method for labeling an electronic map lamp according to the present invention;
FIG. 5 is a schematic flow chart of a fourth embodiment of a method for labeling an electronic map lamp according to the present invention;
fig. 6 is a schematic flow chart of a fifth embodiment of a method for labeling a lamp on an electronic map according to the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The main solution of the embodiment of the invention is as follows: when the lamp marking operation on the electronic map is detected, a marking path corresponding to the lamp marking operation is obtained; determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path; and respectively marking the lamps at corresponding marking positions, wherein the identification information corresponding to the lamps at different marking positions is different.
As shown in fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal of the embodiment of the invention can be a PC, and can also be a terminal device with an electronic map function, such as a smart phone, a tablet computer, a portable computer and the like.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU, a network interface 1004, a user interface 1003, a memory 1005, a communication bus 1002. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 does not constitute a limitation of the electronic map lamp tagging terminal, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
Referring to fig. 1, a memory 1005 as a computer storage medium may include an operating system, a network communication module, a user interface module, and an electronic map lamp labeling program.
In the terminal shown in fig. 1, the network interface 1004 is mainly used for connecting to a backend server and performing data communication with the backend server; the user interface 1003 is mainly used for connecting a client (user side) and performing data communication with the client; and the processor 1001 may be configured to call the electronic map lamp annotation program stored in the memory 1005, and perform the following operations:
when the lamp marking operation on the electronic map is detected, a marking path corresponding to the lamp marking operation is obtained;
determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path;
and respectively marking the lamps at corresponding marking positions, wherein the identification information corresponding to the lamps at different marking positions is different.
Further, the processor 1001 may call the electronic map lamp annotation program stored in the memory 1005, and further perform the following operations:
acquiring the total length of the labeling path;
determining the spacing distance of each lamp according to the total length of the labeling path and the number of the lamps;
and determining the labeling position of each lamp according to the interval distance and the starting end point and the end point of the labeling path.
Further, the processor 1001 may call the electronic map lamp annotation program stored in the memory 1005, and further perform the following operations:
the marking path comprises a plurality of sections, and when the sections are not on the same straight line, the starting end point is determined as the marking position of the lamp;
and sequentially determining a next marking position according to the determined previous marking position, the spacing distance and the residual length of the road section where the previous marking position is located until the next marking position is the end point so as to determine the marking position of each lamp.
Further, the processor 1001 may call the electronic map lamp annotation program stored in the memory 1005, and further perform the following operations:
acquiring a bending end point of the connection between the road section where the previous marked position is located and the next road section;
determining the remaining length of the road section where the previous marking position is located according to the determined previous marking position and the bending end point;
when the residual length is smaller than the spacing distance, determining the next marking position according to the difference value between the spacing distance and the residual length and the bending end point;
and after the determined next labeling position is updated to the previous labeling position, returning to the step of acquiring the bending end point of the connection between the road section where the previous labeling position is located and the next road section.
Further, the processor 1001 may call the electronic map lamp annotation program stored in the memory 1005, and further perform the following operations:
acquiring identification information corresponding to each lamp;
and binding the identification information and the corresponding marking position.
Further, the processor 1001 may call the electronic map lamp annotation program stored in the memory 1005, and further perform the following operations:
and after receiving fault information of the entity lamp, displaying a fault identifier of the corresponding fault lamp on the electronic map according to the fault information, wherein the fault information of the entity lamp is the fault information sent by the entity lamp at the geographical position corresponding to the electronic map.
Further, the processor 1001 may call the electronic map lamp annotation program stored in the memory 1005, and further perform the following operations:
determining a fault position on the electronic map according to the fault information;
determining a corresponding fault lamp according to the fault position;
and displaying the fault identification of the fault lamp on the electronic map.
Referring to fig. 2, the present invention provides a first embodiment of a method for labeling an electronic map lamp, including the following steps:
step S10, when a lamp marking operation on the electronic map is detected, a marking path corresponding to the lamp marking operation is obtained;
step S20, determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path;
and step S30, respectively marking the lamps at corresponding marking positions, wherein the identification information corresponding to the lamps at different marking positions is different.
The execution terminal of this embodiment may be a mobile terminal, a computer, a tablet computer, or a lamp monitoring terminal, and the execution terminal of this embodiment has an electronic map, and may draw a route and the like on the electronic map to form a labeling path. The following description will be given by taking an execution terminal as a mobile terminal.
Be equipped with lamps and lanterns mark APP or lamps and lanterns monitored control system on the mobile terminal of this embodiment, through will correspond the mark on the map with the lamps and lanterns on the actual highway section that the map corresponds in lamps and lanterns mark APP or lamps and lanterns monitored control system, realize showing the lamps and lanterns of actual highway section are annotated in the map, be convenient for to lamps and lanterns on the actual highway section are monitored in lamps and lanterns mark APP or lamps and lanterns monitored control system.
In the technical solution disclosed in this embodiment, the electronic map may specifically include various commercial maps, and the lamps are labeled by operating on the commercial maps.
The lamp marking operation can be a drawing operation on the electronic map, and therefore, when the drawing operation is carried out, the lamp marking operation detected on the electronic map is triggered. And after the trigger detection is determined, acquiring a corresponding labeling path, wherein the labeling path can be directly drawn on the electronic map by a user, or can be automatically drawn according to an end point after the end point is set by the user. It is understood that the labeling path may be determined by obtaining a start end point, an end point, and a bending end point of the drawn line segment, or by obtaining end points sequentially set by a user during the drawing process.
It can be understood that, after the labeling path is obtained, the labeling position can be determined according to the labeling path and the number of the lamps. The number of the lamps can be directly input by a user, and can also be obtained by the selection of the user in a database, wherein the database can be used for the user to select and obtain the lamp groups for setting a certain road of a certain city, and the lamp groups comprise lamp data such as the number of the lamps, the types of the lamps, display icons and the like.
It can be understood that the identification information corresponding to the lamp at different labeling positions is different, and the identification information is bound with the corresponding labeling position, and the mobile terminal can locate the labeling position of the lamp through the identification information. Therefore, after the lamps are respectively marked at the corresponding marked positions, the identification information corresponding to each lamp is obtained first, and then the identification information and the corresponding marked positions are bound. After the identification information and the corresponding marked position are bound, when the execution terminal monitors the lamps of the actual road section, the information of the lamps at the positions can be known by acquiring the identification information in the information sent by the entity lamps, and the information can be displayed through an electronic map.
Optionally, after the lamps are respectively marked at the corresponding marked positions, the identification information and the corresponding marked positions are bound, and the bound information is stored. The identification information comprises relevant information such as the code, the installation time, the responsible person, the working state and the like of the lamp. The working state or the code of the lamp can be obtained through the marking position, and the corresponding marking position can also be obtained through the code, so that the lamp corresponding to the code is positioned.
In this embodiment, when the lamp labeling platform detects the lamp labeling operation of the user on the electronic map, the lamp labeling platform firstly acquires a labeling path corresponding to the lamp labeling operation, then determines the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path, and finally labels each lamp on the corresponding labeling position respectively. The automatic labeling of the electronic map lamp can be realized only by acquiring the labeling path drawn by the user and the set lamp data, the user does not need to manually label the electronic map one by one, and the working efficiency is improved.
Further, referring to fig. 3, the present invention provides a second embodiment of a method for labeling lamps on an electronic map, and based on the embodiment shown in fig. 2, the step of determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path includes:
step S21, acquiring the total length of the labeling path;
step S22, determining the spacing distance of each lamp according to the total length of the marked path and the number of the lamps;
and step S23, determining the labeling position of each lamp according to the interval distance and the starting end point and the end point of the labeling path.
After a labeling path corresponding to the lamp labeling operation is obtained, obtaining a total length of the labeling path, where the total length is a distance from a starting end point to an end point along the labeling path, for example: if the labeling path is a single line segment, the total length is the distance from the starting endpoint to the end endpoint, and the total length can be obtained by calculating the coordinates from the starting endpoint to the end endpoint; if the labeling path is a broken line composed of multiple line segments, the total length is the sum of the lengths of the line segments, and the length of each line segment can be obtained in a single line segment length mode. The calculation formula of the length of the single line segment is as follows:
Figure BDA0002370693360000081
in the above formula, R is the radius of the earth, X is the latitude of the endpoint, and Y is the longitude of the endpoint.
Thus. It can be understood that the total length of the polyline consisting of the multiple line segments is calculated by the following formula:
Lgeneral assembly=L1+L2+L3+…+Ln
The spacing distance is a distance between adjacent lamps, in this embodiment, the spacing distance is an equal division distance, and it can be understood that the spacing distance is a total length divided by the number of lamps, and the formula is:
D=S/(N-1),
and determining the spacing distance of each lamp, namely obtaining the equal division distance through the calculation.
And after the interval distance and the starting end point and the end point of the labeling path are obtained, determining the labeling position of each lamp. It is understood that during the annotation process, the starting end point is the first annotated position and the ending end point is the last annotated position. Specifically, the electronic map labeling method starts from a labeling starting end point, positions at intervals of the interval distance are labeling positions of one lamp until a labeling end point is reached, and all labeling positions of the lamp are determined. For example: and under the condition that the labeling path is a straight line, determining a labeling position from the starting endpoint at intervals of the interval distance until reaching the end endpoint.
The determining of the labeling position of each lamp may be obtained by calculating the longitude and latitude of the labeling position, for example: the starting end point and the end point of the labeling path are (X1, Y1) and (X2, Y2), respectively, the lamp to be labeled is the nth lamp, and the distance from the lamp to be labeled to the starting end point of the labeling path is d, then the coordinates of the labeling position can be determined:
Figure BDA0002370693360000091
it can be understood that, according to the above calculation manner, the labeling position of each lamp can be determined according to the separation distance and the starting end point and the ending end point of the labeling path.
In this embodiment, after the labeling path corresponding to the lamp labeling operation is obtained, the total length of the labeling path is obtained, the interval distance of each lamp is determined according to the total length of the labeling path and the number of the lamps, and the labeling position of each lamp is determined according to the interval distance and the starting end point and the ending end point of the labeling path, so that the labeling position of each lamp is determined in an electronic map according to the obtained labeling path and lamp data, and the labeling points are displayed on the electronic map more uniformly in an equal division manner, so that the operation is simple and intelligent.
Further, referring to fig. 4, the present invention provides a third embodiment of a method for labeling electronic map lamps, and based on the embodiment shown in fig. 3, the step of determining the labeling position of each lamp according to the separation distance and the starting end point and the ending end point of the labeling path further includes:
step S231, when the labeling path comprises a plurality of sections and the sections are not on the same straight line, determining the starting endpoint as the labeling position of the lamp;
and step S232, determining a next marking position according to the determined previous marking position, the spacing distance and the remaining length of the road section where the previous marking position is located in sequence until the next marking position is the end point, so as to determine the marking position of each lamp.
As can be seen from the embodiment shown in fig. 3, in the labeling process, the electronic map labeling method starts from the labeling start end point, and each position separated by the interval distance is the labeling position of one lamp, optionally, if the labeling path includes multiple segments, and the multiple segments are not on the same straight line, that is, the labeling path is a broken line, the labeling position is determined according to the determined previous labeling position, the interval distance, and the remaining length of the segment where the previous labeling position is located. Therefore, it can be understood that the former labeling position is a previous labeling position of the labeling position to be determined, and the next labeling position is the labeling position to be determined, for example: after the starting end point is determined as a first marking position, a second marking position needs to be determined, the first marking position is a previous marking position, and the second marking position needs to be determined as a next marking position.
The remaining length of the road section where the previous marking position is located can be obtained by calculating the distance from the previous marking position to the end point of the road section where the previous marking position is located. It is understood that the separation distance is an equal division of the total length, and if the labeling path is a polyline, the starting end point is the first labeled position, and the ending end point is the last labeled position. Therefore, the marking position of each lamp is determined until the next marking position is the end point.
In this embodiment, the position at each interval from the starting end point is the labeling position of one lamp, if the labeling path includes multiple segments, and the multiple segments are not on the same straight line, the starting end point is determined as the labeling position of the lamp, and then the next labeling position is determined in sequence according to the determined previous labeling position, the interval distance and the remaining length of the segment where the previous labeling position is located until the next labeling position is the end point, so as to determine the labeling position of each lamp. According to the method, the next marking position is determined according to the previous marking position, the spacing distance and the remaining length of the road section where the previous marking position is located, so that the electronic map can be automatically marked under the condition of straight lines or broken lines, the operation is intelligent, and the operation efficiency is improved.
Further, referring to fig. 5, the fourth embodiment of the method for labeling a lamp on an electronic map according to the present invention, based on the embodiment shown in fig. 4, the step of sequentially determining a next labeling position according to the determined previous labeling position, the determined separation distance, and the remaining length of the road segment where the previous labeling position is located includes:
step S2321, a bending end point of the connection between the road section where the previous marked position is located and the next road section is obtained;
step S2322, determining the remaining length of the road section where the previous marking position is located according to the determined previous marking position and the bending end point;
step S2323, when the residual length is smaller than the spacing distance, determining the next marking position according to the difference between the spacing distance and the residual length and the bending end point;
step S2324, after the determined next labeling position is updated to the previous labeling position, the process returns to the step S2321.
If the marked path comprises a plurality of sections of road, before determining the next marked position, acquiring a bending end point of the section of the previous marked position connected with the next section of road, wherein the bending end point is a connection point of the section of the previous marked position and the next section of road. For example: and if the road section marked with the position a is A, the next road section is B, and the connection point of the road section A and the road section B is c1, c1 is the bending endpoint, and the distance from the marked position a to the bending endpoint c1 is the residual length.
It can be understood that when the remaining length is less than the spacing distance, that is, the distance between the bending end point of the remaining length and the previous labeled position is less than the spacing distance, it may be impossible to determine the next labeled position on the road section where the previous labeled position is located, and therefore, the next labeled position needs to be determined according to the difference between the spacing distance and the remaining length and the bending end point. For example: the road section where the marking position a is located is A, the next road section is B, the connection point of the road section A and the road section B is c1, c1 is the bending end point, the remaining length of the road section A is smaller than the spacing distance, the marking position of the next marking position B can be determined only when the total length of the next road section B and the remaining length is larger than the spacing distance, and the total length is the sum of the length of the next road section B and the length from the bending end point c1 to the marking position a.
Optionally, in this embodiment, if the sum of the length of the next road segment and the remaining length is still smaller than the spacing distance, it is necessary to satisfy that the sum of the length of the subsequent road segment and the remaining length is larger than the spacing distance, so that the labeling position can be determined.
Specifically, the marked position may be determined by a difference between the separation distance and the remaining length, a bending end point of the road segment where the marked position is located and a previous road segment, and a bending end point of the road segment where the marked position is located and a subsequent road segment, and the coordinate of the marked position may be obtained by the calculation formula of the second embodiment:
Figure BDA0002370693360000111
wherein (X1, Y1) and (X2, Y2) are respectively a bending end point of the located road section and the previous road section and a bending end point of the located road section and the subsequent road section, L is a length of the located road section, and d is a difference value between the spacing distance and the remaining length.
It can be understood that, after the next labeling position is determined, the next labeling position is changed into the previous labeling position, and the step of determining the labeling position is continuously executed until the next labeling position is the end point, and the lamp labeling is ended.
In this embodiment, if the labeled path includes multiple segments, a bending end point at which the segment where the previous labeled position is located is connected to the next segment is obtained, a remaining length of the segment where the previous labeled position is located is determined according to the determined previous labeled position and the bending end point, when the remaining length is smaller than the spacing distance, a next labeled position is determined according to a difference between the spacing distance and the remaining length and the bending end point, and finally, after the determined next labeled position is updated to the previous labeled position, the step of obtaining the bending end point at which the segment where the previous labeled position is located is connected to the next segment is returned until the next labeled position is the end point. The automatic labeling of the lamps with the polygonal lines as the labeling paths is realized, and the intelligent labeling is simple and convenient.
Further, referring to fig. 6, the fifth embodiment of the method for labeling the lamps on the electronic map provided by the present invention, based on the embodiment shown in fig. 2, after the step of labeling each lamp on the corresponding labeling position, the method further includes:
step S40, after receiving the failure information of the entity lamp, displaying the failure identifier of the corresponding failure lamp on the electronic map according to the failure information, where the failure information of the entity lamp is the failure information sent by the entity lamp at the geographic location corresponding to the electronic map.
In this embodiment, the lamps marked on the electronic map correspond to the solid lamps at the geographic positions corresponding to the electronic map, that is, the solid lamps on the road correspond to the lamps marked on the electronic map. In order to facilitate monitoring of the entity lamps on the road, an information transmitting module is arranged in each entity lamp on the road, the transmitting module of each entity lamp on the road is connected with a server, the entity lamps acquire working states in real time or at regular time and judge whether the working states are abnormal, and when the working states are detected to be abnormal, the entity lamps are judged to be in fault, and fault information is sent to the server.
The server sends the fault information to the mobile terminal after receiving the fault information, the mobile terminal can determine a fault position on the electronic map according to the received fault information, then determines a corresponding fault lamp according to the fault position, and finally displays a fault identifier of the fault lamp on the electronic map. The fault position on the electronic map is a marking position of a lamp on the electronic map, the fault lamp is a lamp corresponding to the marking position, the fault identifier is used for distinguishing a normally working lamp from an abnormally working lamp, the fault identifier can be a color identifier of the lamp on the electronic map, if the fault lamp is displayed as a red identifier or a yellow identifier, and the like, the corresponding fault lamp is displayed on the electronic map by adopting the color identifier after fault information of an entity lamp is received; the fault mark may also be a specific mark symbol, such as a triangular mark or an exclamation mark, and after receiving the fault information of the entity lamp, the mark symbol is displayed on the fault lamp corresponding to the electronic map.
Specifically, for example: if the server receives fault information sent by lamps through the websocket, the server sends the fault information to the mobile terminal, the mobile terminal determines fault positions on the electronic map according to the fault information, then determines corresponding fault lamps according to the fault positions, and finally turns corresponding lamp icons on the electronic map to be red. The above list is only one or more embodiments for acquiring status data, and does not represent only this embodiment, and other embodiments similar to the present application also belong to the protection scope of the present application.
In this embodiment, the electronic map lamp labeling terminal may be further configured to receive and display a real-time working state of an actual lamp, and after receiving state data sent by each lamp, obtain identification information of the state data, determine a labeling position corresponding to the state data according to the identification information, and finally display the state data on the electronic map in a preset mode.
The invention also provides an electronic map lamp labeling terminal which comprises a memory, a processor and an electronic map lamp labeling program which is stored on the memory and can run on the processor, wherein the electronic map lamp labeling program is executed by the processor to realize the steps of the electronic map lamp labeling method.
In addition, an embodiment of the present invention further provides a computer-readable storage medium, where an electronic map lamp labeling program is stored on the computer-readable storage medium, and when executed by a processor, the electronic map lamp labeling program implements the steps of the electronic map lamp labeling method described above.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (10)

1. An electronic map lamp marking method is characterized by comprising the following steps:
when the lamp marking operation on the electronic map is detected, a marking path corresponding to the lamp marking operation is obtained;
determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path;
and respectively marking the lamps at corresponding marking positions, wherein the identification information corresponding to the lamps at different marking positions is different.
2. The electronic map lamp labeling method of claim 1, wherein the step of determining the labeling position of each lamp according to the labeling path and the number of lamps labeled on the labeling path comprises:
acquiring the total length of the labeling path;
determining the spacing distance of each lamp according to the total length of the labeling path and the number of the lamps;
and determining the labeling position of each lamp according to the interval distance and the starting end point and the end point of the labeling path.
3. The electronic map lamp labeling method of claim 2, wherein the position of the starting end point every interval of the interval distance is a labeling position of one lamp.
4. The electronic map lamp labeling method of claim 2, wherein the step of determining the labeling position of each lamp according to the separation distance and the starting end point and the ending end point of the labeling path further comprises:
the marking path comprises a plurality of sections, and when the sections are not on the same straight line, the starting end point is determined as the marking position of the lamp;
and sequentially determining a next marking position according to the determined previous marking position, the spacing distance and the residual length of the road section where the previous marking position is located until the next marking position is the end point so as to determine the marking position of each lamp.
5. The method for labeling the electronic map lamp as claimed in claim 4, wherein the step of sequentially determining the next labeling position according to the determined previous labeling position, the spacing distance and the remaining length of the road segment where the previous labeling position is located comprises the steps of:
acquiring a bending end point of the connection between the road section where the previous marked position is located and the next road section;
determining the remaining length of the road section where the previous marking position is located according to the determined previous marking position and the bending end point;
when the residual length is smaller than the spacing distance, determining the next marking position according to the difference value between the spacing distance and the residual length and the bending end point;
and after the determined next labeling position is updated to the previous labeling position, returning to the step of acquiring the bending end point of the connection between the road section where the previous labeling position is located and the next road section.
6. The electronic map lamp labeling method of claim 1, wherein after the step of labeling each lamp at the corresponding labeling position, the method further comprises:
acquiring identification information corresponding to each lamp;
and binding the identification information and the corresponding marking position.
7. The electronic map lamp labeling method of claim 1, wherein after the step of labeling each lamp at the corresponding labeling position, the method further comprises:
and after receiving fault information of the entity lamp, displaying a fault identifier of the corresponding fault lamp on the electronic map according to the fault information, wherein the fault information of the entity lamp is the fault information sent by the entity lamp at the geographical position corresponding to the electronic map.
8. The electronic map lamp labeling method of claim 7, wherein the step of displaying the fault identifier of the corresponding fault lamp on the electronic map according to the fault information comprises:
determining a fault position on the electronic map according to the fault information;
determining a corresponding fault lamp according to the fault position;
and displaying the fault identification of the fault lamp on the electronic map.
9. A terminal, characterized in that the terminal device comprises a memory, a processor and an electronic map lamp labeling program stored on the memory and operable on the processor, and when executed by the processor, the electronic map lamp labeling program of the terminal device realizes the steps of the electronic map lamp labeling method of the terminal device according to any one of claims 1 to 8.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon an electronic map light labeling program of a terminal device, which when executed by a processor implements the steps of the electronic map light labeling method of the terminal device according to any one of claims 1 to 8.
CN202010051953.6A 2020-01-16 2020-01-16 Electronic map lamp marking method, terminal and storage medium Pending CN111223386A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010051953.6A CN111223386A (en) 2020-01-16 2020-01-16 Electronic map lamp marking method, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010051953.6A CN111223386A (en) 2020-01-16 2020-01-16 Electronic map lamp marking method, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN111223386A true CN111223386A (en) 2020-06-02

Family

ID=70832392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010051953.6A Pending CN111223386A (en) 2020-01-16 2020-01-16 Electronic map lamp marking method, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN111223386A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183440A (en) * 2020-10-13 2021-01-05 北京百度网讯科技有限公司 Road information processing method and device, electronic equipment and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571194A (en) * 2010-12-20 2012-07-11 方正宽带网络服务股份有限公司 Method for real-timely monitoring optical cable resources, device and system adopting same
FR2974216A1 (en) * 2011-04-13 2012-10-19 Mobitee Method for restoring image sequence simulating overview of hole of golf course in e.g. user terminal, involves developing sequence from set of view points, set of aiming points and texture data of individual identified areas of aerial image
CN104317870A (en) * 2014-10-17 2015-01-28 国家电网公司 Geographic information processing method and device for streetlamp voltage transformation equipment
CN105701573A (en) * 2016-01-14 2016-06-22 深圳市科漫达智能管理科技有限公司 Route processing method based on GIS buffer area analysis and apparatus thereof
CN106020684A (en) * 2016-05-12 2016-10-12 北京京东尚科信息技术有限公司 Order placing method and order placing device of order
CN106409129A (en) * 2016-11-29 2017-02-15 北京掌行通信息技术有限公司 Road condition drawing method and road condition drawing device
CN106685091A (en) * 2017-03-08 2017-05-17 国网江苏省电力公司宿迁供电公司 Background power distribution monitoring system based on Google Earth
CN109215486A (en) * 2018-07-18 2019-01-15 平安科技(深圳)有限公司 Electronic map mark and display methods, device, terminal device and storage medium

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102571194A (en) * 2010-12-20 2012-07-11 方正宽带网络服务股份有限公司 Method for real-timely monitoring optical cable resources, device and system adopting same
FR2974216A1 (en) * 2011-04-13 2012-10-19 Mobitee Method for restoring image sequence simulating overview of hole of golf course in e.g. user terminal, involves developing sequence from set of view points, set of aiming points and texture data of individual identified areas of aerial image
CN104317870A (en) * 2014-10-17 2015-01-28 国家电网公司 Geographic information processing method and device for streetlamp voltage transformation equipment
CN105701573A (en) * 2016-01-14 2016-06-22 深圳市科漫达智能管理科技有限公司 Route processing method based on GIS buffer area analysis and apparatus thereof
CN106020684A (en) * 2016-05-12 2016-10-12 北京京东尚科信息技术有限公司 Order placing method and order placing device of order
CN106409129A (en) * 2016-11-29 2017-02-15 北京掌行通信息技术有限公司 Road condition drawing method and road condition drawing device
CN106685091A (en) * 2017-03-08 2017-05-17 国网江苏省电力公司宿迁供电公司 Background power distribution monitoring system based on Google Earth
CN109215486A (en) * 2018-07-18 2019-01-15 平安科技(深圳)有限公司 Electronic map mark and display methods, device, terminal device and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
李原野等: "基于Web的地图服务器的设计与实现 ", 《计算机工程与设计》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112183440A (en) * 2020-10-13 2021-01-05 北京百度网讯科技有限公司 Road information processing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
JP4774553B2 (en) MAP DISPLAY CONTROL DEVICE, MAP DISPLAY CONTROL METHOD, MAP DISPLAY CONTROL PROGRAM, AND INFORMATION RECORDING MEDIUM
JP5732340B2 (en) Map data distribution server, map data distribution system, and map data distribution method
JP2010515894A5 (en)
CN111708858A (en) Map data processing method, device, equipment and storage medium
JPH10300499A (en) Map information provision system
EP2995907B1 (en) Map data storage device, map data updating method, and computer program
US9228843B2 (en) System and method for providing a dynamic telematics dashboard
CN109522923B (en) Client address aggregation method, device and computer readable storage medium
CN110609878A (en) Interest point information display method, device, server and storage medium
CN105373297A (en) WiFi name collection method and device
KR101094171B1 (en) Method for providing traffic situation data using wireless communicaiton apparatus and navigation apparatus for excuting the method
US9401846B2 (en) Information handling system configuration identification tool and method
CN114237466A (en) Routing inspection point configuration method and device
CN106710272B (en) Method and device for providing real-time road condition information
CN111223386A (en) Electronic map lamp marking method, terminal and storage medium
CN111785153A (en) Engineering project display method, device and system based on electronic map
CN111930875A (en) Environment data query method, device, equipment and medium
CN105390015A (en) Real-time bus tracking method and device
JP4597096B2 (en) Information provision device
JP2013130872A (en) Map image providing system, map image providing method and program
CN112419542A (en) Road error correction reporting method, device, equipment and storage medium
CN115131978A (en) Method, device and equipment for displaying data and storage medium
CN112288071A (en) Electronic price tag display method, electronic price tag, and computer-readable storage medium
CN110780920B (en) Data processing method, device, client and medium
CN110647599A (en) Method and apparatus for displaying information

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200602