JPH04267477A - Range retrieving system by mesh coding of address - Google Patents

Range retrieving system by mesh coding of address

Info

Publication number
JPH04267477A
JPH04267477A JP3028304A JP2830491A JPH04267477A JP H04267477 A JPH04267477 A JP H04267477A JP 3028304 A JP3028304 A JP 3028304A JP 2830491 A JP2830491 A JP 2830491A JP H04267477 A JPH04267477 A JP H04267477A
Authority
JP
Japan
Prior art keywords
code
mesh
axis
range
search
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
JP3028304A
Other languages
Japanese (ja)
Inventor
Takayuki Hori
貴之 堀
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.)
NEC Solution Innovators Ltd
Original Assignee
NEC Software Kyushu 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 NEC Software Kyushu Ltd filed Critical NEC Software Kyushu Ltd
Priority to JP3028304A priority Critical patent/JPH04267477A/en
Publication of JPH04267477A publication Critical patent/JPH04267477A/en
Pending legal-status Critical Current

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

PURPOSE:To facilitate the retrieve processing of address data in an arbitrary range with the quantity of data and to prevent the retrieving processing and the address data from being affected even when the names of cities, towns and villages are changed, with the geographical two-dimensional data by mesh- coding the address data on a map. CONSTITUTION:All retrieval object areas on the map are divided into equal intervals in an X-Y axis direction and a code is imparted (steps 101 and 102.) The X-axis and Y-axis codes are imparted to each address present in the framework on the map shown by the X-axis and Y--axis codes, the address is mesh- coded and stored(step 103). By the X-axis and Y-axis codes on the map, the retrieval range is designated with an FROM.TO method(step 201). The mesh code in the range shown with the FROM.TO code designated is generated, the mesh code in the range and the mesh code of the stored address are collated with each other and the coincident and corresponding address data are outputted as the retrieved result (steps 202 and 203).

Description

【発明の詳細な説明】[Detailed description of the invention]

【0001】0001

【産業上の利用分野】本発明は、大量の住所データに対
し特定の範囲に存在する住所のメッシュコード化による
範囲検索方式に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a range search method for a large amount of address data by mesh-coding addresses existing in a specific range.

【0002】0002

【従来の技術】従来、特定範囲内に存在する住所の検索
は、検索範囲の指定の度に指定された範囲内に物理的に
存在する全ての住所のデータを持ち、検索の対象となる
全住所データと照合していた。
[Prior Art] Conventionally, in searching for addresses existing within a specific range, each time a search range is specified, data of all addresses that physically exist within the specified range are collected, and all addresses that are the subject of the search are searched. It was checked against address data.

【0003】また、市町村名等の変更が生じると、その
都度検索処理自体の変更を行い対処していた。
[0003] Furthermore, whenever a change in the name of a city, town, village, etc. occurs, the search process itself is changed each time.

【0004】0004

【発明が解決しようとする課題】上述した従来の検索方
式では、検索範囲に存在する全住所データを持たなけれ
ばならず、加えて一個の検索対象データに対して、検索
範囲内の全住所データとの照合を行わなければならなか
ったので、大量のデータと複雑な処理を必要とする欠点
があった。
[Problems to be Solved by the Invention] In the conventional search method described above, it is necessary to have all address data within the search range, and in addition, for one search target data, all address data within the search range must be stored. This had the disadvantage of requiring a large amount of data and complex processing.

【0005】また、市町村名等の変更があると、その都
度検索処理自体の変更が生じ、保守性という面でも問題
があった。
[0005] Furthermore, whenever there is a change in the name of a city, town, village, etc., the search process itself must be changed each time, which poses a problem in terms of maintainability.

【0006】[0006]

【課題を解決するための手段】本発明の住所のメッシュ
コード化による範囲検索方式は、対象地域全体をX軸お
よびY軸方向に一定の間隔で桝目上に分割する手段と、
前記分割されたX軸およびY軸に対し分割単位毎に各々
予じめ定めたコードを付与する手段と、検索の対象とな
る全住所データに対し地図上でその住所が実際に存在す
る桝のX軸およびY軸上の前記コードをメッシュコード
として付与する手段と、検索時前記対象地域の検索した
い範囲を正方形または長方形の形で表し、その左上およ
び右下の頂点が属する桝のメッシュコードを検索範囲と
して指定する手段と、前記2点により指定された検索範
囲内に含まれる前記付与されたメッシュコードを生成し
出力する検索範囲内メッシュコード生成手段と、前記出
力された検索範囲内メッシュコードと検索対象となる前
記付与された住所メッシュコードとを照合し前記検索範
囲内全メッシュコードのいずれかに一致する住所メッシ
ュコードに対応する住所データを出力する手段とを有す
る。
[Means for Solving the Problems] The range search method based on address mesh coding of the present invention includes means for dividing the entire target area into squares at regular intervals in the X-axis and Y-axis directions;
A means for assigning predetermined codes to the divided X-axis and Y-axis for each division unit, and a means for assigning predetermined codes to the divided X-axis and Y-axis for each division unit, and a means for assigning a predetermined code to each of the divided Means for assigning the codes on the X and Y axes as mesh codes, and a means for expressing the range to be searched in the target area in the form of a square or rectangle at the time of search, and assigning the mesh code of the square to which the upper left and lower right vertices belong. means for specifying as a search range; means for generating and outputting the given mesh code included in the search range specified by the two points; and mesh code within the search range that is outputted. and means for comparing the assigned address mesh code to be searched and outputting address data corresponding to an address mesh code that matches any one of all the mesh codes within the search range.

