Travel Planning
Travel Planning · GPT 작업
Travel Planning
Plugin for planning a travel. Generate a map and a link a web page with the map and the places to visit.
POST /mapGet a map from latitude and longitude
원본 API 스키마
{
"openapi": "3.1.0",
"info": {
"title": "Travel Planning",
"description": "Plugin for planning a travel. Generate a map and a link a web page with the map and the places to visit.",
"version": "v2"
},
"servers": [
{
"url": "https://travelplanning.sinclinal.com/v2"
}
],
"paths": {
"/map": {
"post": {
"operationId": "getMap",
"summary": "Get a map from latitude and longitude",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/mapRequest"
},
"examples": {
"tripExample": {
"summary": "An example of a trip",
"value": {
"prompt_confirmed_user": "true",
"title": "Planned trip to New York",
"resume_travel": "A 2-day trip exploring the main tourist attractions in New York.",
"places": [
{
"number": 1,
"lat": 40.748817,
"lon": -73.985428,
"address": "350+5th Ave, New York, NY 10118, United States",
"long_description_place": "The Empire State Building is a 102-story Art Deco skyscraper in Midtown Manhattan in New York City, United States.",
"resume_description_place": "Visit Empire State Building"
}
]
}
}
}
}
}
},
"responses": {
"200": {
"description": "OK",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/mapResponse"
}
}
}
}
}
}
}
},
"components": {
"schemas": {
"mapRequest": {
"type": "object",
"required": [
"prompt_confirmed_user",
"title",
"resume_travel",
"places"
],
"properties": {
"prompt_confirmed_user": {
"type": "string",
"enum": [
"yes",
"no"
]
},
"title": {
"type": "string"
},
"resume_travel": {
"type": "string"
},
"places": {
"type": "array",
"items": {
"type": "object",
"required": [
"number",
"lat",
"lon",
"address",
"long_description_place",
"resume_description_place"
],
"properties": {
"number": {
"type": "number",
"format": "int32"
},
"lat": {
"type": "number",
"format": "float"
},
"lon": {
"type": "number",
"format": "float"
},
"address": {
"type": "string"
},
"long_description_place": {
"type": "string"
},
"resume_description_place": {
"type": "string"
}
}
}
}
}
},
"mapResponse": {
"type": "object",
"properties": {
"title": {
"type": "string",
"example": "Map of New York"
},
"resume_travel": {
"type": "string",
"example": "Travel of 2 days to New York"
},
"url_web": {
"type": "string",
"example": "https://travelplanning.sinclinal.com/v2/maps/1/web.html"
},
"url_map": {
"type": "string",
"example": "https://travelplanning.sinclinal.com/v2/maps/1/map.png"
}
}
}
}
}
}