AddressLevel クラス

住所要素ノードが持つ住所レベルを定義するクラスです。

class jageocoder.address.AddressLevel

Address Levels

1 = 都道府県 2 = 郡・支庁・振興局 3 = 市町村および特別区 4 = 政令市の区 5 = 大字 6 = 字 7 = 地番または住居表示実施地域の街区 8 = 枝番または住居表示実施地域の住居番号

classmethod guess(name, parent, trigger)

Guess the level of the address element.

パラメータ:
  • name (str) -- The name of the address element

  • parent (AddressNode) -- The parent node of the target.

  • trigger (dict) --

    properties of the new address node who triggered adding the address element.

    name : str. name. ("2丁目") x : float. X coordinate or longitude. (139.69175) y : float. Y coordinate or latitude. (35.689472) level : int. Address level (1: pref, 3: city, 5: oaza, ...) note : str. Note.