Japan Travel Assistant
Japan Travel Assistant · GPT アクション
Google Maps Geocoding API
This API allows you to convert addresses into geographic coordinates.
GET /maps/api/geocode/jsonGet geographic coordinates for an address
元の API スキーマ
{
"openapi": "3.1.0",
"info": {
"title": "Google Maps Geocoding API",
"description": "This API allows you to convert addresses into geographic coordinates.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://maps.googleapis.com",
"description": "Main Google Maps API server"
}
],
"paths": {
"/maps/api/geocode/json": {
"get": {
"operationId": "getGeocode",
"summary": "Get geographic coordinates for an address",
"parameters": [
{
"name": "address",
"in": "query",
"required": true,
"description": "The address to geocode",
"schema": {
"type": "string"
}
},
{
"name": "key",
"in": "query",
"required": true,
"description": "AIzaSyDMChGgMuH8tEIvkijzkzHjEJuSu39gDKA",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "A successful response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"formatted_address": {
"type": "string"
},
"geometry": {
"type": "object",
"properties": {
"location": {
"type": "object",
"properties": {
"lat": {
"type": "number"
},
"lng": {
"type": "number"
}
}
}
}
}
}
}
},
"status": {
"type": "string"
}
}
}
}
}
},
"400": {
"description": "Invalid request"
},
"403": {
"description": "Access forbidden"
},
"500": {
"description": "Internal server error"
}
}
}
}
}
}