【0007】[0007]

【実施例】本発明について図面を参照して説明する。DESCRIPTION OF THE PREFERRED EMBODIMENTS The present invention will be explained with reference to the drawings.

【0008】図1は本発明の一実施例を示す処理フロー
チャートである。本発明は、大きく分けて、地図上の検
索対象地域の住所のメッシュコード化(ステップ100
)と、検索範囲指定と指定された範囲内のメッシュコー
ドによる住所の照合抽出(ステップ200)がある。
FIG. 1 is a processing flowchart showing one embodiment of the present invention. The present invention can be broadly divided into mesh coding of addresses in search target areas on a map (step 100).
), a search range is specified, and an address is collated and extracted using a mesh code within the specified range (step 200).

【0009】住所のメッシュコード化(ステップ100
)は、地図上の検索対象全地域をX・Y軸方向に等間隔
に分割する(ステップ101)。次にX軸およびY軸方
向にそれぞれ任意のコードを付与する(ステップ102
)。続いて、分割付与されたX軸およびY軸コードが示
す地図上の桝内に存在する各住所に対しこのX軸,Y軸
コードを付与し、住所のメッシュコード化を行い記憶し
ておく(ステップ103)。
Mesh coding of address (step 100)
) divides the entire search target area on the map into equal intervals in the X and Y axis directions (step 101). Next, arbitrary codes are assigned to each of the X-axis and Y-axis directions (step 102
). Next, the X-axis and Y-axis codes are assigned to each address existing within the box on the map indicated by the divided X-axis and Y-axis codes, and the addresses are converted into mesh codes and stored ( Step 103).

【0010】住所の照合抽出(ステップ200)は、分
割コードが付与された地図上で、X軸コードとY軸コー
ドとで検索範囲の始点および終点の指定、すなわち、F
ROM・TO指定方法により範囲をコード指定する(ス
テップ201)。次に、指定されたFROM・TOコー
ドで示される範囲内のメッシュコードを生成する(ステ
ップ202)。このとき、生成されるメッシュコードの
数は、指定された範囲が大きければ、複数存在すること
になる。次に、生成された範囲内のメッシュコードと記
憶されている住所のメッシュコードとを照合し、範囲内
のメッシュコードと一致する住所のメッシュコードを抽
出し、抽出された住所のメッシュコードに対応する住所
データを検索結果として出力する(ステップ203)。
[0010] Address matching and extraction (step 200) involves specifying the start and end points of the search range using the X-axis code and Y-axis code on the map to which division codes have been assigned, that is, F
The range is designated by code using the ROM/TO designation method (step 201). Next, a mesh code within the range indicated by the specified FROM/TO code is generated (step 202). At this time, if the specified range is large, a plurality of mesh codes will be generated. Next, match the generated mesh code within the range with the mesh code of the stored address, extract the mesh code of the address that matches the mesh code within the range, and correspond to the mesh code of the extracted address. address data is output as a search result (step 203).

【0011】図2以降を用いてさらに説明する。図2に
示すように地図上の対象地域を大分割として、例えば5
km単位にX軸方向に20,Y軸方向に15に分割し、
各々AからT,AからOの英字コードを付与する。次に
、図3に示すように大分割区域を更にX軸方向およびY
軸方向に500m単位10個に分割し、各々0から9の
数字コードを割当てる。よって例えば図3の斜線部分の
メッシュコードは、「DH36」となる。
[0011] This will be further explained using FIG. 2 and subsequent figures. As shown in Figure 2, the target area on the map is divided into 5 areas, for example.
Divide into 20 in the X-axis direction and 15 in the Y-axis direction in km units,
Each is given an alphabetic code from A to T and from A to O. Next, as shown in Figure 3, the large divided area is
It is divided into 10 units of 500 m in the axial direction, and each is assigned a numerical code from 0 to 9. Therefore, for example, the mesh code in the shaded area in FIG. 3 is "DH36".

【0012】このようにして得られたメッシュコードが
示す桝内に存在する各住所に対しこのメッシュコードを
付与し、住所のメッシュコード化を行い例えば記憶装置
等(図示せず)に記憶しておく。その住所メッシュコー
ドの記憶構造は、例えば図4に示す形態があり、5km
コード,500mコード1のそれぞれX軸2,Y軸3の
枠に格納される。
[0012] This mesh code is assigned to each address existing in the box indicated by the mesh code obtained in this way, and the address is converted into a mesh code and stored in, for example, a storage device (not shown). put. The storage structure of the address mesh code is, for example, as shown in Figure 4.
code and 500m code 1 are stored in the X-axis 2 and Y-axis 3 frames, respectively.

