CN111177589A - Address information query method, device, equipment and storage medium - Google Patents

Address information query method, device, equipment and storage medium Download PDF

Info

Publication number
CN111177589A
CN111177589A CN201911411141.1A CN201911411141A CN111177589A CN 111177589 A CN111177589 A CN 111177589A CN 201911411141 A CN201911411141 A CN 201911411141A CN 111177589 A CN111177589 A CN 111177589A
Authority
CN
China
Prior art keywords
address information
address
information
longitude
latitude
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911411141.1A
Other languages
Chinese (zh)
Inventor
杨岱川
王培勇
史源源
陈宏仁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Servyou Software Group Co ltd
Original Assignee
Servyou Software Group Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Servyou Software Group Co ltd filed Critical Servyou Software Group Co ltd
Priority to CN201911411141.1A priority Critical patent/CN111177589A/en
Publication of CN111177589A publication Critical patent/CN111177589A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9537Spatial or temporal dependent retrieval, e.g. spatiotemporal queries
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases

Abstract

The application discloses a method, a device, equipment and a storage medium for inquiring address information, wherein the method comprises the following steps: acquiring an address to be queried; sending the address to be inquired to a map server to obtain corresponding positive address information; the positive address information comprises first return address information and latitude and longitude information; sending the longitude and latitude information to a map server, and acquiring second return address information corresponding to the longitude and latitude information; judging whether the first return address information and the second return address information are consistent; if the address information is consistent with the address information, determining a target address corresponding to the address to be inquired according to the first return address information; and if the two addresses are not consistent, complementing the first return address information by using the second return address information, and determining a target address corresponding to the address to be inquired according to the complemented first return address information. The method can improve the accuracy of determining the standard complete target address according to the address to be inquired, and improve the information integrity and accuracy of building the user address information base.

Description

