Overview

I had the opportunity to try out geocoding libraries, so this is a memo.

Target

This time, we will use the following text as an example.

岡山市旧御野郡金山寺村。現在の岡山市金山寺。市の中心部からは直線で北方約一〇キロを隔てた金山の中腹にある。

(Translation: Okayama City, former Mino-gun Kinzanji village. Currently Kinzanji, Okayama City. Located on the hillside of Kinzan, approximately 10 kilometers north in a straight line from the city center.)

Tool 1: Jageocoder - A Python Japanese geocoder

First, let’s try “Jageocoder.”

https://t-sagara.github.io/jageocoder/

An example of the source code is as follows.

iijrpmmaerppgsiooeunrroltttct(osjjjdssae=oogrnne.j.oiadcnguoiemdtope(csruo(rdrlee=rs'.uhsltettaspr,sc:hi/(n/'djeangte=o2c,odeenrs.uirnef_oa-spcrioit=oF.aclosme/)j)sonrpc')')

The following result was obtained.

{}""]mcaa{}tncd""""""""]hiinxylpnfedda""erou""da"m::vitl"t:eeoel:e"13lr"ns1:34"i:a""""93.:tm,:7".6y"e6953"g"[715,:e:"791o,5"501s[0,75,h805a,99p20e28_82c50i13t51y6,_,id:33100A2009/jisx0402:33100/jisx0402:33201",

This may be a configuration issue, but only information up to Okayama City was obtained.

The following page also allows you to try it via a web UI.

https://jageocoder.info-proto.com/

Tool 2: GeoNLP

It could be tried via a web UI on the following page.

https://geonlp.ex.nii.ac.jp/jageocoder/demo/

GeoNLP also uses jageocoder internally, so similar results were obtained.

I also tried the “Text Geotagging (GeoNLP) Demo” below.

https://geonlp.ex.nii.ac.jp/demo/

Multiple place names were extracted from the input text.

Tool 3: Google Maps Platform API

Finally, let’s try using the Google Maps Platform API.

https://developers.google.com/maps?hl=ja

iifld#AagmmroePdeppoaf使Idooomd_rcrr_gup}rieKeottdderaeflEsdooolrssYserottcapre_eseeo=m"""oedie:p==aqnndsaklnsaflrduvve"deasptsio"de(_h=dyneoadensrsivatr"gnarlpp:pt.etmedt{e:u=s=teorrr(gssprdpsaeasciiifesobrssagr.r[uannn"t(roe:"peese'lttttHeatss/:i"qtssti(((Tndes/_:uaptofffTvdl=(maketoa=n"""P(roTaade"suntALE"eardpdyjtssud=darEAsdudsr,as_esadtrrPs_er.e".c.'trriorI,d)egsgoj]aeetro_ososeds[ssu:rKAtso,#teo='usd:EPe,g(n=rl:e{YInlu=(et:d{"_vaer=)"s[{ar)KpalOu'r{teEip,2KlgelasY_i0"teso[p)ksp0:souc'oe.a:'mlasnycr]ettts)oa[t[iae:mm0r'ot./s]yfnusm='o[stap]r''apa[ml]tsr'aa}u/altt"samot')_psce]ci)ad}o/t_,dgiaeeodL}ondo"c'rn)o]egdsiest/'uj]ds}eo":n)"{loca"tion['lng']}")

The following result was obtained.

ALdadtrietsusd:e:34.770317-52516581,Longitude:133.946063

Summary

There are likely many other geocoding libraries available, but I hope this is helpful.