【0013】また、検索時は、実際には存在し得ない住
所、例えば海上等の不正なメッシュコードによる無駄な
検索を省くために、実際に存在し得ないメッシュコード
をチェックコードテーブル(図示せず)に設定しておく
[0013] Also, when searching, in order to avoid unnecessary searches due to invalid mesh codes for addresses that cannot actually exist, such as locations on the sea, a check code table (as shown in the figure) is used to check mesh codes that cannot actually exist. ).

【0014】次に検索について説明する。図5に示すよ
うに分割された地図上の斜線で示す検索範囲内に存在す
る住所を検索する場合を例にする。先ず、検索用5km
単位メッシュコード(以下5kmメッシュコードとする
)の生成方法について図5,図6を用いて説明する。 図5で、検索範囲である斜線部四角形の左上頂点のメッ
シュコード「DA66」をFROMコード,右下頂点の
メッシュコード「AE33」をTOコードとする。
Next, search will be explained. Let us take as an example a case where an address existing within a search range indicated by diagonal lines on a divided map as shown in FIG. 5 is to be searched. First, search 5km
A method of generating a unit mesh code (hereinafter referred to as a 5km mesh code) will be explained using FIGS. 5 and 6. In FIG. 5, the mesh code "DA66" at the upper left corner of the diagonally shaded rectangle that is the search range is set as the FROM code, and the mesh code "AE33" at the lower right corner is set as the TO code.

【0015】次にFROMコードの5kmY軸コード1
1の文字「D」を図6のY軸コードテーブル15より見
つけ、その位置から図5のTOコードの5kmY軸コー
ド13の文字「A」が現れるまでの、図6のY軸コード
テーブル15上の全ての文字コードをY軸コード出力テ
ーブル17に出力し、出力したコードの件数をY軸コー
ド出力カウンタ21に設定する。
Next, the 5km Y-axis code 1 of the FROM code
Find the letter "D" of 1 in the Y-axis code table 15 of FIG. 6, and from that position until the letter "A" of the 5km Y-axis code 13 of the TO code of FIG. 5 appears on the Y-axis code table 15 of FIG. All character codes are output to the Y-axis code output table 17, and the number of output codes is set to the Y-axis code output counter 21.

【0016】また、FROMコードの5kmX軸コード
12およびTOコードの5kmX軸コード14について
も同様の処理を行い、X軸コードテーブル16より「A
」から「E」までのコードをX軸コード出力テーブル1
8に出力し、出力件数をX軸コード出力カウンタ22に
設定する。
Similar processing is also performed for the 5km X-axis code 12 of the FROM code and the 5km X-axis code 14 of the TO code, and from the X-axis code table 16 "A
” to “E” to the X-axis code output table 1
8 and set the output number in the X-axis code output counter 22.

【0017】更に、生成されたX軸コード出力テーブル
17およびY軸コード出力テーブル18上のコードを1
コードずつ組み合せ、5kmコード出力テーブル20に
出力し、出力件数を5kmコード出力カウンタ23に設
定する。但し、その時組み合せされたコードがチェック
コードテーブル19内の何れかと一致すれば、不正なメ
ッシュコードとして5kmコード出力テーブル20には
出力せず5kmコード出力カウンタ23にも加えない。
Furthermore, the codes on the generated X-axis code output table 17 and Y-axis code output table 18 are
The codes are combined one by one, outputted to the 5km code output table 20, and the number of outputs is set in the 5km code output counter 23. However, if the combined code at that time matches any of the codes in the check code table 19, it will not be output to the 5km code output table 20 and will not be added to the 5km code output counter 23 as an invalid mesh code.

【0018】次に500mコードの生成方法について説
明する。この500mコード生成方法は、範囲指定の態
様により処理が異なるためそれぞれ個別に説明する。
Next, a method of generating a 500m code will be explained. Since the processing of this 500m code generation method differs depending on the mode of range specification, each method will be explained separately.

【0019】図7(a)(b)(c)(d)はそれぞれ
範囲指定の態様の例を示す図である。態様の差異は5k
mコード生成時の図6にあるY軸コード出力カウンタ2
1およびX軸コード出力カウンタ226の値により判別
することが出来る。
FIGS. 7(a), 7(b), 7(c), and 7(d) are diagrams showing examples of range designation, respectively. The difference in aspects is 5k
Y-axis code output counter 2 in Figure 6 when m code is generated
1 and the value of the X-axis code output counter 226.

