Call the APIAPI を呼ぶ
Free, with no key or sign-up. One endpoint for each dataset, and one to ask several at once.無料で、キーも登録も要りません。データセットごとのエンドポイントと、まとめて引ける /v1/search。
curl -G https://places.reearth.land/v1/search \
--data-urlencode "q=東京タワー"
Re:Earth Places
Place names of the world, and Japan's addresses, postal codes and points of interest, built from open data. Use the free API, or download the files and search offline. 世界の地名と、日本の住所・郵便番号・施設を、オープンデータから。無料の API で使うことも、ファイルをダウンロードしてオフラインで検索することもできます。
Click the map in Japan for the town block there. 地図をクリックすると、その地点の町丁目を表示します。
Free, with no key or sign-up. One endpoint for each dataset, and one to ask several at once.無料で、キーも登録も要りません。データセットごとのエンドポイントと、まとめて引ける /v1/search。
curl -G https://places.reearth.land/v1/search \
--data-urlencode "q=東京タワー"
Every dataset is a set of Mokuji files. A page reads only the parts a query needs, by HTTP range requests, with no server of yours.データセットはどれも Mokuji のファイルです。ページは検索に要る部分だけを Range リクエストで読みます。自分のサーバーは要りません。
import { MokujiIndex, lookupPrefix } from "mokuji";
const town = await MokujiIndex.open(fileUrl);
const key = town.normalize(q);
await lookupPrefix(town, key, 5, [key]);
One command, with only curl, keeps a copy on disk, checked by SHA-256, and updates it. Search it with no network, with Mokuji's libraries.curl だけで、コマンド1つで手元にコピーを置けます。SHA-256 で確かめ、更新もできます。Mokuji のライブラリから、ネットワークなしで検索できます。
curl -fsSL https://places.reearth.land/download.sh \
| sh -s -- jp-address jp-postal
Geocoding and reverse geocoding: names and addresses to points, and points to the town block they are in. ジオコーディングも逆ジオコーディングも。名前や住所から地点へ、地点からその町丁目へ。
| Datasetデータセット | Answers答えるもの | Try試す | Downloadダウンロード | Licenseライセンス | Updated更新 |
|---|
Each is free to use, commercially too, with its credits shown, which the attribution page lists. どれも出典を示せば、商用でも無料で使えます。示す出典は出典のページにまとめています。
The catalog, with every file and its licenseカタログ(すべてのファイルとライセンス)
Every answer carries the credits of what it returns. The data is rebuilt from its sources as they change. どの答えにも、返したデータの出典が付きます。データは元データの更新に合わせて作り直しています。