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.
The following result was obtained.
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
The following result was obtained.
Summary
There are likely many other geocoding libraries available, but I hope this is helpful.