【0020】すなわち、図7(a)は、Y軸コード出力
カウンタ21およびX軸コード出力カウンタ22の値が
ともに「1」である時、1桝タイプ24であることを示
し、同(b)は、Y軸コード出力カウンタ21の値が「
1」でX軸コード出力カウンタ22の値が「2以上」で
ある時、横長タイプ25であることを示し、同(c)は
、Y軸コード出力カウンタ21の値が「2以上」でX軸
コード出力カウンタ22の値が「1」である時、縦長タ
イプ26であることを示し、同(d)は、Y軸コード出
力カウンタ21およびX軸コード出力カウンタ22の値
がともに「2以上」である時、その他タイプ27である
ことを示している。
That is, FIG. 7(a) shows that when the values of the Y-axis code output counter 21 and the X-axis code output counter 22 are both "1", it is the 1 square type 24, and the same , the value of the Y-axis code output counter 21 is "
1'' and the value of the X-axis code output counter 22 is ``2 or more'', it indicates the horizontal type 25, and (c) indicates that the value of the Y-axis code output counter 21 is ``2 or more'' and the When the value of the axis code output counter 22 is "1", it indicates that the vertical type 26 is used. ” indicates that it is other type 27.

【0021】次にそれぞれの処理について詳細に説明す
るが、1桝タイプ24はただ単にFROM・TOコード
の各々の500mコードを結合し図8に示す検索テーブ
ルの500mコード35に出力するだけである。しかし
、他のタイプの処理も全て最終的には1桝分毎にメッシ
ュコードを生成するのであり、この1桝タイプの処理は
共通に用いられる。
Next, each process will be explained in detail. The 1-cell type 24 simply combines the 500m codes of the FROM and TO codes and outputs them to the 500m code 35 of the search table shown in FIG. . However, all other types of processing ultimately generate a mesh code for each square, and this single square type processing is commonly used.

【0022】図9は横長タイプ25の処理について示し
たフローチャートである。処理カウンタには初期値「0
」が与えられ(ステップ35)、次に処理カウンタを1
加算し(ステップ36)、図8に示す検索テーブルの5
kmコード28に処理カウンタの値を添字の値として図
6の5kmコード出力テーブル20から得られる5km
コードを移送する(ステップ37)。更に、図8のメッ
シュコードの500mFROMコード29に、図5の検
索範囲を指定したFROMコードの500mコードを移
送する(ステップ38)。そこで処理カウンタの値を判
断し(ステップ39)、値が「1」であれば処理1を行
い(ステップ40)、ステップ36に戻る。値が「1」
でなければ、再び処理カウンタの値を判断し(ステップ
41)、図6で示すX軸コード出力カウンタ22の値よ
り小さければ処理2を行い(ステップ42)、ステップ
36に戻る。X軸コード出力カウンタ22より小さくな
ければ処理3を行い(ステップ43)、処理を終了する
FIG. 9 is a flowchart showing the process for landscape type 25. The processing counter has an initial value of 0.
” is given (step 35), and then the processing counter is set to 1.
5 of the search table shown in FIG.
5km obtained from the 5km code output table 20 in FIG. 6 by adding the value of the processing counter to the km code 28 as the subscript value.
Transport the code (step 37). Furthermore, the 500m code of the FROM code specifying the search range in FIG. 5 is transferred to the 500m FROM code 29 of the mesh code in FIG. 8 (step 38). Then, the value of the processing counter is determined (step 39), and if the value is "1", processing 1 is performed (step 40), and the process returns to step 36. The value is "1"
If not, the value of the processing counter is judged again (step 41), and if it is smaller than the value of the X-axis code output counter 22 shown in FIG. 6, processing 2 is performed (step 42), and the process returns to step 36. If the value is not smaller than the X-axis code output counter 22, process 3 is performed (step 43), and the process ends.

【0023】ここで延べる処理1は、図8で示す検索テ
ーブルのTOコードX軸34に「9」を移送し、処理2
は、検索テーブルのFROMコードX軸32に「0」を
、TOコードX軸34に「9」を移送し、処理3は、検
索テーブルのFROMコードX軸34に「0」を移送す
る。すなわち、図10に示すように、1桝単位で検索用
メッシュコードを生成することになる。
Process 1, which will be discussed here, transfers "9" to the TO code X axis 34 of the search table shown in FIG.
moves "0" to the FROM code X-axis 32 of the search table and "9" to the TO code X-axis 34, and process 3 moves "0" to the FROM code X-axis 34 of the search table. That is, as shown in FIG. 10, a search mesh code is generated for each cell.

【0024】図11は縦長タイプ26の処理について示
したフローチャートである。但し、全体的な処理の流れ
は横長タイプの処理と同一なので、処理の異る処理1,
処理2および処理3についてのみ説明する。
FIG. 11 is a flowchart showing the process for portrait type 26. However, the overall process flow is the same as the horizontal type process, so the process 1, which has different processes,
Only Process 2 and Process 3 will be explained.

