get-station-code-by-names
Look up station_code for Chinese railway stations by their Chinese names. Use this to prepare station_code parameters for 12306 ticket searches.
Instructions
通过具体的中文车站名查询其 station_code 和车站名。此接口主要用于在用户提供具体车站名作为出发地或到达地时,为接口准备 station_code 参数。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stationNames | Yes | 具体的中文车站名称,例如:"北京南", "上海虹桥"。若要查询多个站点,请用|分割,比如"北京南|上海虹桥"。 |