TomTom · Capability

TomTom Traffic API — Traffic Flow

TomTom Traffic API — Traffic Flow. 1 operations. Lead operation: Get Flow Segment Data. Self-contained Naftiko capability covering one Tomtom business surface.

Run with Naftiko TomtomTraffic Flow

What You Can Do

GET
Getflowsegmentdata — Get Flow Segment Data
/v1/traffic/services/{versionnumber}/flowsegmentdata/{style}/{zoom}/json

MCP Tools

get-flow-segment-data

Get Flow Segment Data

read-only idempotent

Capability Spec

traffic-traffic-flow.yaml Raw ↑
naftiko: 1.0.0-alpha2
info:
  label: TomTom Traffic API — Traffic Flow
  description: 'TomTom Traffic API — Traffic Flow. 1 operations. Lead operation: Get Flow Segment Data. Self-contained Naftiko
    capability covering one Tomtom business surface.'
  tags:
  - Tomtom
  - Traffic Flow
  created: '2026-05-19'
  modified: '2026-05-19'
binds:
- namespace: env
  keys:
    TOMTOM_API_KEY: TOMTOM_API_KEY
capability:
  consumes:
  - type: http
    namespace: traffic-traffic-flow
    baseUri: https://api.tomtom.com
    description: TomTom Traffic API — Traffic Flow business capability. Self-contained, no shared references.
    resources:
    - name: traffic-services-versionNumber-flowSegmentData-style-zoom-json
      path: /traffic/services/{versionNumber}/flowSegmentData/{style}/{zoom}/json
      operations:
      - name: getflowsegmentdata
        method: GET
        description: Get Flow Segment Data
        outputRawFormat: json
        outputParameters:
        - name: result
          type: object
          value: $.
        inputParameters:
        - name: versionNumber
          in: path
          type: integer
          required: true
        - name: style
          in: path
          type: string
          description: Traffic flow visualization style
          required: true
        - name: zoom
          in: path
          type: integer
          required: true
        - name: point
          in: query
          type: string
          description: Coordinates to query (lat,lon)
          required: true
        - name: unit
          in: query
          type: string
          description: Speed unit
        - name: thickness
          in: query
          type: integer
          description: Segment thickness for display
        - name: openLr
          in: query
          type: boolean
          description: Include OpenLR encoded location reference
        - name: key
          in: query
          type: string
          required: true
    authentication:
      type: apikey
      key: key
      value: '{{env.TOMTOM_API_KEY}}'
      placement: query
  exposes:
  - type: rest
    namespace: traffic-traffic-flow-rest
    port: 8080
    description: REST adapter for TomTom Traffic API — Traffic Flow. One Spectral-compliant resource per consumed operation,
      prefixed with /v1.
    resources:
    - path: /v1/traffic/services/{versionnumber}/flowsegmentdata/{style}/{zoom}/json
      name: traffic-services-versionnumber-flowsegmentdata-style-zoom-json
      description: REST surface for traffic-services-versionNumber-flowSegmentData-style-zoom-json.
      operations:
      - method: GET
        name: getflowsegmentdata
        description: Get Flow Segment Data
        call: traffic-traffic-flow.getflowsegmentdata
        with:
          versionNumber: rest.versionNumber
          style: rest.style
          zoom: rest.zoom
          point: rest.point
          unit: rest.unit
          thickness: rest.thickness
          openLr: rest.openLr
          key: rest.key
        outputParameters:
        - type: object
          mapping: $.
  - type: mcp
    namespace: traffic-traffic-flow-mcp
    port: 9090
    transport: http
    description: MCP adapter for TomTom Traffic API — Traffic Flow. One tool per consumed operation, routed inline through
      this capability's consumes block.
    tools:
    - name: get-flow-segment-data
      description: Get Flow Segment Data
      hints:
        readOnly: true
        destructive: false
        idempotent: true
      call: traffic-traffic-flow.getflowsegmentdata
      with:
        versionNumber: tools.versionNumber
        style: tools.style
        zoom: tools.zoom
        point: tools.point
        unit: tools.unit
        thickness: tools.thickness
        openLr: tools.openLr
        key: tools.key
      outputParameters:
      - type: object
        mapping: $.