【0025】ここでの処理1では、図8に示す検索テー
ブルのTOコードY軸33に「9」を、処理2では検索
テーブルのFROMコードY軸31に「0」、TOコー
ドY軸33に「9」を、処理3では検索テーブルのFR
OMコードY軸31に「0」をそれぞれ移送する。すな
わち、図12に示すように1桝単位に検索用メッシュコ
ードを生成することになる。
In processing 1 here, "9" is set on the TO code Y-axis 33 of the search table shown in FIG. "9" is the FR of the search table in process 3.
“0” is transferred to the OM code Y-axis 31, respectively. That is, as shown in FIG. 12, a search mesh code is generated for each cell.

【0026】図13はその他タイプ27の処理について
示したフローチャートである。このタイプの処理は検索
範囲指定のFROMコードの内容をワークエリアを使用
して変更し、そのワークエリアをあたかもFROM・T
Oコードの様に見なして横長タイプ処理を行い、最終的
に500mメッシュコードを生成するので、図14(a
)(b)に各ワークエリアのデータ構成を示し説明する
FIG. 13 is a flowchart showing processing of other type 27. This type of processing uses a work area to change the contents of the FROM code that specifies the search range, and then changes the work area as if it were FROM/T.
It treats it like an O code and performs horizontal type processing, and finally generates a 500m mesh code.
) (b) shows and explains the data structure of each work area.

【0027】まず、処理カウンタには初期値として「1
」が与えられ(ステップ53)、図14(a)で示すF
ROMコードワークエリア70に図5の検索範囲を指定
したFROMコードをそのまま移送し(ステップ54)
、同じく図14(b)で示すTOコードワークエリア7
5に図5のTOコードをそのまま移送する(ステップ5
5)。次に処理カウンタの値を判断し(ステップ56)
、図6に示すY軸コード出力カウンタ21の値より大き
ければ処理を終了し、大きくなければ図14で示すFR
OMコードワークエリア5kmコード66に、図6に示
す5kmコード出力テーブル20から処理カウンタを1
減じた値と図6に示すX軸コード出力カウンタ22の値
を掛け合せた値に1加算した値を添字の値として得られ
る5kmコードを移送する(ステップ57)。
First, the processing counter has an initial value of "1".
” is given (step 53), and F shown in FIG. 14(a)
The FROM code with the search range specified in FIG. 5 is transferred to the ROM code work area 70 (step 54).
, TO code work area 7 also shown in Figure 14(b)
5, transfer the TO code in Figure 5 as it is (Step 5
5). Next, determine the value of the processing counter (step 56).
, if the value is larger than the value of the Y-axis code output counter 21 shown in FIG.
In the OM code work area 5km code 66, set the processing counter 1 from the 5km code output table 20 shown in FIG.
A 5 km code obtained by adding 1 to the value obtained by multiplying the subtracted value by the value of the X-axis code output counter 22 shown in FIG. 6 is transferred (step 57).

【0028】更に、図14(b)に示すTOコードワー
クエリア5kmコード71に、図6に示す5kmコード
出力テーブル20から処理カウンタの値と図6に示すX
軸コード出力カウンタ22の値とを掛け合せた値を添字
の値として得られる5kmコードを移送する(ステップ
58)。
Furthermore, in the TO code work area 5km code 71 shown in FIG. 14(b), the value of the processing counter and the X shown in FIG.
The 5km code obtained by multiplying the value of the axis code output counter 22 by using the subscript value is transferred (step 58).

【0029】そこで処理カウンタの値を判断し(ステッ
プ59)、その値が「1」ならば処理1を行い(ステッ
プ60)、ステップ64へと進む。値が「1」でなけれ
ば再び処理カウンタの値を判断し(ステップ61)、図
6に示すY軸コード出力カウンタ21の値と同一ならば
処理2を行い(ステップ62)、ステップ64へ進み、
同一でなければ処理3を行う(ステップ63)。ここで
処理1から3によって加工された図14のFROMコー
ドワークエリア70およびTOコードワークエリア75
をそれぞれ図5で示すようなFROMコードおよびTO
コードとして上述の図9で示す横長タイプの500mコ
ード生成処理を行って500mコードを生成し(ステッ
プ64)、処理カウンタの値を1加算して(ステップ6
5)、ステップ56へ戻る。
Then, the value of the processing counter is determined (step 59), and if the value is "1", processing 1 is performed (step 60), and the process proceeds to step 64. If the value is not "1", the value of the processing counter is judged again (step 61), and if it is the same as the value of the Y-axis code output counter 21 shown in FIG. 6, processing 2 is performed (step 62), and the process proceeds to step 64. ,
If they are not the same, process 3 is performed (step 63). Here, the FROM code work area 70 and TO code work area 75 in FIG. 14 processed by processes 1 to 3
FROM code and TO as shown in Figure 5, respectively.
As a code, perform the horizontal type 500m code generation process shown in FIG. 9 to generate a 500m code (step 64), and add 1 to the processing counter value (step
5), return to step 56.

