GhanaBiz Finder π
GhanaBiz Finder π Β· GPT Actions
Google Maps API
Integration with Google Maps API for directions, geocoding, and place details.
GET /directions/jsonGet directions between locationsGET /geocode/jsonGeocode an addressGET /place/details/jsonGet details about a place
Original API schema
{
"openapi": "3.1.0",
"info": {
"title": "Google Maps API",
"description": "Integration with Google Maps API for directions, geocoding, and place details.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://maps.googleapis.com/maps/api",
"description": "Google Maps API server"
}
],
"paths": {
"/directions/json": {
"get": {
"operationId": "getDirections",
"summary": "Get directions between locations",
"parameters": [
{
"name": "origin",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "The starting point for calculating directions."
},
{
"name": "destination",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "The endpoint for calculating directions."
},
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "AIzaSyDQxqOtwHCb2t61oolXMJpWf5eKIWq0TjE"
}
],
"responses": {
"200": {
"description": "A directions response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"routes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"summary": {
"type": "string"
},
"legs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"start_address": {
"type": "string"
},
"end_address": {
"type": "string"
},
"distance": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"value": {
"type": "integer"
}
}
},
"duration": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"value": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"/geocode/json": {
"get": {
"operationId": "geocodeAddress",
"summary": "Geocode an address",
"parameters": [
{
"name": "address",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "The address to geocode."
},
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "AIzaSyDQxqOtwHCb2t61oolXMJpWf5eKIWq0TjE"
}
],
"responses": {
"200": {
"description": "A geocode response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"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"
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
},
"/place/details/json": {
"get": {
"operationId": "getPlaceDetails",
"summary": "Get details about a place",
"parameters": [
{
"name": "place_id",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "The place ID of the place for which you wish to retrieve details."
},
{
"name": "key",
"in": "query",
"required": true,
"schema": {
"type": "string"
},
"description": "Your API key."
}
],
"responses": {
"200": {
"description": "A place details response",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"status": {
"type": "string"
},
"result": {
"type": "object",
"properties": {
"name": {
"type": "string"
},
"formatted_address": {
"type": "string"
},
"geometry": {
"type": "object",
"properties": {
"location": {
"type": "object",
"properties": {
"lat": {
"type": "number"
},
"lng": {
"type": "number"
}
}
}
}
},
"types": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
}
}
}
}
}
}
}
}