駅・路線の位置情報を取得(駅=ポイント / 路線=ライン)
get_railway_geometryRetrieve a specified Japanese railway station or line as GeoJSON Feature—Point for stations, MultiLineString for lines—with optional coordinate simplification for lightweight line geometry.
Instructions
鉄道駅LOD から、指定した駅または路線を GeoJSON Feature として取得する。駅は代表点(Point、geo:lat/long)、路線は形状(MultiLineString、分岐線を含む)。.json(RDF/JSON)を取得してクライアント側で GeoJSON に変換する。駅の properties は uri・name・operator(運営会社)・belongsToLine(所属路線)・lineColor・transferStations(乗換駅、ある駅のみ)・adjacentStations(隣接駅、ある駅のみ)、路線の properties は uri・name・operator・lineColor・publishedLengthKm(営業キロ)。乗降客数は含まない(get_station_passengers を使う)。戻り値の geometry は標準的な GeoJSON(RFC 7946)で、座標は [経度, 緯度] の順。ポリゴン(面)は存在しない。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"address": "<address>"
},
"name": "get_railway_geometry"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | エンティティのラベル、または URI。jrslod では「会社名/路線名」(路線)/「会社名/路線名/駅名」(駅)/完全 URI。事業者名の別名(JR東日本 等)や「〜本線」⇔「〜線」の揺れは自動補完を試みる。駅はポイント、路線は MultiLineString で返る。複数まとめて取得するときは get_railway_geometries を使う。 | |
| simplify | No | ラインの座標点数を間引くレベル(既定 'none' = 間引かない)。長大路線(数千点)を軽量に扱いたいときに 'low'/'medium' を検討する。'high' は形状の崩れが大きい。駅(ポイント)には効果がない。 |