Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It will be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in the specification of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in this specification and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic view illustrating an application scenario of a method for fast address location according to an embodiment of the present invention. Fig. 2 is a schematic flowchart of a method for fast address location according to an embodiment of the present invention. The address rapid positioning method is applied to a server, the server and a terminal carry out data interaction, a standard address database is established in the server in advance, address description information of service data is obtained from the terminal, the address description information is matched with the standard address database to obtain matching scores of the address description information and different addresses, and finally the address with the highest matching score is used as the matching address of the address description information, so that the service data can be rapidly positioned according to the address description information, and the address positioning efficiency is improved.
Fig. 2 is a flowchart illustrating a method for fast address location according to an embodiment of the present invention. As shown in fig. 2, the method includes the following steps S110 to S130.
And S110, pre-establishing a standard address database.
In the present embodiment, the standard address database contains several addresses with known coordinate information. And a standard address database is established in advance, the standard address database comprises a plurality of addresses with known coordinate information, and the addresses with the known coordinate information are used for matching with subsequent address description information and realizing the quick positioning of specific service data.
Referring to fig. 3, in an embodiment, step S110 includes steps S111 and S112.
And S111, establishing a three-dimensional coordinate system in the target area in advance, and acquiring coordinate information of different addresses in the target area.
S112, associating the coordinate information with the addresses in a one-to-one mode, generating a standard address list, and enabling the standard address list to be displayed
In the present embodiment, a three-dimensional coordinate system is established according to the target area, and based on the three-dimensional coordinate system, specific coordinate information of all devices, passages, buildings, or the like within the target area can be determined. For example, when the target area is a rail transit station, a three-dimensional coordinate system is established according to a three-dimensional map of the rail transit station, specific coordinate information of fire fighting equipment, a storage room, a central control room, a customer service center, a fire fighting passage, an escape passage, a pipeline or a camera and the like in the rail transit station can be obtained, the coordinate information is in one-to-one correspondence with addresses to generate a standard address list, when the address description information is matched with the addresses in the standard address list, and if the address matching is successful, the coordinate information associated with the addresses is directly used as positioning coordinates of service data to perform rapid positioning.
S120, obtaining address description information of the service data, and matching the address description information with a standard address database to obtain matching scores of the address description information and different addresses.
In this embodiment, different service data carries corresponding address description information, a standard address list is stored in the quasi address database, coordinate information corresponding to different addresses one to one is recorded in the standard address list, the address description information is matched with all existing addresses in the standard address list, a matching score can be obtained, an address most matched with the address description information can be determined according to the matching score, and address matching is completed.
Referring to FIG. 4, in one embodiment, step S120 includes steps S121-S124.
And S121, acquiring address description information of the service data.
And S122, decomposing the address description information to obtain a plurality of standard descriptors and non-standard descriptors.
In this embodiment, the address description information of the service data may be a character string composed of a plurality of characters or symbols, a plurality of different characters or character groups may be obtained by decomposing the address description information, the characters or character groups may be divided into two types, one type of standard descriptor is a non-standard descriptor, the standard descriptor refers to an existing descriptor with a definite definition, and the non-standard descriptor is a descriptor without a definite definition. When the address description information is matched with the current address, the more the number of the standard description words is matched with is, the more the address description information is matched with the current address.
And S123, respectively matching the standard descriptors and the non-standard descriptors with addresses in a standard address database.
And S124, if the standard descriptors are successfully matched, obtaining a first matching score a1, if the non-standard descriptors are successfully matched, obtaining a second matching score a2, wherein the first matching score a1 is larger than the second matching score a2, and calculating according to all the first matching scores a1 and the second matching scores a2 to obtain a matching score A of the address description information and the corresponding address.
In this embodiment, the standard descriptors and the non-standard descriptors are respectively matched with addresses in a standard address database, and if the standard descriptors are successfully matched, a first matching score a1 is obtained; if the non-standard descriptors are successfully matched, a second matching score a2 is obtained. Specifically, the number of the standard descriptors and the number of the non-standard descriptors may be multiple, and thus, after the matching is finished, multiple first matching scores a1 and multiple second matching scores a2 may exist. The first matching score a1 is greater than the second matching score a2, i.e. the greater the number of matched standard descriptors, the higher the matching score representing the address.
Further, a matching score a of the address description information and the corresponding address is calculated according to all the first matching scores a1 and the second matching scores a2, wherein the matching score a is n a1+ m a2, n and m are natural numbers which are greater than or equal to 0, and n and m are not equal to 0 at the same time.
S130, taking the address with the highest matching score as the matching address of the address description information.
In this embodiment, different matching scores can be obtained by matching the same address description information with different addresses, and the higher the matching score is, the higher the matching degree of the address description information with the address is, so that the address with the highest matching score is the matching address.
According to the invention, the standard address database is established in advance, the address description information of the service data is acquired, the address description information is matched with the standard address database to obtain the matching scores of the address description information and different addresses, and finally, the address with the highest matching score is used as the matching address of the address description information, so that the service data is quickly positioned according to the address description information, and the address positioning efficiency is improved.
Fig. 5 is a flowchart illustrating a method for fast address location according to another embodiment of the present invention. As shown in fig. 5, the address fast positioning method of the present embodiment includes steps S210-S240. Steps S210 to S230 are similar to steps S110 to S130 in the above embodiments, and are not described herein again. The added step S240 in the present embodiment is explained in detail below.
And S240, associating the coordinate information of the matched address with corresponding business data, and generating a business positioning table.
In this embodiment, the coordinate information of the matching address is associated with the corresponding service data, and a service location table is generated, so that spatial coordinates can be respectively given to all the service data, and a convenient and efficient implementation manner is provided for quickly mapping the service data.
Fig. 6 is a schematic block diagram of an address fast-positioning apparatus provided in an embodiment of the present invention. As shown in fig. 6, the present invention also provides an address fast positioning apparatus corresponding to the above address fast positioning method. The device for fast address location comprises a unit for executing the method for fast address location, and can be configured in a desktop computer, a tablet computer, a portable computer, and other terminals. Specifically, referring to fig. 6, the address fast positioning apparatus includes a pre-establishing unit 10, an address matching unit 20, an address positioning unit 30 and a positioning associating unit 40.
A pre-establishing unit 10 for pre-establishing a standard address database.
In the present embodiment, the standard address database contains several addresses with known coordinate information. And a standard address database is established in advance, the standard address database comprises a plurality of addresses with known coordinate information, and the addresses with the known coordinate information are used for matching with subsequent address description information and realizing the quick positioning of specific service data.
Referring to fig. 7, in an embodiment, the pre-establishment unit 10 includes a coordinate acquisition module 11 and a data establishment module 12.
And the coordinate acquisition module 11 is configured to establish a three-dimensional coordinate system in the target area in advance, and acquire coordinate information of different addresses in the target area.
And the data establishing module 12 is configured to associate the coordinate information with the addresses in a one-to-one correspondence manner, generate a standard address list, and store the standard address list in a standard address database.
In the present embodiment, a three-dimensional coordinate system is established according to the target area, and based on the three-dimensional coordinate system, specific coordinate information of all devices, passages, buildings, or the like within the target area can be determined. For example, when the target area is a rail transit station, a three-dimensional coordinate system is established according to a three-dimensional map of the rail transit station, specific coordinate information of fire fighting equipment, a storage room, a central control room, a customer service center, a fire fighting passage, an escape passage, a pipeline or a camera and the like in the rail transit station can be obtained, the coordinate information is in one-to-one correspondence with addresses to generate a standard address list, when the address description information is matched with the addresses in the standard address list, and if the address matching is successful, the coordinate information associated with the addresses is directly used as positioning coordinates of service data to perform rapid positioning.
The address matching unit 20 is configured to obtain address description information of the service data, and match the address description information with a standard address database to obtain matching scores of the address description information and different addresses.
In this embodiment, different service data carries corresponding address description information, a standard address list is stored in the quasi address database, coordinate information corresponding to different addresses one to one is recorded in the standard address list, the address description information is matched with all existing addresses in the standard address list, a matching score can be obtained, an address most matched with the address description information can be determined according to the matching score, and address matching is completed.
Referring to fig. 8, in one embodiment, address matching unit 20 includes a description acquisition module 21, a description decomposition module 22, a description matching module 23, and a score calculation module 24.
The description obtaining module 21 is configured to obtain address description information of the service data.
And the description decomposition module 22 is used for decomposing the address description information to obtain a plurality of standard descriptors and non-standard descriptors.
In this embodiment, the address description information of the service data may be a character string composed of a plurality of characters or symbols, a plurality of different characters or character groups may be obtained by decomposing the address description information, the characters or character groups may be divided into two types, one type of standard descriptor is a non-standard descriptor, the standard descriptor refers to an existing descriptor with a definite definition, and the non-standard descriptor is a descriptor without a definite definition. When the address description information is matched with the current address, the more the number of the standard description words is matched with is, the more the address description information is matched with the current address.
And the description matching module 23 is used for matching the standard descriptors and the non-standard descriptors with addresses in the standard address database respectively.
And the score calculation module 24 is configured to obtain a first matching score a1 if the standard descriptors are successfully matched, obtain a second matching score a2 if the non-standard descriptors are successfully matched, obtain a first matching score a1 that is larger than the second matching score a2, and calculate a matching score a between the address description information and the corresponding address according to all the first matching scores a1 and the second matching scores a 2.
In this embodiment, the standard descriptors and the non-standard descriptors are respectively matched with addresses in a standard address database, and if the standard descriptors are successfully matched, a first matching score a1 is obtained; if the non-standard descriptors are successfully matched, a second matching score a2 is obtained. Specifically, the number of the standard descriptors and the number of the non-standard descriptors may be multiple, and thus, after the matching is finished, multiple first matching scores a1 and multiple second matching scores a2 may exist. The first matching score a1 is greater than the second matching score a2, i.e. the greater the number of matched standard descriptors, the higher the matching score representing the address.
Further, a matching score a of the address description information and the corresponding address is calculated according to all the first matching scores a1 and the second matching scores a2, wherein the matching score a is n a1+ m a2, n and m are natural numbers which are greater than or equal to 0, and n and m are not equal to 0 at the same time.
And the address positioning unit 30 is configured to use the address with the highest matching score as the matching address of the address description information.
In this embodiment, different matching scores can be obtained by matching the same address description information with different addresses, and the higher the matching score is, the higher the matching degree of the address description information with the address is, so that the address with the highest matching score is the matching address.
And the positioning association unit 40 is configured to associate the coordinate information of the matching address with corresponding service data, and generate a service positioning table.
In this embodiment, the coordinate information of the matching address is associated with the corresponding service data, and a service location table is generated, so that spatial coordinates can be respectively given to all the service data, and a convenient and efficient implementation manner is provided for quickly mapping the service data.
According to the invention, the standard address database is established in advance, the address description information of the service data is acquired, the address description information is matched with the standard address database to obtain the matching scores of the address description information and different addresses, and finally, the address with the highest matching score is used as the matching address of the address description information, so that the service data is quickly positioned according to the address description information, and the address positioning efficiency is improved.
It should be noted that, as can be clearly understood by those skilled in the art, the specific implementation processes of the address fast-positioning apparatus and each unit may refer to the corresponding descriptions in the foregoing method embodiments, and for convenience and brevity of description, no further description is provided herein.
Referring to fig. 9, fig. 9 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device 500 may be a terminal or a server, where the terminal may be an electronic device with a communication function, such as a smart phone, a tablet computer, a notebook computer, a desktop computer, a personal digital assistant, and a wearable device. The server may be an independent server or a server cluster composed of a plurality of servers.
Referring to fig. 9, the computer device 500 includes a processor 502, memory, and a network interface 505 connected by a system bus 501, where the memory may include a non-volatile storage medium 503 and an internal memory 504.
The non-volatile storage medium 503 may store an operating system 5031 and a computer program 5032. The computer programs 5032 comprise program instructions that, when executed, cause the processor 502 to perform a method for fast address location.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of the computer program 5032 in the non-volatile storage medium 503, and when the computer program 5032 is executed by the processor 502, the processor 502 can be enabled to perform an address fast positioning method.
The network interface 505 is used for network communication with other devices. Those skilled in the art will appreciate that the configuration shown in fig. 9 is a block diagram of only a portion of the configuration associated with the present application and does not constitute a limitation of the computer device 500 to which the present application may be applied, and that a particular computer device 500 may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
Wherein the processor 502 is adapted to run a computer program 5032 stored in the memory.
It should be understood that, in the embodiment of the present Application, the Processor 502 may be a Central Processing Unit (CPU), and the Processor 502 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. Wherein a general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will be understood by those skilled in the art that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program instructing associated hardware. The computer program includes program instructions, and the computer program may be stored in a storage medium, which is a computer-readable storage medium. The program instructions are executed by at least one processor in the computer system to implement the flow steps of the embodiments of the method described above.
Accordingly, the present invention also provides a storage medium. The storage medium may be a computer-readable storage medium.
The storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, which can store various computer readable storage media.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the examples described in connection with the embodiments disclosed herein may be embodied in electronic hardware, computer software, or combinations of both, and that the components and steps of the examples have been described in a functional general in the foregoing description for the purpose of illustrating clearly the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative. For example, the division of each unit is only one logic function division, and there may be another division manner in actual implementation. For example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented.
The steps in the method of the embodiment of the invention can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the invention can be merged, divided and deleted according to actual needs. In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a storage medium. Based on such understanding, the technical solution of the present invention essentially or partially contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.