Address information query method, device, equipment and storage medium
Technical Field
The present invention relates to the field of address query, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for querying address information.
Background
At present, in the process of establishing a user address information base, for an original text of address information actively filled in or passively fed back by a user, corresponding actual address information needs to be quickly acquired according to the original text, that is, a standard and complete target address is obtained according to address query to be queried.
In the prior art, generally, an address to be queried is sent to a map server, and address information fed back by the map server is received, so as to determine a target address according to the address information. However, in actual operation, there may be a situation that address information such as no street information or no cell information is missing according to address information queried by an address to be queried, that is, target address information is incomplete and inaccurate, which further results in incomplete and inaccurate information of a user address information base being built.
Therefore, how to determine a standard complete target address according to the address to be queried and improve the information integrity and accuracy of building the user address information base is a technical problem to be solved by technical personnel in the field at present.
Disclosure of Invention
In view of the above, an object of the present invention is to provide an address information query method, which can determine a standard complete target address according to an address to be queried, and improve the information integrity and accuracy of building a user address information base; another object of the present invention is to provide an apparatus, a device and a computer-readable storage medium for querying address information, all of which have the above advantages.
In order to solve the above technical problem, the present invention provides a method for querying address information, including:
acquiring an address to be queried;
sending the address to be inquired to a map server to obtain corresponding positive address information; the positive address information comprises first return address information and latitude and longitude information;
sending the longitude and latitude information to the map server, and acquiring second return address information corresponding to the longitude and latitude information;
judging whether the first return address information and the second return address information are consistent;
if the address information is consistent with the address information, determining a target address corresponding to the address to be inquired according to the first return address information;
and if the address to be inquired is inconsistent with the address to be inquired, complementing the first return address information by using the second return address information, and determining a target address corresponding to the address to be inquired according to the complemented first return address information.
Preferably, when there are a plurality of addresses to be queried, the process of sending the addresses to be queried to the map server and acquiring corresponding positive address information specifically includes:
splicing the plurality of addresses to be inquired according to a first preset splicing format;
and sending the spliced multiple addresses to be inquired to the map server to acquire positive address information corresponding to each address to be inquired.
Preferably, the process of sending the longitude and latitude information to the map server and acquiring second return address information corresponding to the longitude and latitude information specifically includes:
splicing the longitude and latitude information according to a second preset splicing format;
and sending the spliced longitude and latitude information to the map server to acquire second return address information corresponding to each longitude and latitude information.
Preferably, when there are a plurality of addresses to be queried, the process of sending the addresses to be queried to the map server and acquiring corresponding positive address information specifically includes:
and sending each address to be inquired to the map server in a multithreading mode, and acquiring positive address information corresponding to each address to be inquired.
Preferably, the process of sending the longitude and latitude information to the map server and acquiring second return address information corresponding to the longitude and latitude information specifically includes:
and sending the longitude and latitude information to the map server, and acquiring second return address information and peripheral address information corresponding to the longitude and latitude information.
Preferably, after the sending the address to be queried to the map server and acquiring the corresponding positive address information, the method further includes:
and obtaining segmented address information according to the first return address information.
Preferably, after the obtaining the address to be queried, the method further includes:
acquiring city information corresponding to the address to be inquired;
correspondingly, the process of sending the address to be queried to the map server to obtain the corresponding positive address information specifically includes:
and sending the address to be inquired and the city information to the map server to obtain corresponding positive address information.
In order to solve the above technical problem, the present invention further provides an apparatus for querying address information, including:
the first acquisition module is used for acquiring an address to be inquired;
the first query module is used for sending the address to be queried to a map server to acquire corresponding positive address information; the positive address information comprises first return address information and latitude and longitude information;
the second query module is used for sending the longitude and latitude information to the map server and acquiring second return address information corresponding to the longitude and latitude information;
the judging module is used for judging whether the first return address information is consistent with the second return address information; if the two are consistent, calling a first execution module; if not, calling a second execution module;
the first execution module is used for determining a target address corresponding to the address to be inquired according to the first return address information;
and the second execution module is used for complementing the first return address information by using the second return address information and determining a target address corresponding to the address to be inquired according to the complemented first return address information.
In order to solve the above technical problem, the present invention further provides an address information query device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of any address information inquiry method when the computer program is executed.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the computer program implements the steps of any one of the above address information query methods.
The invention provides an address information query method, which comprises the steps of sending an address to be queried to a map server, obtaining corresponding positive address information, further sending longitude and latitude information in the positive address information to the map server, and obtaining second return address information corresponding to the longitude and latitude information; then judging whether the first return address information and the second return address information in the positive address information are consistent; if the address information is consistent with the address information, determining a target address corresponding to the address to be inquired according to the first return address information; and if the two addresses are not consistent, complementing the first return address information by using the second return address information, and determining a target address corresponding to the address to be inquired according to the complemented first return address information. Therefore, the method further supplements the first return address information by using the second return address information determined according to the latitude and longitude information, and determines the target address according to the first return address information, so that a more standard and complete target address can be determined according to the address to be inquired, and the information integrity and accuracy of building the user address information base are improved.
In order to solve the technical problem, the invention also provides an inquiry device, equipment and a computer readable storage medium of the address information, which have the beneficial effects.
Drawings
In order to more clearly illustrate the embodiments or technical solutions of the present invention, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart of an address information query method according to an embodiment of the present invention;
fig. 2 is a structural diagram of an address information query device according to an embodiment of the present invention;
fig. 3 is a structural diagram of an address information query device according to an embodiment of the present invention.
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
The core of the embodiment of the invention is to provide an address information query method, which can determine a standard complete target address according to an address to be queried and improve the information integrity and accuracy of building a user address information base; another core of the present invention is to provide an apparatus, a device and a computer-readable storage medium for querying address information, all of which have the above beneficial effects.
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments.
Fig. 1 is a flowchart of an address information query method according to an embodiment of the present invention. As shown in fig. 1, a method for querying address information includes:
s10: acquiring an address to be queried;
s20: sending the address to be inquired to a map server to obtain corresponding positive address information;
the positive address information comprises first return address information and latitude and longitude information.
Specifically, in this embodiment, first, a client acquires an address to be queried, which needs to perform an address query operation; and then, sending the address to be inquired to a map server, and inquiring by the map server according to the address to be inquired to obtain corresponding positive address information. In this embodiment, the positive address information includes first return address information and latitude and longitude information; the first return address information is more complete and standard address information determined according to the address to be inquired; the latitude and longitude information is the corresponding latitude and longitude determined according to the address to be inquired. For example, assuming that the address to be queried is "No. 5 th pavilion at jingzhan exhibition route 2229", the positive address information returned by the map server includes first return address information "No. 5 th pavilion at shanghai mountains and jingzhan exhibition route 2229", and latitude and longitude information [121.31797,30.88018] corresponding to the first return address information.
S30: sending the longitude and latitude information to a map server, and acquiring second return address information corresponding to the longitude and latitude information;
s40: judging whether the first return address information and the second return address information are consistent;
s50: if the address information is consistent with the address information, determining a target address corresponding to the address to be inquired according to the first return address information;
s60: and if the two addresses are not consistent, complementing the first return address information by using the second return address information, and determining a target address corresponding to the address to be inquired according to the complemented first return address information.
Then, extracting longitude and latitude information in the positive address information, sending the longitude and latitude information to a map server according to a preset parameter format, and acquiring corresponding second return address information determined by the map server according to the longitude and latitude information; and comparing the second return address information with the first return address information to judge whether the first return address information is consistent with the second return address information. Specifically, if the first return address information is consistent with the second return address information, it indicates that the first return address information is standard and complete, so that the target address corresponding to the address to be queried can be determined according to the first return address information, that is, the first return address information is used as the target address of the address to be queried; if the first return address information is inconsistent with the second return address information, the first return address information is not standard and complete, therefore, the first return address information is completed according to the second return address information, and the target address corresponding to the address to be inquired is determined according to the completed first return address information.
It is understood that, since a plurality of actual addresses may correspond to the same longitude and latitude information, for example, a plurality of companies in the same building have different floor information or number information, but the longitude and latitude information is the same. Assuming that the address to be inquired is the address of the company A, if the determined first return address information lacks the street information of the position of the company A; inquiring according to the longitude and latitude information of the company A to obtain the address information of the building where the company A is located or the address information of the company B which is located in the same building as the company A, namely, second return address information; the second return address information may include street information, and the street information is also street information of company a; therefore, the first return address information is complemented by the street information in the second return address information, and the complemented first return address information is determined as the target address.
In the method for inquiring address information provided by the embodiment of the invention, after the address to be inquired is sent to the map server to obtain the corresponding positive address information, the longitude and latitude information in the positive address information is further sent to the map server to obtain the second return address information corresponding to the longitude and latitude information; then judging whether the first return address information and the second return address information in the positive address information are consistent; if the address information is consistent with the address information, determining a target address corresponding to the address to be inquired according to the first return address information; and if the two addresses are not consistent, complementing the first return address information by using the second return address information, and determining a target address corresponding to the address to be inquired according to the complemented first return address information. Therefore, the method further supplements the first return address information by using the second return address information determined according to the latitude and longitude information, and determines the target address according to the first return address information, so that a more standard and complete target address can be determined according to the address to be inquired, and the information integrity and accuracy of building the user address information base are improved.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, when there are a plurality of addresses to be queried, the process of sending the addresses to be queried to the map server and acquiring corresponding positive address information specifically includes:
splicing the plurality of addresses to be inquired according to a first preset splicing format;
and sending the spliced multiple addresses to be inquired to a map server to obtain positive address information corresponding to each address to be inquired.
In the embodiment, an address information query method for a plurality of addresses to be queried is provided. Specifically, the address to be queried of the user may be crawled from a CSV file, an XLSX file, or a Pickle file, and the file format of the crawled address to be queried is not limited in this embodiment, as long as the file can be read as a Dataframe by a Python library, which is Pandas, and the format of the file meets the input requirement. In this embodiment, the Dataframe format for storing the address to be queried may be as shown in table 1 below:
TABLE 1 storage format of addresses to be queried
Whether or not to make a key Name of field Field description Data type Can be emptied Remarks for note
xxxxdah File number VARchar(400) Is that
scjydz User address 1 VARchar(400)
zcdz User address 2 VARchar(400)
Is that id id VARchar(200)
The file number is a number corresponding to each user, and the user address 1 and the user address 2 are multiple addresses of the same user, such as a production operation address, a registration address, and the like.
And then, extracting the address to be inquired from the address file storing the address to be inquired, splicing the addresses to be inquired according to a first preset splicing format, such as a WebAPI requirement corresponding to the map server, and sending the spliced addresses to be inquired to the map server.
It should be noted that after the address to be queried is stored according to the DataFrame format, since there may be many abnormal values in the data, especially in the address column to be queried, such abnormal values need to be processed. That is, in actual operation, a data preprocessing operation may be further performed on the address file. The preprocessing operation comprises data cleaning and format sorting. The data cleaning comprises deleting rows with null values, deleting rows with pure numbers, deleting rows with pure English, deleting rows with meaningless punctuations, and paying attention not to delete meaningful brackets of parts by mistake; and, after processing the abnormal value in the address file, the index may be further reset.
As a specific implementation manner, according to a map server forward address query WebAPI supporting a single request query of information of at most 10 addresses to be queried, the 10 addresses to be queried are spliced, and each address to be queried is separated by a vertical line "|", and the whole is transmitted to the map server as a character string, for example: "shanghai jinshan pavilion forest Zhenjin exhibition path 2229 # 5 building 242 room | shanghai jinshan dongpin south way 557 | shanghai jinshan jujing zhen junjuju way 218 # 3 room D seat | said.
It can be understood that after the map server obtains the addresses to be queried in the form of the spliced character strings, the character strings are firstly analyzed to obtain the addresses to be queried, corresponding positive address information is obtained by searching the addresses to be queried, the positive address information is spliced through a corresponding first preset splicing format and a corresponding splicing sequence, and the corresponding positive address information is fed back to the client.
Therefore, the plurality of addresses to be inquired are spliced according to the first preset splicing format, and then the spliced plurality of addresses to be inquired are sent to the map server, so that the positive address information corresponding to each address to be inquired is obtained, the address inquiring efficiency can be improved, the frequency of sending inquiry requests to the map server can be reduced, the access frequency is reduced, and the access resources can be saved relatively.
As a preferred embodiment, the process of sending the latitude and longitude information to the map server and acquiring the second return address information corresponding to the latitude and longitude information specifically includes:
splicing the plurality of longitude and latitude information according to a second preset splicing format;
and sending the spliced longitude and latitude information to a map server to acquire second return address information corresponding to each longitude and latitude information.
Specifically, the longitude and latitude information is extracted from the positive address information, then the plurality of longitude and latitude information are spliced according to a second preset splicing format, and then the spliced plurality of longitude and latitude information are sent to the map server to obtain second return address information corresponding to each longitude and latitude information.
As a specific implementation manner, according to a map server reverse address query WebAPI, a single request is supported to query 20 pairs of longitude and latitude information at most, the 20 pairs of longitude and latitude information are spliced, each pair of longitude and latitude information is separated by a vertical line "|", and the whole is transmitted to the map server as a character string, for example, the splicing condition of the multiple pairs of longitude and latitude information is as follows: "121.31797, 30.88018|121.332701,30.72533|121.189348,30.896382|.. -".
As can be seen, in the embodiment, the plurality of longitude and latitude information are spliced according to a second preset splicing format, and the spliced plurality of longitude and latitude information are sent to the map server, so that second return address information corresponding to each longitude and latitude information is obtained; the method and the system can improve the query efficiency, reduce the times of sending query requests to the map server and reduce the access times, thereby saving access resources relatively.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, when there are a plurality of addresses to be queried, the process of sending the addresses to be queried to the map server and acquiring corresponding positive address information specifically includes:
and sending each address to be inquired to a map server in a multithreading mode, and acquiring positive address information corresponding to each address to be inquired.
It should be noted that, in actual operation, when there are a plurality of addresses to be queried, sending a query request to the map server is an IO-intensive task, and the main IO process is as follows:
step 1: sending the address to be inquired to a map server;
step 2: waiting (information is sent out and no return is made temporarily);
step 3: and receiving and processing the positive address information returned from the map server.
It can be seen that if a single thread is used to query positive address information, a great deal of time will be spent in step 2; and through practical tests, the single-thread query mode is adopted, and the access amount per second is about 6 to 8 times. Therefore, the method in the prior art has low access amount, so that the efficiency of determining the target address according to the address to be inquired is low.
In this embodiment, each address to be queried is further sent to the map server in a multi-thread manner, and positive address information corresponding to each address to be queried is acquired. Specifically, when one thread is in step2, the other thread is switched to execute the task of step1 or step 3. It is understood that the efficiency of address lookup can be greatly improved by using multi-threading (multi-threading) technology.
It should be noted that, in actual operation, when querying the second return address information according to the latitude and longitude information, the address query may also be implemented in a multi-thread manner.
In addition, in practical operation, in order to avoid the situation that the function cannot jump out of the for loop when the forward/reverse address query is executed by using the multithreading method, the method of reading. The efficiency of address information query can be improved, and the condition that the for cycle cannot be skipped when the query task is executed can be relatively avoided. Therefore, according to the method of the embodiment, the efficiency of address query can be further improved.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, the process of sending the latitude and longitude information to the map server and acquiring the second return address information corresponding to the latitude and longitude information specifically includes:
and sending the longitude and latitude information to a map server, and acquiring second return address information and peripheral address information corresponding to the longitude and latitude information.
It should be noted that, in actual operation, the process of obtaining the second return address information according to the latitude and longitude information is also referred to as inverse address query (inverse query, inverse address coding, etc.), and parameters that the WebAPI needs to transmit in the process are shown in table 2 below:
TABLE 2 inverse Address query parameter Table
Figure BDA0002349991140000101
After parameter information including latitude and longitude information is sent to a server address "url ═ https:// restapi. amap. com/v 3/geocode/regeo'" of a map server according to the parameter format provided in table 2 to perform request, the second return address information in the json format and the peripheral address information returned by the server address are read. It should be noted that, in this embodiment, the peripheral address information displayed in json format includes, but is not limited to: neighborwood denotes a neighbor; building is represented by building; province denotes province (prefecture city); township denotes town streets, etc.; the district represents the administrative district; street number represents the number of the road doorplate.
It should be noted that, by further acquiring the second return address information and the peripheral address information corresponding to the latitude and longitude information, the user can acquire more address information related to the address to be queried, thereby further improving the user experience.
As a preferred embodiment, after sending the address to be queried to the map server and acquiring the corresponding positive address information, the method further includes:
and obtaining the segmented address information according to the first return address information.
It is understood that the segmented address information refers to that the first return address information is segmented by word segmentation according to a preset segmentation rule, for example, according to the level of province, city and county, so as to obtain segmented address information. Specifically, in the actual operation, the map server may perform a segmentation operation on the first return address information according to a preset segmentation rule, or the client may perform a segmentation operation on the first return address information according to a preset segmentation rule after receiving the first return address information returned by the map server, to obtain the segmentation address information.
Therefore, the segmented address information is obtained according to the first return address information, so that a user can check the address information more conveniently, and other analysis operations can be performed by using the segmented address information conveniently in the following process.
On the basis of the foregoing embodiment, this embodiment further describes and optimizes the technical solution, and specifically, in this embodiment, after the address to be queried is obtained, the method further includes:
acquiring city information corresponding to an address to be inquired;
correspondingly, the process of sending the address to be queried to the map server and acquiring the corresponding positive address information specifically comprises the following steps:
and sending the address to be inquired and the city information to a map server to obtain corresponding positive address information.
In this embodiment, after the address to be queried is obtained, the city information corresponding to the address to be queried is further obtained, specifically, the city information input by the user is received, or the user directly analyzes the city information according to the address information to be queried to perform selection confirmation; after the city information is obtained, the address to be inquired and the city information are sent to a map server, and corresponding positive address information is obtained.
It can be understood that, in an actual operation, if the address to be queried is not comprehensive enough, a situation that the positive address information queried and the address to be queried do not correspond may be caused, for example, when the address to be queried is "golden road 2229", since a plurality of golden roads exist in the whole country, the positive address information corresponding to the address to be queried cannot be accurately determined.
In this embodiment, the address to be queried and the city information are sent to the map server, so that the map server searches for corresponding positive address information in the range corresponding to the city information, and thus the accuracy of determining the positive address information can be further improved, and the accuracy of determining the target address corresponding to the address to be queried is improved.
It should be noted that, in actual operation, an output address file may be further set, where the output address file may include positive address information (first return address information, latitude and longitude information), second return address information, peripheral address information, and segment address information. The file format of the output address file may be as shown in table 3.
Table 3 output address file format
Figure BDA0002349991140000121
Therefore, the address information obtained according to the address to be queried is displayed according to the output address file format mode provided by the embodiment, the output address file is determined, the first return address information, the longitude and latitude information, the peripheral address information, the segmented address information, the target address and the like can be displayed more clearly and intuitively, the user can check the address information more conveniently, and the use experience of the user is further improved.
The above detailed description is made on the embodiments of the address information query method provided by the present invention, and the present invention also provides an address information query device, an apparatus, and a computer-readable storage medium corresponding to the method.
Fig. 2 is a structural diagram of an address information query apparatus according to an embodiment of the present invention, and as shown in fig. 2, the address information query apparatus includes:
a first obtaining module 21, configured to obtain an address to be queried;
the first query module 22 is configured to send the address to be queried to the map server, and obtain corresponding positive address information; the positive address information comprises first return address information and latitude and longitude information;
the second query module 23 is configured to send the latitude and longitude information to the map server, and acquire second return address information corresponding to the latitude and longitude information;
a judging module 24, configured to judge whether the first return address information and the second return address information are consistent; if the two are consistent, calling a first execution module; if not, calling a second execution module;
the first execution module 25 is configured to determine, according to the first return address information, a target address corresponding to the address to be queried;
the second execution module 26 is configured to complement the first return address information with the second return address information, and determine a target address corresponding to the address to be queried according to the complemented first return address information.
The address information query device provided by the embodiment of the invention has the beneficial effects of the address information query method.
As a preferred embodiment, when there are a plurality of addresses to be queried, the first query module 22 specifically includes:
the first splicing unit is used for splicing the multiple addresses to be inquired according to a first preset splicing format;
and the first query unit is used for sending the spliced multiple addresses to be queried to the map server and acquiring positive address information corresponding to the addresses to be queried.
As a preferred embodiment, the second query module 23 specifically includes:
the second splicing unit is used for splicing the longitude and latitude information according to a second preset splicing format;
and the second query unit is used for sending the spliced longitude and latitude information to the map server and acquiring second return address information corresponding to each longitude and latitude information.
As a preferred embodiment, the first query module 22 specifically includes:
and the first query submodule is used for sending each address to be queried to the map server in a multithreading mode and acquiring positive address information corresponding to each address to be queried.
As a preferred embodiment, the second query module 23 specifically includes:
and the second query submodule is used for sending the longitude and latitude information to the map server and acquiring second return address information and peripheral address information corresponding to the longitude and latitude information.
As a preferred embodiment, further comprising:
and the segmentation module is used for obtaining segmented address information according to the first return address information.
As a preferred embodiment, further comprising:
the second acquisition module is used for acquiring the city information corresponding to the address to be inquired;
correspondingly, the first query module specifically includes:
and the second query subunit is used for sending the address to be queried and the city information to the map server and acquiring the corresponding positive address information.
Fig. 3 is a structural diagram of an address information query device according to an embodiment of the present invention, and as shown in fig. 3, an address information query device includes:
a memory 31 for storing a computer program;
and a processor 32, configured to implement the steps of the above-mentioned address information query method when executing the computer program.
The address information query device provided by the embodiment of the invention has the beneficial effects of the address information query method.
In order to solve the above technical problem, the present invention further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by a processor, implements the steps of the above method for querying address information.
The computer-readable storage medium provided by the embodiment of the invention has the beneficial effect of the address information query method.
The method, apparatus, device and computer readable storage medium for querying address information provided by the present invention are described in detail above. The principles and embodiments of the present invention are explained herein using specific examples, which are set forth only to help understand the method and its core ideas of the present invention. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this 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.

