Driving distance and time gpt
Driving distance and time gpt · GPT 작업
Google Cloud Distance Matrix API Wrapper
This action fetches distance and time data between multiple origins and destinations using the Google Cloud Distance Matrix API.
GET /maps/api/distancematrix/jsonFetches distance and time dataFetches distance and time data between multiple origins and destinations.
원본 API 스키마
{
"openapi": "3.0.0",
"info": {
"title": "Google Cloud Distance Matrix API Wrapper",
"description": "This action fetches distance and time data between multiple origins and destinations using the Google Cloud Distance Matrix API.",
"version": "1.1.0"
},
"servers": [
{
"url": "https://maps.googleapis.com"
}
],
"paths": {
"/maps/api/distancematrix/json": {
"get": {
"operationId": "getDistanceMatrix",
"summary": "Fetches distance and time data",
"description": "Fetches distance and time data between multiple origins and destinations.",
"parameters": [
{
"name": "origins",
"in": "query",
"description": "List of origin addresses or coordinates, separated by '|'.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "destinations",
"in": "query",
"description": "List of destination addresses or coordinates, separated by '|'.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "key",
"in": "query",
"description": "API Key for Google Cloud Distance Matrix API.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "arrival_time",
"in": "query",
"description": "Desired time of arrival for transit directions (in seconds since midnight, January 1, 1970 UTC).",
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "avoid",
"in": "query",
"description": "Restrictions for routes to avoid (e.g., tolls, highways, ferries, indoor).",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "departure_time",
"in": "query",
"description": "Desired time of departure (in seconds since midnight, January 1, 1970 UTC).",
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "mode",
"in": "query",
"description": "Transportation mode (driving, walking, bicycling, transit).",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "traffic_model",
"in": "query",
"description": "Assumptions for time in traffic (best_guess, pessimistic, optimistic).",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "transit_mode",
"in": "query",
"description": "Preferred modes of transit (bus, subway, train, tram, rail).",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "units",
"in": "query",
"description": "Unit system for displaying results.",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"rows": {
"type": "array",
"items": {
"type": "object",
"properties": {
"elements": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}