CarGene Departures API

The departures API from CarGene — 1 operation(s) for departures.

GitHub OpenAPI

Operations 1

GET /api/departures/plan Get Departure Plan #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/car-gene-com:car-gene-com-departures-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

car-gene-com-departures-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Car Gene Com Departures API
  version: 1.0.0
  description: 'Operations tagged departures across 2 of this provider''s published API definitions: car-gene-com-openapi.json, car-gene-com-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.car-gene.com
  description: CarGene API host (named on https://car-gene.com/mcp/; spec served at https://api.car-gene.com/openapi.json)
tags:
- name: departures
paths:
  /api/departures/plan:
    get:
      tags:
      - departures
      summary: Get Departure Plan
      description: '出発時刻ごとの所要時間を取得


        Google の予測所要時間を、指定曜日の次の到来日に対して計算する。

        規約上この結果は保存できないため、呼び出しのたびに取得する。'
      operationId: get_departure_plan_api_departures_plan_get
      parameters:
      - description: 出発地の住所
        required: true
        schema:
          type: string
          title: Origin
          description: 出発地の住所
        name: origin
        in: query
      - description: 目的地の住所
        required: true
        schema:
          type: string
          title: Destination
          description: 目的地の住所
        name: destination
        in: query
      - description: 日曜=0
        required: true
        schema:
          type: integer
          maximum: 6.0
          minimum: 0.0
          title: Day Of Week
          description: 日曜=0
        name: day_of_week
        in: query
      - description: 出発時刻の範囲の開始 (HH:MM)
        required: false
        schema:
          type: string
          title: Start
          description: 出発時刻の範囲の開始 (HH:MM)
          default: 06:00
        name: start
        in: query
      - description: 出発時刻の範囲の終了 (HH:MM)
        required: false
        schema:
          type: string
          title: End
          description: 出発時刻の範囲の終了 (HH:MM)
          default: 09:00
        name: end
        in: query
      - description: BEST_GUESS / PESSIMISTIC / OPTIMISTIC
        required: false
        schema:
          type: string
          title: Traffic Model
          description: BEST_GUESS / PESSIMISTIC / OPTIMISTIC
          default: PESSIMISTIC
        name: traffic_model
        in: query
      - description: 出発時刻の刻み(分)。15 / 30 / 60
        required: false
        schema:
          type: integer
          title: Step Minutes
          description: 出発時刻の刻み(分)。15 / 30 / 60
          default: 30
        name: step_minutes
        in: query
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeparturePlanResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DepartureOptionResponse:
      properties:
        departure_time:
          type: string
          title: Departure Time
        duration_minutes:
          type: integer
          title: Duration Minutes
        duration_without_traffic_minutes:
          type: integer
          title: Duration Without Traffic Minutes
        distance_km:
          type: number
          title: Distance Km
        summary:
          type: string
          title: Summary
      type: object
      required:
      - departure_time
      - duration_minutes
      - duration_without_traffic_minutes
      - distance_km
      - summary
      title: DepartureOptionResponse
      description: ある出発時刻で出たときの所要時間
    DeparturePlanResponse:
      properties:
        origin:
          type: string
          title: Origin
        destination:
          type: string
          title: Destination
        day_of_week:
          type: integer
          title: Day Of Week
        date:
          type: string
          title: Date
        traffic_model:
          type: string
          title: Traffic Model
        options:
          items:
            $ref: '#/components/schemas/DepartureOptionResponse'
          type: array
          title: Options
        best_departure_time:
          type: string
          title: Best Departure Time
        best_route_polyline:
          type: string
          title: Best Route Polyline
      type: object
      required:
      - origin
      - destination
      - day_of_week
      - date
      - traffic_model
      - options
      title: DeparturePlanResponse
      description: '出発時刻ごとの所要時間の一覧


        地点は住所から解決した結果を返す。入力した住所と違う場所に解決されていないかを

        画面で確かめられるようにするため。'
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer
x-refined-from:
- car-gene-com-openapi.json
- car-gene-com-openapi.yml