Claims (10)

1. A method for querying address information is characterized by comprising the following steps:
acquiring an address to be queried;
sending the address to be inquired to a map server to obtain corresponding positive address information; the positive address information comprises first return address information and latitude and longitude information;
sending the longitude and latitude information to the map server, and acquiring second return address information corresponding to the longitude and latitude information;
judging whether the first return address information and the second return address information are consistent;
if the address information is consistent with the address information, determining a target address corresponding to the address to be inquired according to the first return address information;
and if the address to be inquired is inconsistent with the address to be inquired, complementing the first return address information by using the second return address information, and determining a target address corresponding to the address to be inquired according to the complemented first return address information.
2. The method according to claim 1, wherein when the number of the addresses to be queried is multiple, the process of sending the addresses to be queried to a map server to obtain corresponding positive address information specifically includes:
splicing the plurality of addresses to be inquired according to a first preset splicing format;
and sending the spliced multiple addresses to be inquired to the map server to acquire positive address information corresponding to each address to be inquired.
3. The method according to claim 2, wherein the process of sending the latitude and longitude information to the map server and acquiring the second return address information corresponding to the latitude and longitude information specifically includes:
splicing the longitude and latitude information according to a second preset splicing format;
and sending the spliced longitude and latitude information to the map server to acquire second return address information corresponding to each longitude and latitude information.
4. The method according to claim 1, wherein when the number of the addresses to be queried is multiple, the process of sending the addresses to be queried to a map server to obtain corresponding positive address information specifically includes:
and sending each address to be inquired to the map server in a multithreading mode, and acquiring positive address information corresponding to each address to be inquired.
5. The method according to claim 1, wherein the process of sending the latitude and longitude information to the map server and acquiring the second return address information corresponding to the latitude and longitude information specifically includes:
and sending the longitude and latitude information to the map server, and acquiring second return address information and peripheral address information corresponding to the longitude and latitude information.
6. The method according to claim 1, wherein after the sending the address to be queried to the map server and acquiring the corresponding positive address information, the method further comprises:
and obtaining segmented address information according to the first return address information.
7. The method according to any one of claims 1 to 6, further comprising, after the obtaining the address to be queried:
acquiring city information corresponding to the address to be inquired;
correspondingly, the process of sending the address to be queried to the map server to obtain the corresponding positive address information specifically includes:
and sending the address to be inquired and the city information to the map server to obtain corresponding positive address information.
8. An apparatus for querying address information, comprising:
the first acquisition module is used for acquiring an address to be inquired;
the first query module is used for sending the address to be queried to a map server to acquire corresponding positive address information; the positive address information comprises first return address information and latitude and longitude information;
the second query module is used for sending the longitude and latitude information to the map server and acquiring second return address information corresponding to the longitude and latitude information;
the judging module is used for judging whether the first return address information is consistent with the second return address information; if the two are consistent, calling a first execution module; if not, calling a second execution module;
the first execution module is used for determining a target address corresponding to the address to be inquired according to the first return address information;
and the second execution module is used for complementing the first return address information by using the second return address information and determining a target address corresponding to the address to be inquired according to the complemented first return address information.
9. An apparatus for querying address information, comprising:
a memory for storing a computer program;
processor for implementing the steps of the method for querying address information according to any one of claims 1 to 7 when executing said computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored on the computer-readable storage medium, which computer program, when being executed by a processor, carries out the steps of the method of querying address information according to any one of claims 1 to 7.
CN201911411141.1A 2019-12-31 2019-12-31 Address information query method, device, equipment and storage medium Pending CN111177589A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911411141.1A CN111177589A (en) 2019-12-31 2019-12-31 Address information query method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911411141.1A CN111177589A (en) 2019-12-31 2019-12-31 Address information query method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111177589A true CN111177589A (en) 2020-05-19

