Files
jrshikoku/constants/api.ts
harukin-expo-dev-env 66650764df feat: add elesite integration and configuration settings
- Introduced useElesite hook for managing elesite data and settings.
- Added elesite logo asset.
- Updated types to include elesite data structures.
- Enhanced TrainMenuProvider to manage elesite usage settings.
- Implemented data fetching and caching for elesite information.
- Added utility functions to retrieve train information from elesite data.
2026-03-07 16:24:07 +00:00

52 lines
1.7 KiB
TypeScript

/**
* API エンドポイントとベースURL
*/
const BASE_URL = 'https://jr-shikoku-api-data-storage.haruk.in';
export const API_ENDPOINTS = {
/** 本日のダイアグラムデータ */
DIAGRAM_TODAY: `${BASE_URL}/tmp/diagram-today.json`,
/** カスタム列車データ */
CUSTOM_TRAIN_DATA: 'https://haruk.in/api/jr/getTrain.php',
/** 遅延情報 */
DELAY_INFO: 'https://haruk.in/api/jr/getTrainDelay.php',
/** 特急列車情報 */
SPECIAL_TRAIN_INFO: 'https://haruk.in/api/jr/getSpecialTrain.php',
/** バス・列車データ */
BUS_AND_TRAIN_DATA: 'https://script.google.com/macros/s/AKfycbw0UW6ZeCDgUYFRP0zxpc_Oqfy-91dBdbWv-cM8n3narKp14IyCd2wy5HW7taXcW7E/exec',
/** 駅リスト */
STATION_LIST: 'https://n8n.haruk.in/webhook/jr-shikoku-station-list',
/** 列車データAPI */
TRAIN_DATA_API: 'https://jr-shikoku-backend-api-v1.haruk.in/train-data',
/** 運行ログAPI */
OPERATION_LOGS: 'https://jr-shikoku-backend-api-v1.haruk.in/operation-logs',
/** 位置情報問題データ */
POSITION_PROBLEMS: 'https://n8n.haruk.in/webhook/jrshikoku-position-problems',
/** 鉄道運用Hub運用データ */
UNYOHUB_DATA: 'https://jr-shikoku-api-data-storage.haruk.in/thirdparty/unyohub-unyo.json',
/** えれサイト運用データ */
ELESITE_DATA: 'https://jr-shikoku-api-data-storage.haruk.in/thirdparty/elesite-unyo.json',
} as const;
/**
* 外部サービスURL
*/
export const EXTERNAL_URLS = {
/** JR四国公式サイト */
JR_SHIKOKU_OFFICIAL: 'https://www.jr-shikoku.co.jp',
/** PDF表示用プレフィックス */
PDF_VIEW_PREFIX: 'https://docs.google.com/gview?embedded=true&url=',
} as const;