Calcul théorique de la distance et de la durée

Add MCP server to your AI tool

Allow AI tools and LLMs to interact with the API documentation portal through MCP.

MCP server URL

https://tech.covoiturage.beta.gouv.fr/mcp

Standard setup for AI tools providing an mcp.json file

mcp.json
"API RPC - Documentation technique MCP server": {
  "url": "https://tech.covoiturage.beta.gouv.fr/mcp"
}
Close
GET /geo/route

Query parameters

  • start object Required

    Position géographique au format WSG-84

    Additional properties are NOT allowed.

    Hide start attributes Show start attributes object
    • lat number Required

      Latitude comprise entre 90deg et -90deg décimaux en datum WSG-84

    • lon number Required

      Longitude comprise entre 180deg et -180deg décimaux en datum WSG-84

  • end object Required

    Position géographique au format WSG-84

    Additional properties are NOT allowed.

    Hide end attributes Show end attributes object
    • lat number Required

      Latitude comprise entre 90deg et -90deg décimaux en datum WSG-84

    • lon number Required

      Longitude comprise entre 180deg et -180deg décimaux en datum WSG-84

Responses

  • 200 application/json

    OK

    Hide response attributes Show response attributes object
    • distance number Required

      Distance en mètres

      Minimum value is 0, maximum value is 1000000.

    • duration number Required

      Durée en secondes

      Minimum value is 0, maximum value is 36000.

GET /geo/route
curl \
 --request GET 'https://api.covoiturage.beta.gouv.fr/v3.3/geo/route?start=%7B%7D&end=%7B%7D' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
  "distance": 42.0,
  "duration": 42.0
}