Family

ID=70655962

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911411141.1A Pending CN111177589A (en) 2019-12-31 2019-12-31 Address information query method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111177589A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914013A (en) * 2020-08-13 2020-11-10 傲普(上海)新能源有限公司 Data management method, system, terminal and medium based on pandas database and InfluxDB database
CN112052406A (en) * 2020-08-28 2020-12-08 深圳市彬讯科技有限公司 Method, device and equipment for acquiring service area and readable storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225725A1 (en) * 2001-05-31 2003-12-04 Miller Julia K. System and method for geocoding diverse address formats
US20130139044A1 (en) * 2011-11-28 2013-05-30 Google Inc. System and method for obtaining a structured address by geocoding unstructured address information
CN103475700A (en) * 2013-08-28 2013-12-25 小米科技有限责任公司 Method, device and terminal for obtaining address information
CN104280042A (en) * 2014-09-30 2015-01-14 深圳市微思客技术有限公司 Method and device for acquiring navigation information
CN104537102A (en) * 2015-01-13 2015-04-22 蔡树彬 Positive geocoding service method and system for obtaining longitude and latitude
CN105005577A (en) * 2015-05-08 2015-10-28 裴克铭管理咨询(上海)有限公司 Address matching method
CN105022747A (en) * 2014-04-28 2015-11-04 高德软件有限公司 Address query string parsing method and apparatus
US20160328430A1 (en) * 2014-11-05 2016-11-10 Wingarc1St Inc. Address/latitude and longitude converting device and geographical information system using the same
CN106991185A (en) * 2017-04-10 2017-07-28 携程计算机技术(上海)有限公司 The hotel's latitude and longitude information maintaining method and system of OTA websites
US20190258735A1 (en) * 2018-02-20 2019-08-22 Sap Se System and method for anonymizing address data
CN110378634A (en) * 2018-07-09 2019-10-25 北京京东尚科信息技术有限公司 A kind of method and apparatus generating dispatching address

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030225725A1 (en) * 2001-05-31 2003-12-04 Miller Julia K. System and method for geocoding diverse address formats
US20130139044A1 (en) * 2011-11-28 2013-05-30 Google Inc. System and method for obtaining a structured address by geocoding unstructured address information
CN103475700A (en) * 2013-08-28 2013-12-25 小米科技有限责任公司 Method, device and terminal for obtaining address information
CN105022747A (en) * 2014-04-28 2015-11-04 高德软件有限公司 Address query string parsing method and apparatus
CN104280042A (en) * 2014-09-30 2015-01-14 深圳市微思客技术有限公司 Method and device for acquiring navigation information
US20160328430A1 (en) * 2014-11-05 2016-11-10 Wingarc1St Inc. Address/latitude and longitude converting device and geographical information system using the same
CN104537102A (en) * 2015-01-13 2015-04-22 蔡树彬 Positive geocoding service method and system for obtaining longitude and latitude
CN105005577A (en) * 2015-05-08 2015-10-28 裴克铭管理咨询(上海)有限公司 Address matching method
CN106991185A (en) * 2017-04-10 2017-07-28 携程计算机技术(上海)有限公司 The hotel's latitude and longitude information maintaining method and system of OTA websites
US20190258735A1 (en) * 2018-02-20 2019-08-22 Sap Se System and method for anonymizing address data
CN110378634A (en) * 2018-07-09 2019-10-25 北京京东尚科信息技术有限公司 A kind of method and apparatus generating dispatching address

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
路人乙小明: "[API]用高德API帮助医生补全病案首页现住址", 《HTTPS://ZHUANLAN.ZHIHU.COM/P/84222887?UTM_ID=0》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111914013A (en) * 2020-08-13 2020-11-10 傲普(上海)新能源有限公司 Data management method, system, terminal and medium based on pandas database and InfluxDB database
CN111914013B (en) * 2020-08-13 2023-02-28 傲普(上海)新能源有限公司 Data management method, system, terminal and medium based on pandas database and InfluxDB database
CN112052406A (en) * 2020-08-28 2020-12-08 深圳市彬讯科技有限公司 Method, device and equipment for acquiring service area and readable storage medium