【0030】ここで述べる処理1は図14のTOコード
ワークエリア500mコードY軸73に「9」を移送し
、処理2はFROMコードワークエリア500mコード
Y軸68に「0」を移送し、処理3はFROMコードワ
ークエリア500mコードY軸68に「0」を、TOコ
ードワークエリア500mコードY軸73に「9」を移
送する。
Processing 1 described here transfers "9" to the TO code work area 500m code Y-axis 73 in FIG. 14, and processing 2 transfers "0" to the FROM code work area 500m code Y-axis 68. 3 transfers "0" to the FROM code work area 500m code Y-axis 68 and "9" to the TO code work area 500m code Y-axis 73.

【0031】すなわち、図15に示すように、全体の検
索範囲を横長タイプ毎に分割し、それぞれ図9で示すよ
うな横長タイプ処理を行うことによって1桝単位毎の検
索用メッシュコードを生成することになる。
That is, as shown in FIG. 15, the entire search range is divided into horizontal types, and a mesh code for searching is generated for each square by performing horizontal type processing as shown in FIG. It turns out.

【0032】以上の処理により、上記実施例における図
8で示すような形式で検索範囲内全メッシュコードを生
成し、検索対象の住所メッシュコードとの照合し、同一
メッシュコードに対応する住所データを出力する。
Through the above processing, all mesh codes within the search range are generated in the format shown in FIG. 8 in the above embodiment, and are compared with the address mesh code to be searched to find address data corresponding to the same mesh code. Output.

【0033】すなわち、一件の検索対象住所メッシュコ
ードに対し、図4で示す5kmコード1が図8で示す検
索用メッシュコードの5kmコード28と同一であるか
判断し、同一ならば次に図4の500mコードY軸2が
図8のFROMコードY軸31とTOコードY軸33の
間にあり、かつ、図4の500mコードX軸3が図8の
FROMコードX軸32とTOコードX軸34の間にあ
るか判断し、その間にあれば対象住所データは検索範囲
内に存在するということになり、その間になければ検索
範囲外のデータということになる。また、5kmコード
が同一でない時は、次の検索用メッシュコードとの間で
上記処理を行い検索範囲内のデータと分るか、検索範囲
外のデータと分るか、または検索用メッシュコードを全
て参照し終るまで繰り返す。
That is, for one search target address mesh code, it is determined whether the 5km code 1 shown in FIG. 4 is the same as the 5km code 28 of the search mesh code shown in FIG. The 500m code Y-axis 2 of 4 is between the FROM code Y-axis 31 and the TO code Y-axis 33 of FIG. 8, and the 500m code X-axis 3 of FIG. It is determined whether the target address data is between the axes 34, and if it is between them, it means that the target address data exists within the search range, and if it is not between them, the data is outside the search range. In addition, if the 5km codes are not the same, the above processing is performed with the next search mesh code to determine whether the data is within the search range, data outside the search range, or the search mesh code is changed. Repeat until you have referenced everything.

【0034】これを検索対象住所データ全件分行うこと
により検索処理を終了することになる。
[0034] By performing this for all address data items to be searched, the search processing is completed.

【0035】また、これまで述べてきた実施例に対し、
検索の対象となる全地域の広さや検索の対象の内容等に
よりメッシュコードの付与方式、特に分割単位であるX
軸およびY軸コードの与え方は異ってくる。分割数が少
なければ上述のような5kmコードおよび500mコー
ドの生成といった二段階式のメッシュコードは不要であ
り一段階のみのメッシュコードで十分であろうし、X軸
およびY軸コードを双方共一連の数字データにすれば上
述のような5kmコード生成の処理は不要である。
[0035] Furthermore, in contrast to the embodiments described so far,
Depending on the size of the entire area to be searched and the contents of the search target, the mesh code assignment method, especially the division unit X
The way the axis and Y-axis codes are given differs. If the number of divisions is small, a two-stage mesh code such as the generation of the 5km code and 500m code as described above would be unnecessary, and a single-stage mesh code would be sufficient. If the data is converted into numerical data, the process of generating the 5km code as described above is not necessary.

【0036】[0036]

【発明の効果】以上説明したように本発明は、住所デー
タをメッシュコードという二次元データとして管理する
ことにより、任意の範囲における住所データの検索処理
を小量のデータで簡単に行えるという効果がある。
[Effects of the Invention] As explained above, the present invention has the advantage that by managing address data as two-dimensional data called mesh codes, it is possible to easily search for address data in any range using a small amount of data. be.

【0037】また、住所を地理的な二次元データとして
扱うので、市町村名等の変更が生じても検索処理および
住所データは何ら影響を受けることはなく、保守性が高
いという効果がある。
Furthermore, since addresses are treated as two-dimensional geographical data, search processing and address data are not affected in any way even if the name of a city, town, village, etc. is changed, resulting in high maintainability.

【図面の簡単な説明】[Brief explanation of the drawing]

