CN106649803A - Address matching method and system - Google Patents
Address matching method and system Download PDFInfo
- Publication number
- CN106649803A CN106649803A CN201611241846.XA CN201611241846A CN106649803A CN 106649803 A CN106649803 A CN 106649803A CN 201611241846 A CN201611241846 A CN 201611241846A CN 106649803 A CN106649803 A CN 106649803A
- Authority
- CN
- China
- Prior art keywords
- address
- module
- matching
- data
- administrative division
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/29—Geographical information databases
Abstract
The invention provides an address matching method and system. The method comprises the following steps: S1: receiving address information data; S2: verifying the legitimacy of the data; S3: judging the data type; if the data contains the information point, executing step S4; if the data has detailed address, executing step 5; and if the data does not have the information point or the detailed address, executing step S6; S4: performing information point matching; S5: splitting the phrases to obtain a list of the split phrases, and then performing detailed address matching; and S6: performing administrative division completion and standardization field processing, and then performing matching without detailed address or information point. Compared with the prior art, the method and system can realize the matching between the service address name and the standard address name. The system of the invention associates the standard address having the highest matching rate with the service address, so that the service address without spatial coordinates can be shown on the map.
Description
Technical field
The present invention relates to geographic information data process field, more particularly to a kind of method and system of address matching.
Background technology
GIS-Geographic Information System (GIS, Geographic Information System) is a kind of computer based work
Tool, it can carry out into figure and analyze to the thing for existing on earth and the event of generation.GIS technology is this uniqueness of map
Visualization effect and geography-analysis function integrate with general database manipulation (such as inquiry and statistical analysis etc.).
This ability makes GIS distinguish with other information system, so that it is explained in the extensive public and personal, enterprises and institutions
Event, predict the outcome, there is practical value in plan strategy etc..
Therefore, it can using GIS platform in the operation for carrying out the upper figure in miscellaneous service address, generate it is various carry out it is visual
Business map.However, at present the operation system in each institutional unitses system yet suffers from the substantial amounts of services addresses without space, and
Address without space coordinates cannot be realized representing in map dynamic.
Therefore, it is in the urgent need to address how the services addresses without space coordinates to be carried out into intelligent Matching, so as to carry out upper figure
Operation.
The content of the invention
It is an object of the invention to overcome the shortcoming and deficiency of prior art, there is provided a kind of matching process of address, can
So that intelligent Matching will be carried out without space coordinates, with graphic operation on finishing service.
The present invention is realized by following scheme:A kind of matching process of address, comprises the following steps:
S1:Receive address information data;
S2:Checking data validation;
S3:Judge data type;If the packet when containing information point, execution step S4;If the data possess in detail
Location, then execution step S5;If the data do not possess information point and detailed location, execution step S6;
S4:Execution information Point matching;
S5:Phrase fractionation is carried out, is obtained and is split phrase list, then perform detailed location matching;
S6:Administrative division completion and standardization field are processed, then perform the matching without detailed location and information point.
Further, specifically include in step S4:
S41:According to information point title, data query is carried out by solr;
S42:The normal address of the information point is judged whether, next step is if so, then performed;If it is not, then performing S5;
S43:Obtain information point normal address information;
S44:Administrative division code and title are set;
S45:Matching rate is set, matching result is returned.
Further, specifically include in step S5:
S51:Solve administrative division conflict;
S52:According to address extension object completion phrase list;
S53:Again standardized address, arranges and returns the administrative division normal address of minimal level;Step S53
In, specifically include:
S531:Obtain normal address;
S532:Administrative district address is standardized according to part of speech, and returns to normal address;
S533:If there is no or exist a plurality of result, upper level address is inquired about, until obtaining a result;
S534:Criterion address whether there is and whether match nearest address, if the nearest address of matching, if
It is no, perform next step;
S535:The normal address that return is obtained;
S54:Judge that the normal address for returning whether there is;If so, execution step S55, if it is not, then throw exception is processed;
S55:Judge latitude and longitude coordinates whether all for 0;If it is not, then obtaining normal address data;If so, then look into toward upper level
Normal address is ask, and obtains its normal address data;
S56:Judge whether to only need to one record of matching;If so, the object of matching rate and returning result is then set;If
It is no, inquired about by solr, match a plurality of result;
S57:Administrative division code and title belonging to arranging, and returning result.
Further, administrative division completion described in step S6 and standardization field include the step of process:
S61:Splicing assembling inquiry address;
S62:Split the address of splicing;
S63:Solve administrative division conflict;
S64:Solr address lookups are performed, field completion is carried out, phrase list data are obtained.
Further, the step of matching without detailed location and information point is performed in step S6 specifically includes:
S65:Again standardized address, arranges and returns the administrative division normal address of minimal level;It is concrete in the S65
Including:
S651:Obtain normal address;
S652:Administrative district address is standardized according to part of speech, and returns to normal address;
S653:If there is no or exist a plurality of result, upper level address is inquired about, until obtaining a result;
S654:Criterion address whether there is and whether match nearest address, if so, then match nearest address,
If it is not, then directly performing next step;
S655:The normal address that return is obtained;
S66:Judge that the normal address for returning whether there is, if so, matching rate is then set, obtain minimal level administrative division
Normal address information;If it is not, then throw exception.
Present invention also offers a kind of matching system of address, including
Receiver module, for receiving address information data;
Authentication module, for verifying data validation;
First judge module, for judging data type;If the packet when containing information point, the first matching mould is gone to
Block;If the data possess detailed location, the second matching module is gone to;If the data do not possess information point and detailed location, go to
3rd matching module;
First matching module, for execution information Point matching;
Second matching module, for carrying out phrase fractionation, obtains and splits phrase list, then performs detailed location matching;
3rd matching module, is processed for administrative division completion and standardization field, then is performed without detailed location and information point
Matching.
Further, specifically include in first matching module:
First enquiry module, for according to information point title, by solr data query being carried out;
Second judge module, for judging whether the normal address of the information point, if so, then goes to the first acquisition mould
Block;If it is not, then going to the second matching module;
First acquisition module, for obtaining information point normal address information;
First administrative area delineates and puts module, for arranging administrative division code and title;
First matching rate setup module, for arranging matching rate, returns matching result.
Further, specifically include in second matching module:
First administrative division conflict-solving module, for solving administrative division conflict;
First completion module, for according to address extension object completion phrase list;
First standardized module again, for standardized address again, arranges and returns the administrative division mark of minimal level
Quasi- address;
3rd judge module, for judging that the normal address for returning whether there is;If so, the 4th judge module is performed, if
No, then throw exception is processed;
4th judge module:Judge latitude and longitude coordinates whether all for 0;If it is not, then obtaining normal address data;If so, then
Toward upper level query criteria address, and obtain its normal address data;
5th judge module, for judging whether to only need to one record of matching;If so, matching rate is then set and knot is returned
The object of fruit;If it is not, inquiring about by solr, a plurality of result is matched;
Second administrative division setup module, for arranging affiliated administrative division code and title, and returning result;
Described first standardized module again, specifically includes:
Second acquisition module, for obtaining normal address;
First returns module, for standardizing administrative district address according to part of speech, and returns to normal address;
6th judge module, if there is no or exist a plurality of result, inquires about upper level address, until obtaining a knot
Really;
First nearest address matching module, for matching nearest address;
Second returns module, returns to the normal address for obtaining.
Further, in the 3rd matching module, including:
Concatenation module, for splicing assembling inquiry address;
Module is split, for splitting the address of splicing;
Second administrative division conflict-solving module, for solving administrative division conflict;
Second completion module, for performing solr address lookups, carries out field completion, obtains phrase list data.
Further, the 3rd matching module also includes:
Second standardized module again, for performing standardized address again, arranges and returns the administrative area of minimal level
Draw normal address;
7th judge module, for judging that the normal address for returning whether there is, if so, then arranges matching rate, obtains most
The normal address information of little rank administrative division;If it is not, then throw exception;
Described second standardized module again, specifically includes:
3rd acquisition module, for obtaining normal address;
3rd returns module, for standardizing administrative district address according to part of speech, and returns to normal address;
8th judge module, if there is no or exist a plurality of result, inquires about upper level address, until obtaining a knot
Really;
Second nearest address matching module, for matching nearest address;
4th returns module, returns to the normal address for obtaining.
Compared to prior art, the present invention can realize being matched with normal address title by services addresses title,
Present system is associated matching rate highest normal address and services addresses, so as to realize the ground of the business without space coordinates
Location can represent on map.
In order to more fully understand and implement, the present invention is described in detail below in conjunction with the accompanying drawings.
Description of the drawings
The step of Fig. 1 is the address matching process of present invention flow chart.
Fig. 2 is concrete steps flow chart in step S4 of the invention.
Fig. 3 is the specific flow chart of steps of step S5.
Fig. 4 is the concrete steps flow chart in step S53.
Fig. 5 is the concrete steps flow chart of step S6.
Fig. 6, it is the specific flow chart of steps of step S65.
Fig. 7 is the module frame chart of the matching system of the address of the present invention.
Fig. 8 is the inside connection block diagram of the first matching module.
Fig. 9 is the module frame chart of the second matching module.
Figure 10 is the connection block diagram of first standardized module again of the present invention.
Figure 11 is the module connection block diagram of the 3rd matching module.
Figure 12 be second again standardized module inside connection block diagram.
Specific embodiment
Present invention is generally directed to when user using generalized information system when business map is made, the industry in each institutional unitses system
Business system yet suffers from the substantial amounts of services addresses without space.Due to address adopted and off-gauge, therefore cannot be direct
Graphic operation in realization.For such case, the invention provides a kind of method and system that intelligent Matching can be carried out to address.
With reference to embodiments and accompanying drawing the present invention is described in further detail, but embodiments of the present invention are not limited
In this.
The present embodiment illustrates how the intelligent Matching method using the present invention by taking the management system of Urban Dangers as an example,
Complete the matching of address.
Refer to Fig. 1, its be the present invention address matching process the step of flow chart.The invention provides a kind of address
Matching process, comprises the following steps:
S1:Receive address information data.
In the present embodiment, for the address information of dangerous matter sources, the department or unit for needing correlation carries out data acquisition, and
Carry out corresponding data inputting operation.And because the address for gathering all is not the address of standard, it is therefore desirable to carry out following
Matching operation.
Specifically, specification is filled in for data, table 1 below can be referred to.
The data better address filling explanation of table 1
However, in actual application, the combination of address is not fully combined according to address level design,
To ensure the unification of address standard, confirm through the analysis to data and on the spot, risk point risk point, dangerous matter sources better address ginseng
Examine the integrated mode of province's Room existing standard address date, table specific as follows:
The normal address integrated mode of table 2
Below to the illustration of normal address hierarchical structure, such as following table:
The normal address level citing of table 3
Below for the risk point dangerous matter sources address date of the non-standard address of better address, non-standard address field is with text
The manner is described in detail, as shown in table 4 below:
The non-standard address level of table 4 is illustrated
S2:Checking data validation.
The legitimacy of data, the necessary field for checking input data can not be sky, if containing characteristic character etc., for example, mark
The matching of note address date, it is desirable to provincial administrative division title, city-level administrative division title, district administrative division title, detailed location
Four fields must non-NULL, address " the riverine road 20 of Guangdong Province Qingyuan City Qingcheng District new city street new city neighbourhood committee such as in table 3
13 terraced room 502 of blue garden cell ", provincial administrative division title should be filled in " Guangdong Province ", and city-level administrative division title should be filled out
Write " Qingyuan City ", administrative division title in district should be filled in " Qingcheng District ", detailed location should fill in " the blue garden cell 1 in riverine road 20
3 terraced rooms 502 ", such as the entitled sky of district administrative division is then considered as illegal.
S3:Judge data type.
In this step, need to be judged for received data, be respectively processed according to different situations, specifically
It is divided into three kinds of situations:
If the packet when containing information point, execution step S4.For example, the information point data of reception is:" XX villages southern side
Big eye mountain north slope " " Great Wall main road and eastern inner ring road intersection ".
If the data possess detailed location, execution step S5.For example, better address data are received:" Guangdong Province's Qingyuan City is clear
The blue garden in the riverine road of city new city street new city neighbourhood committee 20 13 terraced room 502 of cell ".
If the data do not possess information point and detailed location, execution step S6.For example, address " Qingyuan City of Guangdong Province in table 3
The blue garden in the riverine road of city Qingcheng District new city street new city neighbourhood committee 20 13 terraced room 502 of cell " just possess provincial administrative division
Title, city-level administrative division title, district administrative division title, detailed location;If the data only have " Guangdong Province Qingyuan City Qingcheng District
New city street new city neighbourhood committee ".
S4:Execution information Point matching.
Please refer to Fig. 2, it is concrete steps flow chart in step S4 of the invention.Further, in step S4
Specifically include:
S41:According to information point title, data query is carried out by solr.
S42:The normal address of the information point is judged whether, next step is if so, then performed;If it is not, then performing S5.
S43:Obtain the normal address information of the information point.Here normal address information, refers to normal address combination die
The address of formula, it is affiliated normal address that reality is exactly information point, analogy " the wide Luda tall building XX in the wide garden east in reported in Tianhe district of Guangzhou
Address descriptor as Shi Guang XX offices ", " XX offices " is information point, and its normal address is exactly that " reported in Tianhe district of Guangzhou is wide
The wide Luda tall building XX rooms in garden east ".
S44:Administrative division code and title are set.
S45:Matching rate is set, matching result is returned.Here corresponding information point is looked for when finding, then arranging matching rate is
100%.
S5:Phrase fractionation is carried out, is obtained and is split phrase list, then perform detailed location matching.
Specifically, address " the riverine road 20 of Guangdong Province Qingyuan City Qingcheng District new city street new city neighbourhood committee that for example will be received
Number blue garden 13 terraced room 502 of cell " are split as phrase list, and the phrase list after fractionation is as shown in Table 3 above.
Fig. 3 is further referred to, it is the specific flow chart of steps of this step S5.The step of detailed location matching in step S5
Suddenly specifically include:
S51:Solve administrative division conflict.Administrative division conflict is divided to two classes, and it is to adopt mouth to be primarily due in typing address
Language is input into without complete, and a sequence error suppose reported in Tianhe district of Guangzhou, is write as " Tianhe District Guangzhou ", and two is word
Justice repeats to cause a word to belong to multiple address levels, it is common with small towns street, occupy villagers' committee and repeat with link name, and user
When input, suffix is not write clearly, lead to not judge that it is belonging to that address level from single word, need
The context being input into from it is judging the reasonability of address level.
S52:According to address extension object completion phrase list.For example:If the address for receiving is " Qingyuan City Qingcheng District Lan Yuan
13 terraced room 502 of cell ", then can carry out completion, by its completion for " Guangdong Province Qingyuan City Qingcheng District is new according to address before and after it
The blue garden in the riverine road of city street new city neighbourhood committee 20 13 terraced room 502 of cell ".
S53:Again standardized address, arranges and returns the administrative division normal address of minimal level.Please refer to figure
4, it is the concrete steps flow chart in this step S53.In step S53, specifically include:
S531:Obtain normal address.Conventional address or colloquial style, do not say small towns neighbourhood committee often, occupy the ground such as committee of village
Location level, this refers to obtain the normal address of appropriate address level all completions.
S532:Administrative district address is standardized according to part of speech, and returns to normal address.
S533:If there is no or exist a plurality of result, upper level address is inquired about, until obtaining a result.Here
Inquiry is up inquired about step by step by address level, confirms its ownership.
S534:Criterion address whether there is and whether match nearest address, if the nearest address of matching, if
It is no, perform next step.Specifically, it is, according to longitude and latitude, to calculate distance when nearest address matching is carried out.
S535:The normal address that return is obtained.
S54:Judge that the normal address for returning whether there is;If so, execution step S55, if it is not, then throw exception is processed.
S55:Judge latitude and longitude coordinates whether all for 0;If it is not, then obtaining normal address data;If so, then look into toward upper level
Normal address is ask, and obtains its normal address data.In the present embodiment, because partial data is not due to correctly gathering, so
Coordinate string is 0.
S56:Judge whether to only need to one record of matching;If so, the object of matching rate and returning result is then set;If
It is no, inquired about by solr, match a plurality of result.
S57:Administrative division code and title belonging to arranging, and returning result.
S6:Administrative division completion and standardization field are processed, then perform the matching without detailed location and information point.
Fig. 5 is further referred to, it is the concrete steps flow chart of step S6.Administrative division described in step S6 is mended
Complete and standardization field includes the step of process:
S61:Splicing assembling inquiry address;
S62:Split the address of splicing;
S63:Solve administrative division conflict;
S64:Solr address lookups are performed, field completion is carried out, phrase list data are obtained.
Fig. 6 is further referred to, it is the specific flow chart of steps of step S6.Perform without detailed location in step S6
The step of matching with information point, specifically includes:
S65:Again standardized address, arranges and returns the administrative division normal address of minimal level.Further refer to
Fig. 6, it is the specific flow chart of steps of step S6.Specifically include in the S65:
S651:Obtain normal address;Conventional address or colloquial style, do not say small towns neighbourhood committee often, occupy the ground such as committee of village
Location level, this refers to obtain the normal address of appropriate address level all completions.
S652:Administrative district address is standardized according to part of speech, and returns to normal address;
S653:If there is no or exist a plurality of result, upper level address is inquired about, until obtaining a result;Here
Inquiry is up inquired about step by step by address level, confirms its ownership.
S654:Criterion address whether there is and whether match nearest address, if so, then match nearest address,
If it is not, then directly performing next step.Specifically, it is, according to longitude and latitude, to calculate distance when nearest address matching is carried out.
S655:The normal address that return is obtained.
S66:Judge that the normal address for returning whether there is, if so, matching rate is then set, obtain minimal level administrative division
Normal address information;If it is not, then throw exception.
In addition, present invention also offers a kind of address corresponding with said method matching system, specifically refers to Fig. 7, its
For the module frame chart of the matching system of the address of the present invention.
Present invention also offers a kind of matching system of address, including receiver module 1, authentication module 2, the first judge module
3rd, the first matching module 4, the second matching module 5 and the 3rd matching module 6.
The receiver module 1, for receiving address information data.
The authentication module 2, for verifying data validation.
First judge module 3, for judging data type;If the packet when containing information point, going to first
Matching module;If the data possess detailed location, the second matching module is gone to;If the data do not possess information point and detailed location,
Then go to the 3rd matching module.
First matching module 4, for execution information Point matching.
Second matching module 5, for carrying out phrase fractionation, obtains and splits phrase list, then performs detailed location matching.
3rd matching module 6, is processed for administrative division completion and standardization field, then is performed without detailed location and letter
The matching of breath point.
Further, Fig. 8 is referred to, it is the inside connection block diagram of the first matching module.
Specifically include in first matching module 4:First enquiry module 41, the second judge module 42, first obtain mould
Block 43, the first administrative area delineate puts the matching rate setup module 45 of module 44 and first.
First enquiry module 41, for according to information point title, by solr data query being carried out.
Second judge module 42, for judging whether the normal address of the information point, if so, then goes to first
Acquisition module;If it is not, then going to the second matching module.
First acquisition module 43, for obtaining information point normal address information.
First administrative area delineates and puts module 44, for arranging administrative division code and title;
First matching rate setup module 45, for arranging matching rate, returns matching result.
Further, please refer to Fig. 9, it is the module frame chart of the second matching module.Have in second matching module 5
Body includes:Again standardized module the 53, the 3rd is sentenced for first administrative division conflict-solving module 51, the first completion module 52, first
Disconnected module 54, the 4th judge module 55, the 5th judge module 56 and the second administrative division setup module 57.
The first administrative division conflict-solving module 51, for solving administrative division conflict.
The first completion module 52, for according to address extension object completion phrase list.
Described first standardized module 53 again, for standardized address again, arrange and return the administration of minimal level
Criteria for division address.
3rd judge module 54, for judging that the normal address for returning whether there is;If so, perform the 4th and judge mould
Block, if it is not, then throw exception is processed.
4th judge module 55, for judging latitude and longitude coordinates whether all for 0;If it is not, then obtaining normal address number
According to;If so, then toward upper level query criteria address, and its normal address data is obtained.
5th judge module 56, for judging whether to only need to one record of matching;If so, then arrange matching rate and
The object of returning result;If it is not, inquiring about by solr, a plurality of result is matched.
The second administrative division setup module 57, for arranging affiliated administrative division code and title, and returning result.
Please refer to Figure 10, it is the connection block diagram of first standardized module again of the present invention.Described first again
Standardized module 53, specifically includes:Second acquisition module 531, first returns module 532, the 6th judge module 533, first most
Near-earth location matching module 534 and second returns module 535.
Second acquisition module 531, for obtaining normal address.
Described first returns module 532, for standardizing administrative district address according to part of speech, and returns to normal address.
6th judge module 533, if there is no or exist a plurality of result, inquires about upper level address, until obtaining
One result.
The first nearest address matching module 534, for matching nearest address.
Described second returns module 535, returns to the normal address for obtaining.
Further, Figure 11 is referred to, it is the module connection block diagram of the 3rd matching module.In 3rd matching module 6,
Including:Concatenation module 61, fractionation module 62, the second administrative division conflict-solving module 63, the second completion module 64, second are again
The judge module 66 of standardized module 65 and the 7th.
The concatenation module 61, for splicing assembling inquiry address.
The fractionation module 62, for splitting the address of splicing.
The second administrative division conflict-solving module 63, for solving administrative division conflict.
The second completion module 64, for performing solr address lookups, carries out field completion, obtains phrase list number
According to.
Described second standardized module 65 again, for performing standardized address again, arrange and return minimal level
Administrative division normal address.
7th judge module 66, for judging that the normal address for returning whether there is, if so, then arranges matching rate,
Obtain the normal address information of minimal level administrative division;If it is not, then throw exception.
Further, refer to Figure 12, its be second again standardized module inside connection block diagram.Described second marks again
Standardization module 65, specifically includes:It is nearest that 3rd acquisition module the 651, the 3rd returns module 652, the 8th judge module 653, second
Address matching module 654 and the 4th returns module 655.
3rd acquisition module 651, for obtaining normal address.
Described 3rd returns module 652, for standardizing administrative district address according to part of speech, and returns to normal address.
8th judge module 653, if there is no or exist a plurality of result, inquires about upper level address, until obtaining
One result.
The second nearest address matching module 654, for matching nearest address.
Described 4th returns module 655, returns to the normal address for obtaining.
Compared to prior art, the present invention can realize being matched with normal address title by services addresses title,
Present system is associated matching rate highest normal address and services addresses, so as to realize the ground of the business without space coordinates
Location can represent on map.
Above-described embodiment is the present invention preferably embodiment, but embodiments of the present invention not by above-described embodiment
Limit, other any Spirit Essences without departing from the present invention and the change, modification, replacement made under principle, combine, simplification,
Equivalent substitute mode is should be, is included within protection scope of the present invention.
Claims (10)
1. a kind of matching process of address, it is characterised in that comprise the following steps:
S1:Receive address information data;
S2:Checking data validation;
S3:Judge data type;If the packet when containing information point, execution step S4;If the data possess detailed location,
Execution step S5;If the data do not possess information point and detailed location, execution step S6;
S4:Execution information Point matching;
S5:Phrase fractionation is carried out, is obtained and is split phrase list, then perform detailed location matching;
S6:Administrative division completion and standardization field are processed, then perform the matching without detailed location and information point.
2. the matching process of address according to claim 1, it is characterised in that:Specifically include in step S4:
S41:According to information point title, data query is carried out by solr;
S42:The normal address of the information point is judged whether, next step is if so, then performed;If it is not, then performing S5;
S43:Obtain information point normal address information;
S44:Administrative division code and title are set;
S45:Matching rate is set, matching result is returned.
3. the matching process of address according to claim 1, it is characterised in that:Specifically include in step S5:
S51:Solve administrative division conflict;
S52:According to address extension object completion phrase list;
S53:Again standardized address, arranges and returns the administrative division normal address of minimal level;In step S53, tool
Body includes:
S531:Obtain normal address;
S532:Administrative district address is standardized according to part of speech, and returns to normal address;
S533:If there is no or exist a plurality of result, upper level address is inquired about, until obtaining a result;
S534:Criterion address whether there is and whether match nearest address, if the nearest address of matching, if it is not, holding
Row next step;
S535:The normal address that return is obtained;
S54:Judge that the normal address for returning whether there is;If so, execution step S55, if it is not, then throw exception is processed;
S55:Judge latitude and longitude coordinates whether all for 0;If it is not, then obtaining normal address data;If so, then toward upper level inquiry mark
Quasi- address, and obtain its normal address data;
S56:Judge whether to only need to one record of matching;If so, the object of matching rate and returning result is then set;If it is not, logical
Solr inquiries are crossed, a plurality of result is matched;
S57:Administrative division code and title belonging to arranging, and returning result.
4. the matching process of address according to claim 1, it is characterised in that:Administrative division completion described in step S6
The step of processing with standardization field includes:
S61:Splicing assembling inquiry address;
S62:Split the address of splicing;
S63:Solve administrative division conflict;
S64:Solr address lookups are performed, field completion is carried out, phrase list data are obtained.
5. the matching process of address according to claim 4, it is characterised in that:Perform without detailed location and letter in step S6
The step of matching of breath point, specifically includes:
S65:Again standardized address, arranges and returns the administrative division normal address of minimal level;Specifically wrap in the S65
Include:
S651:Obtain normal address;
S652:Administrative district address is standardized according to part of speech, and returns to normal address;
S653:If there is no or exist a plurality of result, upper level address is inquired about, until obtaining a result;
S654:Criterion address whether there is and whether match nearest address, if so, then match nearest address, if it is not,
Then directly perform next step;
S655:The normal address that return is obtained;
S66:Judge that the normal address for returning whether there is, if so, matching rate is then set, obtain the mark of minimal level administrative division
Quasi- address information;If it is not, then throw exception.
6. a kind of matching system of address, it is characterised in that include
Receiver module, for receiving address information data;
Authentication module, for verifying data validation;
First judge module, for judging data type;If the packet when containing information point, going to the first matching module;
If the data possess detailed location, the second matching module is gone to;If the data do not possess information point and detailed location, the 3rd is gone to
Matching module;
First matching module, for execution information Point matching;
Second matching module, for carrying out phrase fractionation, obtains and splits phrase list, then performs detailed location matching;
3rd matching module, is processed for administrative division completion and standardization field, then perform without detailed location and information point
Match somebody with somebody.
7. the matching system of address according to claim 6, it is characterised in that:Specifically include in first matching module:
First enquiry module, for according to information point title, by solr data query being carried out;
Second judge module, for judging whether the normal address of the information point, if so, then goes to the first acquisition module;
If it is not, then going to the second matching module;
First acquisition module, for obtaining information point normal address information;
First administrative area delineates and puts module, for arranging administrative division code and title;
First matching rate setup module, for arranging matching rate, returns matching result.
8. the matching system of address according to claim 6, it is characterised in that:Specifically include in second matching module:
First administrative division conflict-solving module, for solving administrative division conflict;
First completion module, for according to address extension object completion phrase list;
First standardized module again, for standardized address again, arranges and returns the administrative division study plot of minimal level
Location;
3rd judge module, for judging that the normal address for returning whether there is;If so, the 4th judge module is performed, if it is not, then
Throw exception process;
4th judge module:Judge latitude and longitude coordinates whether all for 0;If it is not, then obtaining normal address data;If so, then up
One-level query criteria address, and obtain its normal address data;
5th judge module, for judging whether to only need to one record of matching;If so, matching rate and returning result be then set
Object;If it is not, inquiring about by solr, a plurality of result is matched;
Second administrative division setup module, for arranging affiliated administrative division code and title, and returning result;
Described first standardized module again, specifically includes:
Second acquisition module, for obtaining normal address;
First returns module, for standardizing administrative district address according to part of speech, and returns to normal address;
6th judge module, if there is no or exist a plurality of result, inquires about upper level address, until obtaining a result;
First nearest address matching module, for matching nearest address;
Second returns module, returns to the normal address for obtaining.
9. the matching system of address according to claim 6, it is characterised in that:In 3rd matching module, including:
Concatenation module, for splicing assembling inquiry address;
Module is split, for splitting the address of splicing;
Second administrative division conflict-solving module, for solving administrative division conflict;
Second completion module, for performing solr address lookups, carries out field completion, obtains phrase list data.
10. the matching system of address according to claim 9, it is characterised in that:3rd matching module also includes:
Second standardized module again, for performing standardized address again, arranges and returns the administrative division mark of minimal level
Quasi- address;
7th judge module, for judging that the normal address for returning whether there is, if so, then arranges matching rate, obtains minimum level
The normal address information of other administrative division;If it is not, then throw exception;
Described second standardized module again, specifically includes:
3rd acquisition module, for obtaining normal address;
3rd returns module, for standardizing administrative district address according to part of speech, and returns to normal address;
8th judge module, if there is no or exist a plurality of result, inquires about upper level address, until obtaining a result;
Second nearest address matching module, for matching nearest address;
4th returns module, returns to the normal address for obtaining.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611241846.XA CN106649803A (en) | 2016-12-29 | 2016-12-29 | Address matching method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611241846.XA CN106649803A (en) | 2016-12-29 | 2016-12-29 | Address matching method and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106649803A true CN106649803A (en) | 2017-05-10 |
Family
ID=58835465
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611241846.XA Pending CN106649803A (en) | 2016-12-29 | 2016-12-29 | Address matching method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106649803A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108052609A (en) * | 2017-12-13 | 2018-05-18 | 武汉烽火普天信息技术有限公司 | A kind of address matching method based on dictionary and machine learning |
CN111753035A (en) * | 2020-06-16 | 2020-10-09 | 福建票付通信息科技有限公司 | Scenic spot name matching method based on administrative district division completion |
CN112100161A (en) * | 2019-09-17 | 2020-12-18 | 上海寻梦信息技术有限公司 | Data processing method and system, electronic device and storage medium |
CN112540819A (en) * | 2020-12-08 | 2021-03-23 | 杭州讯酷科技有限公司 | Method for automatically generating recommended detailed page and form page according to query page |
CN114048797A (en) * | 2021-10-20 | 2022-02-15 | 盐城金堤科技有限公司 | Method, device, medium and electronic equipment for determining address similarity |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101882163A (en) * | 2010-06-30 | 2010-11-10 | 中国科学院地理科学与资源研究所 | Fuzzy Chinese address geographic evaluation method based on matching rule |
CN102169498A (en) * | 2011-04-14 | 2011-08-31 | 中国测绘科学研究院 | Address model constructing method and address matching method and system |
CN106021336A (en) * | 2016-05-09 | 2016-10-12 | 厦门四方中信科技有限公司 | A method for automatic administrative district division for mass address information |
CN106033460A (en) * | 2015-03-19 | 2016-10-19 | 阿里巴巴集团控股有限公司 | Address data processing method and apparatus |
-
2016
- 2016-12-29 CN CN201611241846.XA patent/CN106649803A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101882163A (en) * | 2010-06-30 | 2010-11-10 | 中国科学院地理科学与资源研究所 | Fuzzy Chinese address geographic evaluation method based on matching rule |
CN102169498A (en) * | 2011-04-14 | 2011-08-31 | 中国测绘科学研究院 | Address model constructing method and address matching method and system |
CN106033460A (en) * | 2015-03-19 | 2016-10-19 | 阿里巴巴集团控股有限公司 | Address data processing method and apparatus |
CN106021336A (en) * | 2016-05-09 | 2016-10-12 | 厦门四方中信科技有限公司 | A method for automatic administrative district division for mass address information |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108052609A (en) * | 2017-12-13 | 2018-05-18 | 武汉烽火普天信息技术有限公司 | A kind of address matching method based on dictionary and machine learning |
CN112100161A (en) * | 2019-09-17 | 2020-12-18 | 上海寻梦信息技术有限公司 | Data processing method and system, electronic device and storage medium |
CN111753035A (en) * | 2020-06-16 | 2020-10-09 | 福建票付通信息科技有限公司 | Scenic spot name matching method based on administrative district division completion |
CN112540819A (en) * | 2020-12-08 | 2021-03-23 | 杭州讯酷科技有限公司 | Method for automatically generating recommended detailed page and form page according to query page |
CN112540819B (en) * | 2020-12-08 | 2023-02-24 | 杭州讯酷科技有限公司 | Method for automatically generating recommended detailed page and form page according to query page |
CN114048797A (en) * | 2021-10-20 | 2022-02-15 | 盐城金堤科技有限公司 | Method, device, medium and electronic equipment for determining address similarity |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106599303A (en) | Address matching method and system | |
CN106649803A (en) | Address matching method and system | |
CN106682175A (en) | Method and system for matching address | |
CN104866593B (en) | A kind of database search method of knowledge based collection of illustrative plates | |
JP5856618B2 (en) | Geospatial database integration method and device | |
CN105224622A (en) | The place name address extraction of Internet and standardized method | |
CN104750799A (en) | Method for recognizing construction land type rapidly based on address resolution data | |
US9020941B1 (en) | Geocoding multi-feature addresses | |
CN101313300A (en) | Local search | |
KR20140097805A (en) | Coordinates (x, y) position value using a systematic block code generated and the address matching service using methods | |
CN102163214A (en) | Numerical map generation device and method thereof | |
CN112988788A (en) | Method for checking mutation of spatial data in territorial space planning, application system and cloud platform | |
CN106874384A (en) | A kind of isomery address standard handovers and matching process | |
CN113065057A (en) | Data information authenticity verification method, device, equipment and storage medium | |
KR102150280B1 (en) | Linked platform for urban river management | |
CN112328910A (en) | Method and system covering AOI and POI standard address matching engine | |
CN105912723A (en) | Storage method of custom field | |
US11899696B2 (en) | Systems and methods for generating multi-part place identifiers | |
KR100763517B1 (en) | Postal address unity management system and method | |
CN106611060A (en) | Data processing method for GIS | |
Rasmussen et al. | Case study on geocoding based scheduling optimization in supply chain operations management | |
CN103366005A (en) | Searching method based on geographical position semantics | |
Jain et al. | Public transport ontology for passenger information retrieval | |
Somers | GIS in US local government | |
CN106649802A (en) | Address cloud service platform |
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: 20170510 |