{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/crawleo-dev/json-schema/crawleo-dev-google-maps-response-schema.json",
  "title": "GoogleMapsResponse",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/crawleo-dev-openapi.json#/components/schemas/GoogleMapsResponse",
  "type": "object",
  "properties": {
    "parameters": {
      "type": "object",
      "description": "Echo of the query parameters used for this request",
      "properties": {
        "q": {
          "type": "string",
          "description": "The search query"
        },
        "num": {
          "type": "integer",
          "description": "Number of results per page"
        },
        "page": {
          "type": "integer",
          "description": "Page number of results"
        }
      }
    },
    "google_maps_results": {
      "type": "array",
      "description": "Array of place result objects",
      "items": {
        "type": "object",
        "properties": {
          "position": {
            "type": "integer",
            "description": "Ranking position in the results list"
          },
          "title": {
            "type": "string",
            "description": "Name of the place or business"
          },
          "address": {
            "type": "string",
            "description": "Full street address of the place"
          },
          "rating": {
            "type": "number",
            "description": "Average user rating (e.g. 4.7)"
          },
          "ratingCount": {
            "type": "integer",
            "description": "Total number of user ratings"
          },
          "phoneNumber": {
            "type": "string",
            "description": "Phone number of the business"
          },
          "website": {
            "type": "string",
            "description": "Website URL of the business"
          },
          "type": {
            "type": "string",
            "description": "Primary business or place category"
          },
          "types": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "All categories associated with the place"
          },
          "priceLevel": {
            "type": "string",
            "description": "Price range indicator (e.g. €1–10)"
          },
          "placeId": {
            "type": "string",
            "description": "Google Place ID"
          },
          "cid": {
            "type": "string",
            "description": "Google business/customer ID"
          },
          "latitude": {
            "type": "number",
            "description": "Latitude coordinate of the place"
          },
          "longitude": {
            "type": "number",
            "description": "Longitude coordinate of the place"
          },
          "openingHours": {
            "type": "object",
            "description": "Opening hours keyed by day of week"
          },
          "thumbnailUrl": {
            "type": "string",
            "description": "URL of the place thumbnail image"
          }
        }
      }
    },
    "credits": {
      "type": "integer",
      "description": "Credits used for this request"
    }
  }
}