【図1】本発明の一実施例を示す処理フローチャートで
ある。
FIG. 1 is a processing flowchart showing one embodiment of the present invention.

【図2】検索対象地域を5km単位に分割する例を示す
図である。
FIG. 2 is a diagram showing an example of dividing a search target area into 5 km units.

【図3】検索対象地域を500m単位に分割する例を示
す図である。
FIG. 3 is a diagram showing an example of dividing a search target area into units of 500 m.

【図4】住所メッシュコードの一例を示す図である。FIG. 4 is a diagram showing an example of an address mesh code.

【図5】(a)から(c)は検索範囲のFROM・TO
コード指定の一例を示す図である。
[Figure 5] (a) to (c) are search range FROM/TO
FIG. 3 is a diagram showing an example of code specification.

【図6】大分割単位である5kmコードを生成する例を
示す図である。
FIG. 6 is a diagram showing an example of generating a 5km code, which is a large division unit.

【図7】(a)から(d)は検索範囲指定の態様図であ
る。
FIGS. 7(a) to 7(d) are diagrams of how the search range is specified.

【図8】検索用メッシュコードを格納する検索用テーブ
ルを示す図である。
FIG. 8 is a diagram showing a search table that stores search mesh codes.

【図9】検索範囲指定横長タイプの500mコード生成
処理を示すフローチャートである。
FIG. 9 is a flowchart illustrating 500m code generation processing for horizontally long type search range specification.

【図10】横長タイプ処理の1桝単位メッシュコードの
生成処理を示すフローチャートである。
FIG. 10 is a flowchart illustrating a mesh code generation process for each cell in landscape type processing.

【図11】検索範囲指定縦長タイプの500mコード生
成処理を示すフローチャートである。
FIG. 11 is a flowchart illustrating search range specified vertical type 500m code generation processing.

【図12】縦長タイプ処理の1桝単位メッシュコードの
生成処理を示すフローチャートである。
FIG. 12 is a flowchart illustrating a mesh code generation process for one square unit in portrait type processing.

【図13】検索範囲指定その他のタイプ500mコード
生成処理を示すフローチャートである。
FIG. 13 is a flowchart showing search range specification and other type 500m code generation processing.

【図14】(a)(b)はFROMコードワークエリア
およびTOコードワークエリアの構造の一例を示す図で
ある。
FIGS. 14(a) and 14(b) are diagrams showing an example of the structure of a FROM code work area and a TO code work area.

【図15】その他のタイプの処理と横長タイプ処理と1
桝単位メッシュコード生成処理との関係を説明する図で
ある。
[Figure 15] Other types of processing, landscape type processing, and 1
It is a figure explaining the relationship with mesh code generation processing per cell.

【符号の説明】[Explanation of symbols]

100    地図上の検索対象地域の住所のメッシュ
コード化ステップ 101    検索対象全地域の分割処理ステップ10
2    分割単位のコード付け処理ステップ103 
   住所のメッシュコード化処理ステップ200  
  メッシュコードによる住所の照合出力ステップ 201    検索範囲の指定処理ステップ202  
  指定範囲内メッシュコードの生成処理ステップ 203    指定範囲内メッシュコードと検索対象デ
ータの照合出力ステップ
100 Mesh encoding of addresses in the search target area on the map Step 101 Division processing step 10 for all search target areas
2. Coding process step 103 in division units
Address mesh encoding processing step 200
Matching and outputting address using mesh code step 201 Search range specification processing step 202
Specified range mesh code generation processing step 203 Collation output step of specified range mesh code and search target data

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】  対象となる地域の中の特定範囲内に存
在する住所データを検索する住所のメッシュコード化に
よる範囲検索方式において、対象地域全体をX軸および
Y軸方向に一定の間隔で桝目上に分割する手段と、前記
分割されたX軸およびY軸に対し分割単位毎に各々予じ
め定めたコードを付与する手段と、検索の対象となる全
住所データに対し地図上でその住所が実際に存在する桝
のX軸およびY軸上の前記コードをメッシュコードとし
て付与する手段と、検索時前記対象地域の検索したい範
囲を正方形または長方形の形で表し、その左上および右
下の頂点が属する桝のメッシュコードを検索範囲として
指定する手段と、前記2点により指定された検索範囲内
に含まれる前記付与されたメッシュコードを生成し出力
する検索範囲内メッシュコード生成手段と、前記出力さ
れた検索範囲内メッシュコードと検索対象となる前記付
与された住所メッシュコードとを照合し前記検索範囲内
全メッシュコードのいずれかに一致する住所メッシュコ
ードに対応する住所データを出力する手段とを有するこ
とを特徴とする住所のメッシュコード化による範囲検索
方式。
Claim 1: In a range search method using address mesh coding to search for address data existing within a specific range within a target area, the entire target area is divided into squares at regular intervals in the X-axis and Y-axis directions. means for dividing the divided X-axis and Y-axis into each division unit, and means for assigning a predetermined code to the divided X-axis and Y-axis for each division unit; Means for assigning the code on the X-axis and Y-axis of the square where the square actually exists as a mesh code, and when searching, the range to be searched in the target area is expressed in the form of a square or rectangle, and the upper left and lower right vertices of the range are expressed as a mesh code. means for specifying the mesh code of the square to which the cell belongs as a search range; means for generating a mesh code within the search range that generates and outputs the given mesh code included in the search range specified by the two points; means for comparing the given mesh code within the search range with the assigned address mesh code to be searched and outputting address data corresponding to an address mesh code that matches any of all the mesh codes within the search range; A range search method using mesh coding of addresses, characterized by the following.
【請求項2】  前記検索範囲内メッシュコード生成手
段が、メッシュコードの内住所の存在し得ないメッシュ
コードをチェックコードとし予じめ格納したチェックコ
ードテーブルと、生成された検索範囲内メッシュコード
の内前記チェックコードに対応するメッシュコードを除
き出力する手段とを有することを特徴とする請求項1記
載の住所のメッシュコード化による範囲検索方式。
2. The within-search-range mesh code generation means uses a check code table stored in advance as a check code for mesh codes whose addresses cannot exist among the mesh codes, and generates mesh codes within the search range. 2. A range search method based on mesh coding of an address according to claim 1, further comprising means for excluding and outputting a mesh code corresponding to said check code.
JP3028304A 1991-02-22 1991-02-22 Range retrieving system by mesh coding of address Pending JPH04267477A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP3028304A JPH04267477A (en) 1991-02-22 1991-02-22 Range retrieving system by mesh coding of address

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP3028304A JPH04267477A (en) 1991-02-22 1991-02-22 Range retrieving system by mesh coding of address

