Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
It should be understood that the terms "comprises" and "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 application herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification 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 the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic diagram of an application scenario of an address quick positioning method according to an embodiment of the present application. Fig. 2 is a schematic flow chart of an address quick positioning method according to an embodiment of the present application. The address rapid positioning method is applied to a server, the server performs data interaction with a terminal, a standard address database is established in the server in advance, address description information of service data is acquired 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 rapid positioning of the service data according to the address description information is realized, and the address positioning efficiency is improved.
Fig. 2 is a flow chart of a method for fast positioning an address according to an embodiment of the present application. As shown in fig. 2, the method includes the following steps S110 to S130.
S110, a standard address database is established in advance.
In this embodiment, the standard address database includes a plurality of addresses having known coordinate information. A standard address database is established in advance, wherein 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 quick positioning of specific service data.
Referring to fig. 3, in one embodiment, step S110 includes steps S111 and S112.
S111, a three-dimensional coordinate system is established in the target area in advance, and coordinate information of different addresses in the target area is acquired.
S112, associating the coordinate information with the addresses one by one to generate a standard address list, and associating the standard address list
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, channels, 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 channel, an escape channel, a pipeline or a camera and the like in the rail transit station can be obtained, the coordinate information is associated with addresses one by one and a standard address list is generated, address description information is sequentially matched with addresses on the standard address list when the addresses are matched, and if the addresses are successfully matched, the coordinate information associated with the addresses is directly used as a positioning coordinate of service data to be rapidly positioned.
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, the different service data carries corresponding address description information, the standard address list is stored in the standard address database, coordinate information corresponding to different addresses one by one is recorded in the standard address list, the address description information is matched with all the existing addresses in the standard address list, and a matching score can be obtained, and the address most matched with the address description information can be determined according to the matching score, so that address matching is completed.
Referring to FIG. 4, in one embodiment, step S120 includes steps S121-S124.
S121, acquiring address description information of service data.
S122, decomposing the address description information to obtain a plurality of standard description words and non-standard description words.
In this embodiment, the address description information of the service data may be a character string formed by a plurality of words or symbols, and by decomposing the address description information, a plurality of different characters or character groups may be obtained, where the characters or character groups may be divided into two types, one standard descriptor and the other non-standard descriptor, the standard descriptor refers to an existing descriptor with a definite definition, the non-standard descriptor is a descriptor without a definite definition, and specifically, when the standard descriptor and the non-standard descriptor are actually distinguished, a standard descriptor list may be established, and screening is performed through the standard descriptor list to obtain the standard descriptor and the non-standard descriptor. When matching, the more the standard descriptors are matched, the more the address description information is matched with the current address.
S123, matching the standard descriptor and the non-standard descriptor with addresses in the standard address database respectively.
S124, if the standard descriptor is successfully matched, a first matching score a1 is obtained, if the non-standard descriptor is successfully matched, a second matching score a2 is obtained, the first matching score a1 is larger than the second matching score a2, and a matching score A of the address description information and the corresponding address is obtained through calculation according to all the first matching scores a1 and the second matching scores a2.
In this embodiment, the standard descriptor and the non-standard descriptor are respectively matched with the addresses in the standard address database, and if the standard descriptor is successfully matched, a first matching score a1 is obtained; and if the non-standard descriptor is successfully matched, obtaining a second matching score a2. Specifically, the number of standard descriptors and non-standard descriptors may be plural, and thus, there may be plural first match scores a1 and plural second match scores a2 after the matching is ended. The first matching score a1 is greater than the second matching score a2, that is, the greater the number of standard descriptors matched, 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 score a1 and the second matching score a2, wherein the matching score a=n×a1+mα2, n and m are natural numbers 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, the matching of the same address description information with different addresses may obtain different matching scores, and the higher the matching score is, the higher the matching degree between the representative address description information and the address is, so the address with the highest matching score is the matching address.
The application establishes the standard address database in advance, acquires the address description information of the service data, matches the address description information with the standard address database to obtain the matching scores of the address description information and different addresses, and finally takes the address with the highest matching score as the matching address of the address description information, thereby realizing the rapid positioning of the service data according to the address description information and improving the address positioning efficiency.
Fig. 5 is a flowchart of an address quick positioning method according to another embodiment of the present application. As shown in fig. 5, the address quick positioning method of the present embodiment includes steps S210 to S240. Steps S210 to S230 are similar to steps S110 to S130 in the above embodiment, and are not described herein. Step S240 added in the present embodiment is described in detail below.
S240, associating the coordinate information of the matching address with corresponding service data, and generating a service positioning table.
In this embodiment, the coordinate information of the matching address is associated with the corresponding service data, and a service positioning table is generated, so that space coordinates can be respectively given to all the service data, and a convenient and efficient implementation manner is provided for quick mapping of the service data.
Fig. 6 is a schematic block diagram of an address quick positioning device according to an embodiment of the present application. As shown in fig. 6, the present application further provides an address quick positioning device corresponding to the above address quick positioning method. The address quick positioning device comprises a unit for executing the address quick positioning method, and can be configured in a desktop computer, a tablet computer, a portable computer, and other terminals. Specifically, referring to fig. 6, the address quick locating device includes a pre-establishment unit 10, an address matching unit 20, an address locating unit 30 and a location association unit 40.
A pre-establishing unit 10 for pre-establishing a standard address database.
In this embodiment, the standard address database includes a plurality of addresses having known coordinate information. A standard address database is established in advance, wherein 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 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.
The coordinate acquisition module 11 is configured to build a three-dimensional coordinate system in the target area in advance, and acquire coordinate information of different addresses in the target area.
The data establishing module 12 is configured to associate coordinate information with addresses one by one, 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, channels, 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 channel, an escape channel, a pipeline or a camera and the like in the rail transit station can be obtained, the coordinate information is associated with addresses one by one and a standard address list is generated, address description information is sequentially matched with addresses on the standard address list when the addresses are matched, and if the addresses are successfully matched, the coordinate information associated with the addresses is directly used as a positioning coordinate of service data to be rapidly positioned.
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, the different service data carries corresponding address description information, the standard address list is stored in the standard address database, coordinate information corresponding to different addresses one by one is recorded in the standard address list, the address description information is matched with all the existing addresses in the standard address list, and a matching score can be obtained, and the address most matched with the address description information can be determined according to the matching score, so that address matching is completed.
Referring to fig. 8, in an embodiment, the 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 acquiring module 21 is configured to acquire address description information of service data.
The description decomposition module 22 is configured to decompose 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 formed by a plurality of words or symbols, and by decomposing the address description information, a plurality of different characters or character groups may be obtained, where the characters or character groups may be divided into two types, one standard descriptor and the other non-standard descriptor, the standard descriptor refers to an existing descriptor with a definite definition, the non-standard descriptor is a descriptor without a definite definition, and specifically, when the standard descriptor and the non-standard descriptor are actually distinguished, a standard descriptor list may be established, and screening is performed through the standard descriptor list to obtain the standard descriptor and the non-standard descriptor. When matching, the more the standard descriptors are matched, the more the address description information is matched with the current address.
The description matching module 23 is configured to match the standard descriptor and the non-standard descriptor with addresses in the standard address database, respectively.
The score calculating module 24 is configured to obtain a first matching score a1 if the standard descriptor is successfully matched, obtain a second matching score a2 if the non-standard descriptor is successfully matched, and calculate a matching score a of the address description information and the corresponding address according to all the first matching score a1 and the second matching score a2, where the first matching score a1 is greater than the second matching score a2.
In this embodiment, the standard descriptor and the non-standard descriptor are respectively matched with the addresses in the standard address database, and if the standard descriptor is successfully matched, a first matching score a1 is obtained; and if the non-standard descriptor is successfully matched, obtaining a second matching score a2. Specifically, the number of standard descriptors and non-standard descriptors may be plural, and thus, there may be plural first match scores a1 and plural second match scores a2 after the matching is ended. The first matching score a1 is greater than the second matching score a2, that is, the greater the number of standard descriptors matched, 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 score a1 and the second matching score a2, wherein the matching score a=n×a1+mα2, n and m are natural numbers greater than or equal to 0, and n and m are not equal to 0 at the same time.
And an address locating unit 30, configured to take the address with the highest matching score as the matching address of the address description information.
In this embodiment, the matching of the same address description information with different addresses may obtain different matching scores, and the higher the matching score is, the higher the matching degree between the representative address description information and the address is, so the address with the highest matching score is the matching address.
And a location association unit 40, configured to associate the coordinate information of the matching address with corresponding service data, and generate a service location table.
In this embodiment, the coordinate information of the matching address is associated with the corresponding service data, and a service positioning table is generated, so that space coordinates can be respectively given to all the service data, and a convenient and efficient implementation manner is provided for quick mapping of the service data.
The application establishes the standard address database in advance, acquires the address description information of the service data, matches the address description information with the standard address database to obtain the matching scores of the address description information and different addresses, and finally takes the address with the highest matching score as the matching address of the address description information, thereby realizing the rapid positioning of the service data according to the address description information and improving the address positioning efficiency.
It should be noted that, as those skilled in the art can clearly understand, the specific implementation process of the address quick positioning device and each unit may refer to the corresponding description in the foregoing method embodiment, and for convenience and brevity of description, the description is omitted 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 formed by a plurality of servers.
With reference 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 program 5032 includes program instructions that, when executed, cause the processor 502 to perform a method of address fast localization.
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 a computer program 5032 in the non-volatile storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform an address fast positioning method.
The network interface 505 is used for network communication with other devices. It will be appreciated by those skilled in the art that the architecture shown in fig. 9 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 500 to which the present inventive arrangements may be implemented, as a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Wherein the processor 502 is adapted to run a computer program 5032 stored in a memory.
It should be appreciated that in an embodiment of the application, the processor 502 may be a central processing unit (Central Processing Unit, CPU), the processor 502 may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSPs), application specific integrated circuits (Application Specific Integrated Circuit, ASICs), off-the-shelf programmable gate arrays (Field-Programmable Gate Array, FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Those skilled in the art will appreciate that all or part of the flow in a method embodying the above described embodiments may be accomplished by computer programs instructing the relevant hardware. The computer program comprises program instructions, and the computer program can 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 application also provides a storage medium. The storage medium may be a computer readable storage medium.
The storage medium may be a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, or an optical disk, or other various computer-readable storage media that can store program codes.
Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate 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 solution. 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 application.
In the several embodiments provided by the present application, it should be understood that the disclosed apparatus and method may be implemented in other manners. For example, the device embodiments described above 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, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed.
The steps in the method of the embodiment of the application can be sequentially adjusted, combined and deleted according to actual needs. The units in the device of the embodiment of the application can be combined, divided and deleted according to actual needs. In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The integrated unit may be stored in a storage medium if implemented in the form of a software functional unit and sold or used as a stand-alone product. Based on such understanding, the technical solution of the present application is essentially or a part contributing to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a terminal, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present application.
While the application has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the application. Therefore, the protection scope of the application is subject to the protection scope of the claims.