Similar Documents

Publication Publication Date Title
CN107656913B (en) Map interest point address extraction method, map interest point address extraction device, server and storage medium
US20160055177A1 (en) Search recommendation method and apparatus for map search, computer storage medium, and device
US8782041B1 (en) Text search for weather data
CN103268730B (en) Electronic map interface shows the method and apparatus of association mark point
US20130054647A1 (en) Information processing apparatus, information processing method, and program
CN101350012A (en) Method and system for matching address
CN101350013A (en) Method and system for searching geographical information
CN107291713B (en) Prompting method, terminal and server for searching keywords of interest points
US20120109942A1 (en) Identifying physical locations of entities
CN105808609A (en) Discrimination method and equipment of point-of-information data redundancy
US8650024B1 (en) Generating address term synonyms
CN113177058B (en) Geographic position information retrieval method and system based on composite condition
US11473926B2 (en) Method and apparatus for displaying road names, and storage medium
JPWO2019069505A1 (en) Information processing device, join condition generation method and join condition generation program
CN105608113A (en) Method and apparatus for judging POI data in text
US20230049839A1 (en) Question Answering Method for Query Information, and Related Apparatus
CN111177589A (en) Address information query method, device, equipment and storage medium
CN104572946A (en) Method and device for processing data of yellow pages
CN110427574B (en) Route similarity determination method, device, equipment and medium
CN106897432B (en) System and method for crawling landmark information in electronic map
CN111896016A (en) Position information processing method and device, storage medium and terminal
KR20170073693A (en) Extracting similar group elements
CN101957820A (en) Method and device for generating doorplate information library
CN111538796A (en) Address normalization processing method, device, equipment and storage medium
CN111523433A (en) Express mail terminal address standardization processing method, device and equipment

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

Application publication date: 20200519

RJ01 Rejection of invention patent application after publication