Publications (1)

Publication Number Publication Date
JPH04267477A true JPH04267477A (en) 1992-09-24

Family

ID=12244883

Family Applications (1)

Application Number Title Priority Date Filing Date
JP3028304A Pending JPH04267477A (en) 1991-02-22 1991-02-22 Range retrieving system by mesh coding of address

Country Status (1)

Country Link
JP (1) JPH04267477A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1153366A (en) * 1997-07-31 1999-02-26 Nippon Telegr & Teleph Corp <Ntt> Facility retrieval method
US7225076B2 (en) * 2003-01-10 2007-05-29 Denso Corporation Map search system
JP2007241516A (en) * 2006-03-07 2007-09-20 Fujitsu Ltd Facility retrieval program
JP2010027031A (en) * 2008-06-18 2010-02-04 Yahoo Japan Corp Apparatus, method, and program for name identification using note data

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1153366A (en) * 1997-07-31 1999-02-26 Nippon Telegr & Teleph Corp <Ntt> Facility retrieval method
US7225076B2 (en) * 2003-01-10 2007-05-29 Denso Corporation Map search system
JP2007241516A (en) * 2006-03-07 2007-09-20 Fujitsu Ltd Facility retrieval program
JP2010027031A (en) * 2008-06-18 2010-02-04 Yahoo Japan Corp Apparatus, method, and program for name identification using note data

Similar Documents

Publication Publication Date Title
CN108920462B (en) Point of interest (POI) retrieval method and device based on map
Sankaranarayanan et al. Efficient query processing on spatial networks
EP3407223B1 (en) Location based full text search
JP4878178B2 (en) Data processing method and apparatus, and processing program therefor
US20220067117A1 (en) System and method for linking data records for parcels
CN102147795A (en) Method and device for searching points of interest as well as navigation system
US20070253642A1 (en) Method and apparatus for indexing, storing and retrieving raster (GRID) data in a combined raster vector system
CN109661659B (en) Visual positioning map storing and loading method, device, system and storage medium
CN103177414B (en) A kind of node of graph similarity parallel calculating method of structure based
CN110287426B (en) Method and device for establishing parent-child relationship of interest points, storage medium and processor
CN111931097A (en) Information display method and device, electronic equipment and storage medium
KR20140097805A (en) Coordinates (x, y) position value using a systematic block code generated and the address matching service using methods
US5144679A (en) Graphic data searching and storage method
JP2888188B2 (en) Information retrieval device
CN114595302A (en) Method, device, medium, and apparatus for constructing multi-level spatial relationship of spatial elements
CN103412947A (en) Polygon search method for big space data
JPH04267477A (en) Range retrieving system by mesh coding of address
US3643225A (en) Memory control system
CN107728931A (en) Method and apparatus for data storage
CN110221778A (en) Processing method, system, storage medium and the electronic equipment of hotel&#39;s data
CN105740374A (en) Distributed memory based three-dimensional platform data fuzzy query method
JPH03266077A (en) Telephone directory retrieval system
CN110146102B (en) Path planning method, device, equipment and storage medium
CN113626547A (en) Freight industry map vector slicing method and device, storage medium and terminal
CN112395320A (en) Building information merging method, device, equipment and computer readable storage medium